- <%@ page language="C#" autoeventwireup="true" inherits="Workflow_ChargeDetailOther, App_Web_4afs73eh" theme="Normal" %>
- <!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">
- <base target="_self" />
- <link href="style/gridStyle.css" rel="stylesheet" />
- <title>其它费用</title>
- <script type="text/javascript">
- function returnvalue()
- {
- var txcount= document.getElementById("txt_count").value;
- window.returnValue=txcount;
- }
- function checkNumber()
- {
- if(!(((window.event.keyCode>=48)&&(window.event.keyCode<=57))||(window.event.keyCode==13)||(window.event.keyCode==46)||(window.event.keyCode==45)))
- {
- window.event.keyCode=0;
- alert("对不起,只能输入数字!");
- }
- }
- function CheckNull()
- {
- var s=form1.TB_OtherName.value;
- s=s.replace(/^s+|s+$/g,"");
- if (s=="")
- {
- alert("系统提示:请输入费用名称!");
- return false;
- }
- var sm=parseFloat(form1.TB_Price.value);
- if (sm <=0)
- {
- alert("系统提示:金额必需大于零!");
- return false;
- }
- }
- </script>
- </head>
- <body onunload="returnvalue()">
- <form id="form1" runat="server" style="font-size:12px;">
- <table style="width:100%; font-size:12px;" border="0" cellpadding="0" cellspacing="0" >
- <tr>
- <td align="left" style="width: 70px; font-weight: bold;">
- <asp:ImageButton ID="IB_Add" ImageUrl="~/Workflow/image/Add.jpg" ToolTip="新增" runat="server" OnClick="IB_Add_Click" />
- </td>
- </tr>
- <tr>
- <td style="background-image:url(image/Menu_bg.jpg); height:20px;"></td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" >
- <tr>
- <td colspan="7">
- <div style="text-indent:2em;height:300px;overflow-x:hidden;overflow-y:auto; width:100%;text-align:left;">
- <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="OtherID" BackColor="#CDCDCF" BorderWidth="0px"
- CssClass="Grid" SelectedRowStyle-CssClass="SelectedRow" RowStyle-CssClass="HeadingCellText"
- FooterStyle-CssClass="GridFooter" ShowFooter="true" CellSpacing="1" CellPadding="0"
- OnRowDataBound="GridView1_RowDataBound" style="width:100%"
- OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
- AllowPaging="false" AllowSorting="false">
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" />
- <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" />
- <Columns>
- <asp:BoundField DataField="OtherName" HeaderText="费用名称">
- <ItemStyle Width="10%" />
- </asp:BoundField>
- <asp:BoundField DataField="Explain" HeaderText ="费用依据">
- <ItemStyle Width="15%" />
- </asp:BoundField>
- <asp:BoundField DataField="Memo" HeaderText="备注">
- <ItemStyle Width="15%" />
- </asp:BoundField>
- <asp:BoundField DataField="Price" HeaderText="金额">
- <ItemStyle Width="10%" />
- </asp:BoundField>
- <asp:TemplateField HeaderText="操作">
- <ItemTemplate>
- <asp:ImageButton ID="IB_Edit" ToolTip="编辑" runat="server" CommandName="edit" ImageUrl="~/Images/s_edit.gif"/>
- <asp:ImageButton ToolTip="删除" ID="IB_Del" runat="server" CommandName="Delete" ImageUrl="~/Images/s-del.gif"
- OnClientClick='<%#"return confirm("确认删除费用名称为『"+Eval("OtherName")+"』的费用记录吗?");" %>'/>
- </ItemTemplate>
- <%-- <HeaderStyle HorizontalAlign="Center" BorderWidth="0px"/>--%>
- <ItemStyle HorizontalAlign="Center" Width="10%" BorderWidth="0px"/>
- </asp:TemplateField>
- </Columns>
- <FooterStyle CssClass="GridFooter" />
- <PagerStyle CssClass="GridPage" />
- <EmptyDataTemplate>
- <table width="100%" class="GridHeader">
- <tr style="border-width:1px;height:16px" align="center" bgcolor="#DFDFDF">
- <td style="border:1px solid #CCCCCC;width:10%">费用名称</td>
- <td style="border:1px solid #CCCCCC;width:15%">费用依据</td>
- <td style="border:1px solid #CCCCCC;width:15%">备注</td>
- <td style="border:1px solid #CCCCCC;width:10%">金额</td>
- <td style="border:1px solid #CCCCCC; text-align:center;"> 操 作</td>
- </tr>
- </table>
- </EmptyDataTemplate>
- </asp:GridView>
- </div>
- </td>
- </tr>
- </table>
- <asp:Panel ID="PanelAdd" runat="server" Width="100%">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" >
- <tr style="border-width:1px;height:16px" align="center" bgcolor="#DFDFDF">
- <td style="border:1px solid #CCCCCC;width:10%">费用名称</td>
- <td style="border:1px solid #CCCCCC;width:15%">费用依据</td>
- <td style="border:1px solid #CCCCCC;width:15%">备注</td>
- <td style="border:1px solid #CCCCCC;width:10%">金额</td>
- <td style="border:1px solid #CCCCCC; text-align:center;" colspan="2"> 操 作</td>
- </tr>
- <tr>
- <td align="left" style="width:10%">
- <asp:TextBox ID="TB_OtherName" Text="" runat="server" Width="100%"></asp:TextBox>
- </td>
- <td align="left" style="width:15%">
- <asp:TextBox ID="TB_Explain" Text="" runat="server" Width="100%" ></asp:TextBox>
- </td>
- <td align="left" style="width:15%">
- <asp:TextBox ID="TB_Memo" Text="" runat="server" Width="100%" ></asp:TextBox>
- </td>
- <td align="left" style="width:12%">
- <asp:TextBox ID="TB_Price" Text="0" runat="server" onkeypress="checkNumber()" MaxLength="12" Width="92%" ></asp:TextBox>
- </td>
- <td align="left" style="width:90px;">
- <asp:ImageButton ID="BT_Confirm" runat="server" ImageUrl="image/queding.gif" OnClick="BT_Confirm_Click" OnClientClick="return CheckNull();"/>
- </td>
- <td align="left">
- <asp:ImageButton ID="BT_Cancel" runat="server" ImageUrl="image/quxiao.gif" OnClick="BT_Cancel_Click" />
- </td>
- </tr>
- </table>
- </asp:Panel>
- <input type="hidden" id="equipmentid" name="equipmentid" runat="server"/>
- <input type="hidden" id="status" name="status" runat="server"/>
- <input type="hidden" id="txt_count" name="txt_count" value="0" runat="server"/>
- </form>
- </body>
- </html>