frmBdExtendDataList.aspx 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmBdExtendDataList.aspx.cs" Inherits="AppFms_Bd_frmBdExtendDataList" %>
  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. <title>业务扩展基础资料</title>
  6. <link href="../../Themes/Default/eci.css" rel="stylesheet" />
  7. <!-- #include File="../../App/Common/PageLoad.aspx" -->
  8. <script type="text/javascript">
  9. function deleteAction(obj) {
  10. msg.confirm("确定要执行删除操作吗?", obj);
  11. }
  12. function addAction() {
  13. var url = "frmBdExtendDataEdit.aspx?datatype=" + $("#hidDataType").val();
  14. eci.open(url);
  15. }
  16. function editAction(obj) {
  17. var key = $(obj).getKey();
  18. var url = "frmBdExtendDataEdit.aspx?key=" + key + "&datatype=" + $("#hidDataType").val();
  19. eci.open(url);
  20. }
  21. </script>
  22. </head>
  23. <body>
  24. <form id="form1" runat="server">
  25. <div id="root">
  26. <asp:ETitle runat="server" ID="pagetitle" Title="业务扩展基础资料"></asp:ETitle>
  27. <input type="hidden" runat="server" id="hidDataType" />
  28. <div id="divQuery" style="width: 100%;">
  29. <table id="tbQuery" class="grid" cellpadding="0" cellspacing="0">
  30. <tr>
  31. <th style="width: 10%"></th>
  32. <th style="width: 20%"></th>
  33. <th style="width: 10%"></th>
  34. <th style="width: 20%"></th>
  35. <th style="width: 10%"></th>
  36. <th style="width: 20%"></th>
  37. <th style="width: 10%"></th>
  38. <th style="width: 20%"></th>
  39. </tr>
  40. <tr>
  41. <td class="lbl">分组名称</td>
  42. <td>
  43. <asp:EChoose runat="server" ID="txtDataType" ECIType="BD_EXTEND_DATA_TYPE" DataField="DATA_TYPE" Query="A.DATA_TYPE|string|=" Width="85%"></asp:EChoose>
  44. </td>
  45. <td class="lbl">代码</td>
  46. <td>
  47. <asp:ETextBox runat="server" ID="txtCode" DataField="CODE" Query="A.CODE|string|like" Width="85%"></asp:ETextBox></td>
  48. <td class="lbl">名称</td>
  49. <td>
  50. <asp:ETextBox runat="server" ID="txtName" DataField="NAME" Query="A.NAME|string|like" Width="85%"></asp:ETextBox></td>
  51. <td class="lbl">是否启用</td>
  52. <td>
  53. <asp:ECombox runat="server" ID="cboStatus" DefaultValue="Y" DataField="STATUS" ECIType="FMS_ISUSE" Query="A.STATUS|string|=" Width="85%"></asp:ECombox>
  54. </td>
  55. </tr>
  56. <tr class="morecondition">
  57. <td class="lbl remove">公司代码</td>
  58. <td class="remove">
  59. <asp:ETextBox runat="server" ID="txtCompanyCode" DataField="COMPANY_CODE" ReadOnly="true" Width="85%"></asp:ETextBox></td>
  60. <td class="lbl remove">公司名称</td>
  61. <td class="remove">
  62. <asp:ETextBox runat="server" ID="txtCompanyName" ReadOnly="true" Width="85%"></asp:ETextBox></td>
  63. </tr>
  64. <tr>
  65. <td class="center" colspan="8">
  66. <asp:EButton runat="server" ID="btnSearch" Text="查询" Icon="find" />
  67. <asp:EButton runat="server" ID="btnReset" IsClient="true" Text="重置" Icon="reset" OnClientClick="eci.reset('tbQuery');" />
  68. <asp:EToggle runat="server" ID="btnShow" Icon="find" Selector=".morecondition" IsShow="false" />
  69. </td>
  70. </tr>
  71. </table>
  72. </div>
  73. <div id="toolbar">
  74. <asp:EButton runat="server" ID="btnAdd" Text="新增" Icon="Add" OnClientClick="addAction();" IsClient="true" />
  75. </div>
  76. <div id="datagrid">
  77. <asp:EGridView ID="gvData" Layout="divQuery,toolbar,pagetitle" runat="server" EnableExcel="true" ExcelName="基础资料"
  78. FitWindow="true" EnableSorting="True" EnableSelect="false" EnablePaging="true" EnableClickSelectRow="true"
  79. Width="1000px" KeyField="GUID" HAlign="center" OnClick="editAction">
  80. <Columns>
  81. <asp:TemplateField HeaderText="操作" ItemStyle-Width="160">
  82. <ItemTemplate>
  83. <asp:EButton runat="server" ID="btnEdit" Text="编辑" IsClient="true" Icon="edit" OnClientClick="editAction(this);" />
  84. <asp:EButton runat="server" Icon="Delete" ID="btnDelete" Text="删除" IsClient="true" OnClientClick="return deleteAction(this);" CommandArgument='<%#Eval("GUID")%>' OnClick="btnDelete_Click" />
  85. </ItemTemplate>
  86. </asp:TemplateField>
  87. <asp:EBoundField DataField="DATA_TYPE" HeaderText="分组代码" SortExpression="DATA_TYPE" ItemStyle-Width="100"></asp:EBoundField>
  88. <asp:EBoundField DataField="TYPE_NAME" HeaderText="分组名称" SortExpression="TYPE_NAME" ItemStyle-Width="120"></asp:EBoundField>
  89. <asp:EBoundField DataField="CODE" HeaderText="代码" SortExpression="CODE" ItemStyle-Width="100"></asp:EBoundField>
  90. <asp:EBoundField DataField="NAME" HeaderText="名称" SortExpression="NAME" ItemStyle-Width="100"></asp:EBoundField>
  91. <asp:EBoundField DataField="STATUS_NAME" HeaderText="是否启用" SortExpression="STATUS" ItemStyle-Width="80"></asp:EBoundField>
  92. <asp:EBoundField DataField="SEQ" HeaderText="顺序" SortExpression="SEQ" ItemStyle-Width="80"></asp:EBoundField>
  93. <asp:EBoundField DataField="MEMO" HeaderText="备注" SortExpression="MEMO" ItemStyle-Width="150"></asp:EBoundField>
  94. <asp:EBoundField DataField="CREATE_USER_NAME" HeaderText="创建人" SortExpression="CREATE_USER_NAME" ItemStyle-Width="100"></asp:EBoundField>
  95. <asp:EBoundField DataField="CREATE_DATE" HeaderText="创建时间" SortExpression="CREATE_DATE" ItemStyle-Width="150"></asp:EBoundField>
  96. <asp:EBoundField DataField="UPDATE_USER_NAME" HeaderText="修改人" SortExpression="UPDATE_USER_NAME" ItemStyle-Width="100"></asp:EBoundField>
  97. <asp:EBoundField DataField="UPDATE_DATE" HeaderText="修改时间" SortExpression="UPDATE_DATE" ItemStyle-Width="150"></asp:EBoundField>
  98. </Columns>
  99. </asp:EGridView>
  100. </div>
  101. </div>
  102. </form>
  103. </body>
  104. </html>