223 lines
11 KiB
Plaintext
223 lines
11 KiB
Plaintext
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sample_browse.aspx.cs" Inherits="Sample_browse" %>
|
||
|
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head id="Head1" runat="server">
|
||
|
<title></title>
|
||
|
<script type="text/javascript"></script>
|
||
|
<script src="../Js/jquery-1.4.1.js" type="text/javascript"></script>
|
||
|
<script src="../Jquery-ui/js/jquery-1.10.2.js" type="text/javascript"></script>
|
||
|
<script src="../Jquery-ui/js/jquery-ui-1.10.4.custom.js" type="text/javascript"></script>
|
||
|
<link href="../Css/index.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="../Css/detail.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="../Jquery-ui/css/pepper-grinder/jquery-ui-1.10.4.custom.css" rel="stylesheet" type="text/css" />
|
||
|
<link rel="stylesheet" href="../Css/gh-buttons.css" type="text/css"/>
|
||
|
<link rel="stylesheet" href="../Css/prettify.css"/>
|
||
|
<script src="../Js/prettify.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript">
|
||
|
function GETSamplePrint() {
|
||
|
var url = "../Print_File/SamplePrint.aspx?uid=" + $("#id").val();
|
||
|
window.open(url, '样品登记单打印', 'height=650,width=1200,top=0,left=100,toolbar=yes,menubar=no,scrollbars=yes, resizable=no,location=no, status=no')
|
||
|
}
|
||
|
function seltp() {
|
||
|
$("#cptp").attr("src", document.getElementById("tp").src);
|
||
|
$("#dialog-pkinfo").dialog({
|
||
|
resizable: false,
|
||
|
height: 450,
|
||
|
width: 450,
|
||
|
modal: true,
|
||
|
buttons: {
|
||
|
确定: function () {
|
||
|
|
||
|
$('#dialog-pkinfo').dialog('close');
|
||
|
}
|
||
|
},
|
||
|
close: function () {
|
||
|
$(".ui-widget-overlay").css("display", "none");
|
||
|
}
|
||
|
});
|
||
|
$(".ui-widget-overlay").click(function () {
|
||
|
$('#dialog-pkinfo').dialog('close');
|
||
|
|
||
|
});
|
||
|
}
|
||
|
function cpwjdcft() {
|
||
|
$("#<%=wj.ClientID%>").click();
|
||
|
}
|
||
|
function szxmxs() {
|
||
|
$("#xmxzdivqd").dialog({
|
||
|
resizable: false,
|
||
|
height: 200,
|
||
|
width: 520,
|
||
|
modal: true,
|
||
|
buttons: {
|
||
|
确定: function () {
|
||
|
savegx("前段项目");
|
||
|
|
||
|
}
|
||
|
},
|
||
|
close: function () {
|
||
|
$(".ui-widget-overlay").css("display", "none");
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
function zdxmsz() {
|
||
|
$("#xmxzdivzd").dialog({
|
||
|
resizable: false,
|
||
|
height: 200,
|
||
|
width: 520,
|
||
|
modal: true,
|
||
|
buttons: {
|
||
|
确定: function () {
|
||
|
savegx("中段项目");
|
||
|
|
||
|
}
|
||
|
},
|
||
|
close: function () {
|
||
|
$(".ui-widget-overlay").css("display", "none");
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
function szhdxm() {
|
||
|
$("#xmxzdivhd").dialog({
|
||
|
resizable: false,
|
||
|
height: 200,
|
||
|
width: 520,
|
||
|
modal: true,
|
||
|
buttons: {
|
||
|
确定: function () {
|
||
|
savegx("后段项目");
|
||
|
}
|
||
|
},
|
||
|
close: function () {
|
||
|
$(".ui-widget-overlay").css("display", "none");
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
function savegx(xmjd) {
|
||
|
var gxzu = [];
|
||
|
if(xmjd=='前段项目')
|
||
|
{
|
||
|
$(".cbo_gx:checked").each(function () {
|
||
|
gxzu.push($(this).attr("tag"));
|
||
|
})
|
||
|
} else if (xmjd == '中段项目') {
|
||
|
$(".cbo_gxzd:checked").each(function () {
|
||
|
gxzu.push($(this).attr("tag"));
|
||
|
})
|
||
|
} else if (xmjd == '后段项目') {
|
||
|
$(".cbo_gxhd:checked").each(function () {
|
||
|
gxzu.push($(this).attr("tag"));
|
||
|
})
|
||
|
}
|
||
|
var fzhi = Sample_browse.savegx(gxzu, $("#id").val(), xmjd).value;
|
||
|
location.href = 'Sample_browse.aspx?uid=' + $("#id").val();
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<form id="form" runat="server">
|
||
|
<div class="rtbjdiv" >
|
||
|
<div class="add-top" >
|
||
|
<div class="add-top-dh" id="div_listdaohang"><h4>修改样品详细页   </h4> <a href="Sample_list.aspx" id="bt_fhlb" runat="server" style=" width:65px" class="button icon pin">回到列表</a></div>
|
||
|
<div class="add-top-cz" >
|
||
|
<a id="dayin" runat="server" style=" width:65px" Visible=false class="button" onclick="GETSamplePrint()" >▓  打印单据</a>
|
||
|
<a href="Sample_Form.aspx" id="bt_add" runat="server" Visible=false class="button icon add">添加</a>
|
||
|
<asp:button id="bt_bj" runat="server" CssClass="button icon edit" Text="编辑" Visible=false onclick="bt_bj_Click" Width="60" ></asp:button>
|
||
|
<asp:button id="shanchu" runat="server" Width="60" CssClass="button danger icon trash" Text="删除" OnClientClick="return confirm('确定要删除吗')" Visible=false onclick="Shanchu_Click" ></asp:button>
|
||
|
<asp:button id="bt_sccpda" Width="80" runat="server" CssClass="button" OnClientClick="return confirm('确定要生成产品吗')" Visible=false Text="生成档案" onclick="bt_sccpda_Click" ></asp:button>
|
||
|
<asp:button id="bt_qdsh" Width="80" runat="server" CssClass="button" OnClientClick="return confirm('确定要前段签字吗')" Visible=false Text="前段签字" onclick="bt_qdsh_Click" ></asp:button>
|
||
|
<asp:button id="bt_zdsh" Width="80" runat="server" CssClass="button" OnClientClick="return confirm('确定要中段签字吗')" Visible=false Text="中段签字" onclick="bt_zdsh_Click"></asp:button>
|
||
|
<asp:button id="bt_hdsh" Width="80" runat="server" CssClass="button" OnClientClick="return confirm('确定要后段签字吗')" Visible=false Text="后段签字" onclick="bt_hdsh_Click"></asp:button>
|
||
|
<asp:button id="bt_shtg" Width="80" runat="server" CssClass="button" Text="审核通过" OnClientClick="return confirm('确定要审核通过吗')" Visible=false onclick="bt_shtg_Click" ></asp:button>
|
||
|
<asp:button id="bt_shbg" Width="80" runat="server" CssClass="button" Visible=false Text="审核不过" OnClientClick="return confirm('确定要审核不过吗')" onclick="bt_shbg_Click" ></asp:button>
|
||
|
<asp:label id="z_error" CssClass="error" runat="server"></asp:label>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div id="dd_kong" style="overflow: auto;">
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>样品基本信息</h4></td></tr></table>
|
||
|
<table class="bule">
|
||
|
<tr>
|
||
|
<td><span>开发号:</span><asp:Label id="kfh" runat="server" ></asp:Label></td>
|
||
|
<td ><span>货号:</span><asp:Label id="huohao" runat="server" ></asp:Label></td>
|
||
|
<td ><span>系列号:</span><asp:Label id="xlh" runat="server" ></asp:Label> </td>
|
||
|
<td ><span>产品名称:</span><asp:Label id="cpmc" runat="server" ></asp:Label> </td>
|
||
|
<td onclick="seltp()"> <img id="tp" runat="server" name="样品图片" style=" width:30px; height:30px" /> </td>
|
||
|
<td ><span></span><a href="#button" id="btn_daochu" style=" width:90px;" onclick="cpwjdcft()" class="button icon arrowdown">下载产品文件</a> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td ><span>自定义时间:</span><asp:Label id="zdysj" runat="server" ></asp:Label></td>
|
||
|
<td><span>修改时间:</span><asp:Label id="xgsj" runat="server" ></asp:Label> </td>
|
||
|
<td><span>样品尺寸:</span><asp:Label id="ypcc" runat="server" ></asp:Label> </td>
|
||
|
<td><span>重量:</span><asp:Label id="zhongliang" runat="server" ></asp:Label> </td>
|
||
|
<td ><span>容量:</span><asp:Label id="rongliang" runat="server" ></asp:Label> </td>
|
||
|
<td ><span>版次:</span><asp:Label id="banci" runat="server" ></asp:Label></td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>前段工价信息</h4></td></tr></table>
|
||
|
<div id="qdgjxx" runat="server" > </div>
|
||
|
|
||
|
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>前段项目信息 <button class="button icon settings" onclick="szxmxs()" style=" width:100px" type="button">设置跟随项</button> </h4></td></tr></table>
|
||
|
<div id="qdxmxx" runat="server" > </div>
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>中段工价信息</h4></td></tr></table>
|
||
|
<div id="zdgjxx" runat="server" style="display: block; "> </div>
|
||
|
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>中段项目信息 <button class="button icon settings" onclick="zdxmsz();" style=" width:100px" type="button">设置跟随项</button></h4></td></tr></table>
|
||
|
<div id="zdxmxx" runat="server" > </div>
|
||
|
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>后段工价信息</h4></td></tr></table>
|
||
|
<div id="hdgjxx" runat="server" > </div>
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>后段项目信息 <button class="button icon settings" onclick="szhdxm();" style=" width:100px" type="button">设置跟随项</button></h4></td></tr></table>
|
||
|
<div id="hdxmxx" runat="server" style="display: block; "> </div>
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>相关费用信息</h4></td></tr></table>
|
||
|
<div id="xgfydiv" runat="server" > </div>
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>水彩用量信息</h4></td></tr></table>
|
||
|
<div id="scylxxdiv" runat="server" > </div>
|
||
|
|
||
|
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>其它信息信息</h4></td></tr></table>
|
||
|
<table width="100%" id="Table1" border="1" class="bule">
|
||
|
<tr>
|
||
|
<td ><span>前段签字:</span> <asp:Label id="qdqz" runat="server" ></asp:Label> </td>
|
||
|
<td><span>中段签字:</span> <asp:Label id="zdqz" runat="server" ></asp:Label> </td>
|
||
|
<td><span>后段签字:</span> <asp:Label id="hdqz" runat="server" ></asp:Label> </td>
|
||
|
<td><span>审核人:</span> <asp:Label id="shr" runat="server" ></asp:Label> </td>
|
||
|
<td><span>状态:</span><asp:Label id="zhuangtai" runat="server" ></asp:Label></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div id="dialog-pkinfo" title="产品图片" style="overflow:hidden; display:none;" >
|
||
|
<img src='' style='Width:100%;Height:76' id="cptp" />
|
||
|
</div>
|
||
|
<div id="xmxzdivqd" title="设置跟随项" style="overflow:hidden;overflow:auto; display:none;" >
|
||
|
<ul id="ul_gx" class="xmul" runat="server"></ul>
|
||
|
</div>
|
||
|
<div id="xmxzdivzd" title="设置跟随项" style="display:none; overflow:auto;" >
|
||
|
<ul id="ul_gxzd" class="xmul" runat="server"></ul>
|
||
|
</div>
|
||
|
<div id="xmxzdivhd" title="设置跟随项" style="display:none; overflow:auto;" >
|
||
|
<ul id="ul_gxhd" class="xmul" runat="server"></ul>
|
||
|
</div>
|
||
|
<span style=" display:none"><asp:Button ID="wj" runat="server" Text="下载" onclick="wj_Click" CssClass="ui-btn"/></span>
|
||
|
|
||
|
<asp:HiddenField ID="id" runat="server" Value="" />
|
||
|
<asp:HiddenField ID="pagename" runat="server" />
|
||
|
<asp:HiddenField ID="gjxxhd" runat="server" />
|
||
|
<asp:HiddenField ID="xmxxhd" runat="server" />
|
||
|
<asp:HiddenField ID="xhfyhd" runat="server" />
|
||
|
<asp:HiddenField ID="scylhd" runat="server" />
|
||
|
<script src="../Js/messageshow.js" type="text/javascript"></script>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|