ChargeDetailOther.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:8k
源码类别:

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="Workflow_ChargeDetailOther, App_Web_-rs7x2pk" theme="Normal" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <base target="_self" />
  6.     <link href="style/gridStyle.css" rel="stylesheet" />
  7.     <title>其它费用</title>
  8.     
  9.     <script type="text/javascript">
  10.      function  returnvalue()
  11.       {
  12.          var  txcount= document.getElementById("txt_count").value;  
  13.          window.returnValue=txcount;
  14.       }
  15.       function checkNumber()
  16.        {
  17.             if(!(((window.event.keyCode>=48)&&(window.event.keyCode<=57))||(window.event.keyCode==13)||(window.event.keyCode==46)||(window.event.keyCode==45)))
  18.             {
  19.                   window.event.keyCode=0;
  20.                   alert("对不起,只能输入数字!");
  21.             }
  22.       }
  23.       
  24.     function CheckNull()
  25.     {
  26.         var s=form1.TB_OtherName.value;
  27.         s=s.replace(/^s+|s+$/g,"");
  28.         if (s=="") 
  29.         {
  30.             alert("系统提示:请输入费用名称!");
  31.             return false;
  32.         }
  33.         var sm=parseFloat(form1.TB_Price.value);
  34.         if (sm <=0) 
  35.         {
  36.             alert("系统提示:金额必需大于零!");
  37.             return false;
  38.         }
  39.     }
  40.     
  41.     </script>
  42. </head>
  43. <body onunload="returnvalue()">
  44.      <form id="form1" runat="server" style="font-size:12px;">
  45.      <table style="width:100%; font-size:12px;" border="0" cellpadding="0" cellspacing="0" >
  46.          <tr>
  47.             <td align="left" style="width: 70px; font-weight: bold;">
  48.                 <asp:ImageButton ID="IB_Add"  ImageUrl="~/Workflow/image/Add.jpg" ToolTip="新增"   runat="server" OnClick="IB_Add_Click"   />
  49.             </td>
  50.        </tr>
  51.        <tr>
  52.         <td style="background-image:url(image/Menu_bg.jpg); height:20px;"></td>
  53.        </tr>
  54.     </table>
  55.     
  56.      <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  57.        <tr>
  58.          <td colspan="7">
  59.          <div style="text-indent:2em;height:300px;overflow-x:hidden;overflow-y:auto; width:100%;text-align:left;">
  60.            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="OtherID" BackColor="#CDCDCF" BorderWidth="0px"
  61.                CssClass="Grid"  SelectedRowStyle-CssClass="SelectedRow" RowStyle-CssClass="HeadingCellText" 
  62.        FooterStyle-CssClass="GridFooter"  ShowFooter="true" CellSpacing="1" CellPadding="0"
  63.                OnRowDataBound="GridView1_RowDataBound"  style="width:100%"
  64.                OnRowDeleting="GridView1_RowDeleting"  OnRowEditing="GridView1_RowEditing"
  65.                AllowPaging="false" AllowSorting="false">
  66.                 
  67.                 <AlternatingRowStyle BackColor="#F0F0F0" />
  68. <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" />
  69. <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" />
  70.                 <Columns>
  71.                         <asp:BoundField DataField="OtherName" HeaderText="费用名称">
  72.                             <ItemStyle Width="10%" />
  73.                         </asp:BoundField>
  74.                         <asp:BoundField DataField="Explain" HeaderText ="费用依据">
  75.                            <ItemStyle Width="15%" />
  76.                         </asp:BoundField>
  77.                          <asp:BoundField DataField="Memo" HeaderText="备注">
  78.                              <ItemStyle Width="15%" />
  79.                         </asp:BoundField>
  80.                          <asp:BoundField  DataField="Price" HeaderText="金额">
  81.                              <ItemStyle Width="10%" />
  82.                         </asp:BoundField>
  83.                        <asp:TemplateField HeaderText="操作">
  84.                             <ItemTemplate>
  85.                                 <asp:ImageButton ID="IB_Edit" ToolTip="编辑" runat="server" CommandName="edit" ImageUrl="~/Images/s_edit.gif"/> &nbsp; &nbsp;
  86.                                 <asp:ImageButton ToolTip="删除" ID="IB_Del" runat="server" CommandName="Delete" ImageUrl="~/Images/s-del.gif"
  87.                                     OnClientClick='<%#"return confirm("确认删除费用名称为『"+Eval("OtherName")+"』的费用记录吗?");" %>'/>
  88.                             </ItemTemplate>
  89.                            <%-- <HeaderStyle  HorizontalAlign="Center"  BorderWidth="0px"/>--%>
  90.                             <ItemStyle HorizontalAlign="Center"  Width="10%" BorderWidth="0px"/>
  91.                         </asp:TemplateField>
  92.                     
  93.                    </Columns>
  94.                  <FooterStyle CssClass="GridFooter" />
  95.        <PagerStyle CssClass="GridPage" />
  96.        <EmptyDataTemplate>
  97.                     <table width="100%" class="GridHeader">
  98.                      <tr  style="border-width:1px;height:16px" align="center" bgcolor="#DFDFDF">
  99.                        <td  style="border:1px solid #CCCCCC;width:10%">费用名称</td>
  100.                        <td  style="border:1px solid #CCCCCC;width:15%">费用依据</td>
  101.                        <td  style="border:1px solid #CCCCCC;width:15%">备注</td>
  102.                        <td  style="border:1px solid #CCCCCC;width:10%">金额</td>
  103.                         <td  style="border:1px solid #CCCCCC; text-align:center;"> 操 作</td>
  104.                      </tr> 
  105.                     </table>
  106.                 </EmptyDataTemplate>
  107.             </asp:GridView>
  108.             </div>
  109.          </td>
  110.        </tr>
  111.        </table>
  112.  
  113.         <asp:Panel ID="PanelAdd" runat="server" Width="100%">
  114.             <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  115.                  <tr  style="border-width:1px;height:16px" align="center" bgcolor="#DFDFDF">
  116.                        <td  style="border:1px solid #CCCCCC;width:10%">费用名称</td>
  117.                        <td  style="border:1px solid #CCCCCC;width:15%">费用依据</td>
  118.                        <td  style="border:1px solid #CCCCCC;width:15%">备注</td>
  119.                        <td  style="border:1px solid #CCCCCC;width:10%">金额</td>
  120.                         <td  style="border:1px solid #CCCCCC; text-align:center;" colspan="2"> 操 作</td>
  121.                      </tr> 
  122.                 
  123.                 <tr>
  124.                      <td align="left" style="width:10%">
  125.                         <asp:TextBox ID="TB_OtherName" Text="" runat="server" Width="100%"></asp:TextBox>
  126.                     </td>
  127.                     <td align="left" style="width:15%"> 
  128.                       <asp:TextBox ID="TB_Explain" Text=""   runat="server" Width="100%" ></asp:TextBox>
  129.                     </td>
  130.                     <td align="left" style="width:15%"> 
  131.                       <asp:TextBox ID="TB_Memo" Text="" runat="server" Width="100%" ></asp:TextBox>
  132.                     </td>
  133.                     <td align="left" style="width:12%"> 
  134.                       <asp:TextBox ID="TB_Price" Text="0" runat="server" onkeypress="checkNumber()"  MaxLength="12"  Width="92%" ></asp:TextBox>
  135.                     </td>
  136.                     <td align="left" style="width:90px;">
  137.                        &nbsp;<asp:ImageButton ID="BT_Confirm" runat="server" ImageUrl="image/queding.gif" OnClick="BT_Confirm_Click" OnClientClick="return CheckNull();"/>
  138.                     </td>
  139.                      <td align="left">
  140.                          &nbsp;&nbsp;<asp:ImageButton ID="BT_Cancel" runat="server" ImageUrl="image/quxiao.gif" OnClick="BT_Cancel_Click" />
  141.                     </td>
  142.                 </tr>
  143.             </table>
  144.        </asp:Panel> 
  145.       
  146.         <input type="hidden" id="equipmentid" name="equipmentid" runat="server"/>
  147.         <input type="hidden" id="status" name="status" runat="server"/>
  148.         <input type="hidden" id="txt_count" name="txt_count" value="0" runat="server"/>&nbsp;
  149.     </form>
  150. </body>
  151. </html>