CeramicProject/newyt/Module_data/OtherExpenses_Form.aspx

115 lines
6.4 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OtherExpenses_Form.aspx.cs" Inherits="OtherExpenses_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 = "";
$(document).ready(function () {
})
function selecdd() {
$("#dialog-modal").dialog({
resizable: false,
height: 510,
width: 1230,
modal: true,
close: function () {
$(".ui-widget-overlay").css("display", "none");
}
});
//用来弹出层条件框获取焦点
dialogfocus('ifa_dd');
}
//判断填写格式给出提示
function pd() {
if($("#riqi").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
$("#z_error").text("日期不能为空!");
return false;
} else if ($("#zczhonglei").children().length == 0) {
$("#z_error").text("支出种类不能为空!");
return false;
}else if ($("#jine").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
$("#z_error").text("金额不能为空!");
return false;
}
else {
$("#z_error").text("");
}
}
//调用添加方法
function setbcbd() {
$("#<%=severbc.ClientID%>").click();
}
</script>
</head>
<body>
<form id="form" runat="server">
<div class="rtbjdiv" >
<div class="add-top" >
<div class="add-top-dh" id="div_listdaohang"><h4>其它支出表单页 &nbsp&nbsp</h4> <a href="OtherExpenses_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="自动生成"></asp:TextBox></td>
<td class="wktblm"><span><font>*日期</font></span></td><td><input name='control_date' 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><input type="text" id="ddbh" runat="server" class='tbinput' readonly style="color:Gray" onclick="selecdd()"/> </td>
<td class="wktblm"><span>产品名称</span></td><td><asp:TextBox id="cpmc" runat="server" CssClass="tbinput_hx" disabled></asp:TextBox></td>
<td class="wktblm"><span>客户编号</span></td><td><asp:TextBox id="khbh" runat="server" CssClass="tbinput_hx" disabled></asp:TextBox></td>
<td class="wktblm"><span>客户名称</span></td><td><asp:TextBox id="khmc" runat="server" CssClass="tbinput_hx" disabled></asp:TextBox></td>
<td class="tdjj5">&nbsp </td>
</tr>
<tr>
<td class="wktblm"><span>支出种类</span></td><td><asp:dropdownlist id="zczhonglei" runat="server" CssClass="tbinput_xl"></asp:dropdownlist></td>
<td class="wktblm"><span><font>*金额</font></span></td><td><input type=text id="jine" runat=server onkeyup="doubleshuru(this)" class="tbinput_bt" /></td>
<td class="wktblm"><span><font>*经手人</font></span></td><td><asp:TextBox id="jsr" runat="server" CssClass="tbinput_bt"></asp:TextBox></td>
<td class="wktblm"><span>审核状态</span></td><td><asp:TextBox id="shzt" runat="server" CssClass="tbinput_hx" disabled Text="待审"></asp:TextBox></td>
<td class="wktblm"><span>事项</span></td><td colspan="3"><asp:TextBox id="sx" runat="server" CssClass="tbinput"></asp:TextBox></td>
<td class="tdjj5">&nbsp </td>
</tr>
<tr>
<td class="wktblm">备注</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="dialog-modal" title="选择订单" style="overflow:hidden; display:none;" >
<iframe src="../ddselect/select_dd.aspx" frameborder="no" border="0" style="height:500px;width:100%;overflow:hidden; " scrolling="no" id="ifa_dd" ></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>
<input id="btn_ddclose" style="display:none" type=button onclick="$('#dialog-modal').dialog('close');"/>
<asp:HiddenField ID="id" runat="server" Value="" />
<asp:HiddenField ID="pagename" runat="server" Value="qtzc" />
<script src="../Js/messageshow.js" type="text/javascript"></script>
</form>
</body>
</html>