181 lines
10 KiB
Plaintext
181 lines
10 KiB
Plaintext
|
<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="Dispatch_Form.aspx.cs" Inherits="Dispatch_Form" %>
|
||
|
|
||
|
<!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>
|
||
|
<link href="../Css/index.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="../Css/edit.css" rel="stylesheet" type="text/css" />
|
||
|
<script src="../Js/Calendar3.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="../Jquery-ui/css/pepper-grinder/jquery-ui-1.10.4.custom.css" rel="stylesheet" type="text/css" />
|
||
|
<script src="../Js/commonality.js" type="text/javascript"></script>
|
||
|
<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 src="../Js/TcOrder.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function () {
|
||
|
cpxmscfs = "<%=hqyscpscfs()%>";
|
||
|
})
|
||
|
//调用添加方法
|
||
|
function setbcbd() {
|
||
|
$("#<%=severbc.ClientID%>").click();
|
||
|
}
|
||
|
function tqkcsc(hcout) {
|
||
|
if ($("#tqsl" + hcout).attr('name') != "") {
|
||
|
$("#tqbdtr").css("display", "none");
|
||
|
$("#tqyttr").css("display", "");
|
||
|
var xmytsz = Dispatch_Form.getxmyt($("#tqsl" + hcout).attr('name')).value;
|
||
|
$("#ttpyt").text(xmytsz.split('&')[0]);
|
||
|
$("#tspyt").text(xmytsz.split('&')[1]);
|
||
|
$("#tbdyt").text(xmytsz.split('&')[2]);
|
||
|
} else {
|
||
|
$("#tqbdtr").css("display", "");
|
||
|
$("#tqyttr").css("display", "none");
|
||
|
$("#tptq").val("");
|
||
|
$("#sptq").val("");
|
||
|
$("#bdtq").val("");
|
||
|
}
|
||
|
$("#tcphh").text($("#cphh" + hcout).val());
|
||
|
$("#tcpmc").text($("#cpmc" + hcout).val());
|
||
|
var kcmxz = Dispatch_Form.getcpkc($("#cphh" + hcout).val()).value;
|
||
|
$("#ttpky").text(kcmxz.split('&')[0]);
|
||
|
$("#tspky").text(kcmxz.split('&')[1]);
|
||
|
$("#tbdky").text(kcmxz.split('&')[2]);
|
||
|
$("#dialog-cpinfo").dialog({
|
||
|
resizable: false,
|
||
|
height: 300,
|
||
|
width: 600,
|
||
|
modal: true,
|
||
|
buttons: {
|
||
|
确定提取: function () {
|
||
|
if ($("#tptq").val() == "") {
|
||
|
$("#tptq").val("0");
|
||
|
}
|
||
|
if ($("#sptq").val() == "") {
|
||
|
$("#sptq").val("0");
|
||
|
}
|
||
|
if ($("#bdtq").val() == "") {
|
||
|
$("#bdtq").val("0");
|
||
|
}
|
||
|
if (parseFloat($("#tptq").val()) > parseFloat(kcmxz.split('&')[0])) {
|
||
|
alert("土坯提取数量不能大于土坯可用数量!");
|
||
|
return false;
|
||
|
}
|
||
|
if (parseFloat($("#sptq").val()) > parseFloat(kcmxz.split('&')[1])) {
|
||
|
alert("素坯提取数量不能大于素坯可用数量!");
|
||
|
return false;
|
||
|
}
|
||
|
if (parseFloat($("#bdtq").val()) > parseFloat(kcmxz.split('&')[2])) {
|
||
|
alert("白地提取数量不能大于白地可用数量!");
|
||
|
return false;
|
||
|
}
|
||
|
var iscg = Dispatch_Form.settqsl($("#tptq").val(), $("#sptq").val(), $("#bdtq").val(), $("#cphh" + hcout).val()).value;
|
||
|
if (iscg != "0") {
|
||
|
$("#tqsl" + hcout).attr('name', iscg);
|
||
|
$("#tqsl" + hcout).val($("#tptq").val() + "," + $("#sptq").val() + "," + $("#bdtq").val());
|
||
|
}
|
||
|
|
||
|
$('#dialog-cpinfo').dialog('close');
|
||
|
},
|
||
|
格式化: function () {
|
||
|
if ($("#tqsl" + hcout).attr('name') != "") {
|
||
|
var gsrt = Dispatch_Form.deletetqlc($("#tqsl" + hcout).attr('name')).value;
|
||
|
if (gsrt > 0) {
|
||
|
$("#tqsl" + hcout).val("")
|
||
|
$("#tqsl" + hcout).attr('name', "");
|
||
|
}
|
||
|
} else {
|
||
|
alert("只能格式化已提取的项目!");
|
||
|
}
|
||
|
$('#dialog-cpinfo').dialog('close');
|
||
|
}
|
||
|
},
|
||
|
close: function () {
|
||
|
$(".ui-widget-overlay").css("display", "none");
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
</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="Dispatch_list.aspx" id="bt_fhlb" runat="server" style=" width:65px" class="button icon pin">回到列表</a></div>
|
||
|
<div class="add-top-cz" >
|
||
|
<a href="#button" id="bt_tj" onclick="setbcbd()" class="button icon log">保存</a>
|
||
|
<a href="#button" id="chongzhi" onclick="form.reset();" style=" width:60px; " class=" button icon reload">重置表单</a>
|
||
|
<a href="#button" id="fanhui" onclick="history.back();" style=" width:60px; " class="button icon arrowleft">返回上级</a>
|
||
|
<asp:label id="z_error" CssClass="error" runat="server"></asp:label>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="alert-tip">
|
||
|
<b>温馨提示:</b>
|
||
|
<p>• 信息表单中加*号红色标题框为必填项,为了可以顺利保存信息,请您注意填写红色栏目中的信息</p>
|
||
|
<p>• 产品项目信息中,提取产品库存后,将在生产对应工艺阶段中自动累计</p>
|
||
|
</div>
|
||
|
<div id="dd_kong" style=" overflow:auto;">
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>生产单基本信息</h4></td></tr></table>
|
||
|
<table class="tablewk">
|
||
|
<tr><td style=" height:20px" colspan="11"></td></tr>
|
||
|
<tr>
|
||
|
<td class="wktblm"><span>生产编号</span></td><td><input type="text" id="bh" runat="server" ReadOnly Text="自动生成" class="tbinput_hx" /> </td>
|
||
|
<td class="wktblm"><span><font>*生产类型</font></span></td><td><asp:dropdownlist id="sclx" runat="server" CssClass="tbinput_xl"></asp:dropdownlist></td>
|
||
|
<td class="wktblm"><span><font>*下单日期</font></span></td><td><input name='control_date' type='text' id='xdrq' onclick='new Calendar().show(this);' readonly runat=server class="tbinput" /></td>
|
||
|
<td class="wktblm"><span><font>*完工时间</font></span></td><td><input name='control_date' type='text' id='wgrq' onclick='new Calendar().show(this);' readonly runat=server class="tbinput" /></td>
|
||
|
<td class="wktblm"><span><font>*开单人</font></span></td><td><input type="text" id="ywy" runat="server" class="tbinput" /> </td>
|
||
|
<td class="tdjj5">  </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="wktblm"><span>备注</span></td><td colspan="9"><input type="text" id="ddbz" runat="server" readonly class="tbinput_hx" /></td>
|
||
|
<td class="tdjj5">  </td>
|
||
|
</tr>
|
||
|
<tr><td style=" height:20px" colspan="11"></td></tr>
|
||
|
</table>
|
||
|
<table class="bule"> <tr class="tdlietou"><td><h4>产品信息</h4></td></tr></table>
|
||
|
<div id="cpxx" runat=server > </div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id="dialog-cpinfo" title="提取产品库存" style="overflow: hidden; display: none;">
|
||
|
<table class="tablewk" >
|
||
|
<tr><td style=" height:20px" colspan="7"></td></tr>
|
||
|
<tr><td class="wktblm" width="80"><span>  产品货号:</span></td><td width="120"><span id="tcphh"></span></td>
|
||
|
<td class="wktblm" width="80"><span>  产品名称:</span></td><td colspan="3"><span id="tcpmc"></span></td>
|
||
|
<td class="tdjj5">  </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="wktblm" width="80"><span>  土坯可用:</span></td><td><span id="ttpky"></span></td>
|
||
|
<td class="wktblm" width="80"><span>  素坯可用:</span></td><td><span id="tspky"></span></td>
|
||
|
<td class="wktblm" width="80"><span>  白地可用:</span></td><td><span id="tbdky"></span></td>
|
||
|
<td class="tdjj5">  </td>
|
||
|
</tr>
|
||
|
<tr id="tqyttr">
|
||
|
<td class="wktblm" width="80"><span>  土坯已提:</span></td><td><span id="ttpyt"></span></td>
|
||
|
<td class="wktblm" width="80"><span>  素坯已提:</span></td><td><span id="tspyt"></span></td>
|
||
|
<td class="wktblm" width="80"><span>  白地已提:</span></td><td><span id="tbdyt"></span></td>
|
||
|
<td class="tdjj5">  </td>
|
||
|
</tr>
|
||
|
<tr id="tqbdtr" >
|
||
|
<td class="wktblm" width="80"><span>  土坯提取</span></td><td><input type="text" id="tptq" onkeyup="doubleshuru(this)" runat="server" class="tbinput" /></td>
|
||
|
<td class="wktblm" width="80"><span>  素坯提取</span></td><td><input type="text" id="sptq" onkeyup="doubleshuru(this)" runat="server" class="tbinput" /></td>
|
||
|
<td class="wktblm" width="80"><span>  白地提取</span></td><td><input type="text" id="bdtq" onkeyup="doubleshuru(this)" runat="server" class="tbinput" /></td>
|
||
|
<td class="tdjj5">  </td>
|
||
|
</tr>
|
||
|
<tr><td style=" height:20px" colspan="7"></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<span style=" display:none"> <asp:button id="severbc" runat="server" CssClass="button bluez small" Text="保存"
|
||
|
OnClientClick="return setcpxm()" onclick="bt_tj_Click" ></asp:button> </span>
|
||
|
<asp:HiddenField ID="id" runat="server" Value="" />
|
||
|
<asp:HiddenField ID="sccphd" runat="server" Value="" />
|
||
|
<asp:HiddenField ID="pagename" runat="server" Value="dd" />
|
||
|
<script src="../Js/messageshow.js" type="text/javascript"></script>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|