CeramicProject/newyt/Module_data/OtherEntries_Form.aspx

165 lines
9.2 KiB
Plaintext
Raw Normal View History

2024-05-18 15:28:29 +08:00
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OtherEntries_Form.aspx.cs" Inherits="OtherEntries_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 suanjine(){
var zje=$("#sl").val()*$("#dj").val();
$("#jine").val(zje);
}
//调用添加方法
function setbcbd() {
$("#<%=severbc.ClientID%>").click();
}
//判断填写格式给出提示
function pd() {
if ($("#riqi").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
$("#z_error").text("日期不能为空!");
return false;
}else if ($("#rklx").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 if ($("#sl").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
$("#z_error").text("数量不能为空!");
return false;
}else if ($("#dj").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
$("#z_error").text("单价不能为空!");
return false;
}else if ($("#sl").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
$("#z_error").text("金额不能为空!");
return false;
}else if ($("#rklx").val()=="客户来料") {
if($("#khbh").val()=="")
{
$("#z_error").text("客户编号不能为空!");
return false;
}
}
else {
$("#z_error").text("");
}
}
function selectwl() {
$("#dialogwl").dialog({
resizable: false,
height: 510,
width: 1230,
modal: true,
close: function () {
$(".ui-widget-overlay").css("display", "none");
}
});
//用来弹出层条件框获取焦点
dialogfocus('ifa_wl');
}
//选择供应商
function selectgys() {
$("#dialoggys").dialog({
resizable: false,
height: 510,
width: 1230,
modal: true,
close: function () {
$(".ui-widget-overlay").css("display", "none");
}
});
//用来弹出层条件框获取焦点
dialogfocus('ifa_gys');
}
</script>
</head>
<body>
<form id="form" runat="server" onmousemove="suanjine()">
<div class="rtbjdiv" >
<div class="add-top" >
<div class="add-top-dh" id="div_listdaohang"><h4>其它入库表单页 &nbsp&nbsp</h4> <a href="OtherEntries_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="bh" runat="server" CssClass="tbinput_hx" ReadOnly Text="自动生成" ForeColor="Gray" Enabled=false AutoCompleteType=none ></asp:TextBox></td>
<td class="wktblm"><span><font>*日期</font></span></td><td ><input name='rkrq' type='text' id='riqi' size='10' maxlength='10' onclick='new Calendar().show(this);' readonly='readonly' runat=server class="tbinput_bt" /></td>
<td class="wktblm"><span>入库类型 </span></td><td ><asp:dropdownlist id="rklx" runat="server" CssClass="tbinput_xl"> <asp:ListItem Value="余料入库">余料入库</asp:ListItem> <asp:ListItem Value="盘盈入库">盘盈入库</asp:ListItem> <asp:ListItem Value="采购入库">采购入库</asp:ListItem></asp:dropdownlist></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 class="tbinput_hx" /></td>
<td class="tdjj5">&nbsp </td>
</tr>
<tr>
<td class="wktblm"><span>规格</span></td><td><input type=text id="guige" 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="wlzl" runat=server readonly 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="zt" readonly runat=server class="tbinput_hx" /></td>
<td class="wktblm"><span>经手人</span></td><td><input type=text id="jsr" readonly runat=server class="tbinput_hx" /></td>
<td class="tdjj5">&nbsp </td>
</tr>
<tr>
<td class="wktblm"><span><font>*数量</font></span></td><td ><input type=text id="sl" runat=server class="tbinput_bt" onkeyup="doubleshuru(this)"/></td>
<td class="wktblm"><span><font>*单价</font></span></td><td ><input type=text id="dj" runat=server onkeyup="doubleshuru(this)" class="tbinput_bt" /></td>
<td class="wktblm"><span><font>*金额</font></span></td><td ><input type=text id="jine" runat=server class="tbinput_bt" /></td>
<td class="wktblm"><span>供应商编号</span></td><td ><input type=text id="gysbh" runat=server class="tbinput" onclick="selectgys()" /></td>
<td class="wktblm"><span>供应商名称</span></td><td><input type=text id="gysmc" readonly runat=server class="tbinput_hx" /></td>
<td class="wktblm"><span>位置</span></td><td ><input type=text id="wz" runat=server class="tbinput" /></td>
<td class="tdjj5">&nbsp </td>
</tr>
<tr>
<td class="wktblm"><span>备注</span></td><td colspan="11"><asp:TextBox id="beizhu" runat="server" CssClass="tbinput" ></asp:TextBox></td>
<td class="tdjj5">&nbsp </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="dialoggys" title="选择供应商" style="overflow:hidden; display:none;" >
<iframe src="../ddselect/Supplier_list.aspx" frameborder="no" border="0" style="height:500px;width:100%;overflow:hidden" scrolling="no" id="ifa_gys" ></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="pagename" runat="server" Value="qtrk" />
<input id="btn_gysclose" style="display:none" type=button onclick="$('#dialoggys').dialog('close');"/>
<input id="btn_wlclose" style="display:none" type=button onclick="$('#dialogwl').dialog('close');"/>
<script src="../Js/messageshow.js" type="text/javascript"></script>
</form>
</body>
</html>