154 lines
8.1 KiB
Plaintext
154 lines
8.1 KiB
Plaintext
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OtherOut_Form.aspx.cs" Inherits="OtherOut_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 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 type="text/javascript">
|
||
|
var beforval = "";
|
||
|
//调用添加方法
|
||
|
function setbcbd() {
|
||
|
$("#<%=severbc.ClientID%>").click();
|
||
|
}
|
||
|
//判断填写格式给出提示
|
||
|
function pd() {
|
||
|
if ($("#riqi").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
||
|
$("#z_error").text("日期不能为空!");
|
||
|
return false;
|
||
|
}else if ($("#ckzl").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
||
|
$("#z_error").text("出库类型不能为空!");
|
||
|
return false;
|
||
|
}else if ($("#wlbh").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
||
|
$("#z_error").text("物料编号不能为空!");
|
||
|
return false;
|
||
|
}else if ($("#wlmc").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
||
|
$("#z_error").text("物料名称不能为空!");
|
||
|
return false;
|
||
|
}
|
||
|
else {
|
||
|
$("#z_error").text("");
|
||
|
}
|
||
|
if($("#cangku").val()=="客户纸库")
|
||
|
{
|
||
|
|
||
|
if ($("#khbh").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
||
|
$("#z_error").text("客户编号不能为空!");
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
function selectwl() {
|
||
|
$("#dialogwl").dialog({
|
||
|
resizable: false,
|
||
|
height: 510,
|
||
|
width: 1230,
|
||
|
modal: true,
|
||
|
close: function () {
|
||
|
$(".ui-widget-overlay").css("display", "none");
|
||
|
}
|
||
|
});
|
||
|
//用来弹出层条件框获取焦点
|
||
|
dialogfocus('ifa_wl');
|
||
|
}
|
||
|
|
||
|
function selecshengchandan() {
|
||
|
$("#dialog-modal").dialog({
|
||
|
resizable: false,
|
||
|
height: 510,
|
||
|
width: 1230,
|
||
|
modal: true,
|
||
|
close: function () {
|
||
|
$(".ui-widget-overlay").css("display", "none");
|
||
|
}
|
||
|
});
|
||
|
//用来弹出层条件框获取焦点
|
||
|
dialogfocus('ifa_scd');
|
||
|
}
|
||
|
function jisuanje(){
|
||
|
document.getElementById("jine").value=document.getElementById("sl").value*document.getElementById("dj").value*1;
|
||
|
}
|
||
|
</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="OtherOut_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>
|
||
|
</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="13"></td></tr>
|
||
|
<tr>
|
||
|
<td class="wktblm"><span>出库单号</span></td><td><asp:TextBox id="ckdh" runat="server" CssClass="tbinput_hx" ReadOnly Text="自动生成" ></asp:TextBox></td>
|
||
|
<td class="wktblm"><span><font>日期</font></span></td><td><input name='ckrq' type='text' id='riqi' size='10' maxlength='10' onclick='new Calendar().show(this);' runat="server" class="tbinput_bt" /></td>
|
||
|
<td class="wktblm"><span>生产编号</span></td><td onclick="selecshengchandan()"><input type=text id="scdh" runat=server class="tbinput"/></td>
|
||
|
<td class="wktblm"><span><font>物料编号</font></span></td><td onclick="selectwl()"><input type=text id="wlbh" runat=server class="tbinput_bt" /></td>
|
||
|
<td class="wktblm"><span>物料名称</span></td><td><input type=text id="wlmc" runat=server readonly class="tbinput_hx" /></td>
|
||
|
<td class="wktblm"><span>库房</span></td><td><input type=text id="cangku" runat=server readonly class="tbinput_hx" /></td>
|
||
|
<td class="tdjj5">  </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="wktblm"><span>规格</span></td><td><input type=text id="guige" runat=server readonly onkeyup="doubleshuru(this)" class="tbinput_hx" /></td>
|
||
|
<td class="wktblm"><span>单位</span></td><td><input type=text id="danwei" runat=server readonly class="tbinput_hx" /></td>
|
||
|
<td class="wktblm"><span>品牌</span></td><td><input type=text id="wlpp" runat=server readonly class="tbinput_hx" /></td>
|
||
|
<td class="wktblm"><span>数量</span></td><td><input type=text id="sl" runat=server class="tbinput" onkeyup="doubleshuru(this);jisuanje()"/></td>
|
||
|
<td class="wktblm"><span>经手人</span></td><td><input type=text id="jsr" readonly runat=server class="tbinput_hx" /></td>
|
||
|
<td class="wktblm"><span>部门</span></td><td><asp:dropdownlist id="bm" runat="server" CssClass="tbinput_xl" > </asp:dropdownlist></td>
|
||
|
<td class="tdjj5">  </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="wktblm"><font>出库类型</font></td><td><asp:dropdownlist id="ckzl" runat="server" CssClass="tbinput_xl" > <asp:ListItem Value="盘亏出库">盘亏出库</asp:ListItem><asp:ListItem Value="辅料出库">辅料出库</asp:ListItem> </asp:dropdownlist></td>
|
||
|
<td class="wktblm">状态</td><td><input type=text id="zt" readonly runat=server class="tbinput_hx" /></td>
|
||
|
<td class="wktblm">备注</td><td colspan="7"><asp:TextBox id="beizhu" runat="server" CssClass="tbinput" ></asp:TextBox></td>
|
||
|
<td class="tdjj5">  </td>
|
||
|
</tr>
|
||
|
<tr><td style=" height:20px" colspan="13"></td></tr>
|
||
|
|
||
|
</table>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id="dialogwl" title="选择物料" style="overflow:hidden; display:none;" >
|
||
|
<iframe src="../ddselect/Materiel_list.aspx" frameborder="no" border="0" style="height:500px;width:100%;overflow:hidden" scrolling="no" id="ifa_wl" ></iframe>
|
||
|
</div>
|
||
|
<div id="dialog-modal" title="选择生产单" style="overflow:hidden; display:none;" >
|
||
|
<iframe src="../ddselect/shengchandan.aspx" frameborder="no" border="0" style="height:500px;width:100%;overflow:hidden; " scrolling="no" id="ifa_scd" ></iframe>
|
||
|
</div>
|
||
|
<span style=" display:none"> <asp:button id="severbc" runat="server" CssClass="button bluez small" Text="保存" OnClientClick="return pd()" onclick="bt_tj_Click" ></asp:button> </span>
|
||
|
<asp:HiddenField ID="id" runat="server" Value="" />
|
||
|
<asp:HiddenField ID="dj" runat="server"/>
|
||
|
<asp:HiddenField ID="jine" runat="server"/>
|
||
|
<asp:HiddenField ID="pagename" runat="server" Value="qtck" />
|
||
|
<input id="btn_wlclose" style="display:none" type=button onclick="$('#dialogwl').dialog('close');"/>
|
||
|
<input id="btn_sgdclose" style="display:none" type=button onclick="$('#dialog-modal').dialog('close');"/>
|
||
|
<script src="../Js/messageshow.js" type="text/javascript"></script>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|