frmCrmCustomerLinkList.aspx 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmCrmCustomerLinkList.aspx.cs" Inherits="AppFms_Crm_frmCrmCustomerLinkList" %>
  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 = "frmCrmCustomerLinkEdit.aspx";
  14. eci.open(url);
  15. }
  16. function editAction(obj) {
  17. var key = $(obj).getKey();
  18. var url = "frmCrmCustomerLinkEdit.aspx?key=" + key;
  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. <div id="divQuery" style="width: 100%;">
  28. <table id="tbQuery" class="grid" cellpadding="0" cellspacing="0">
  29. <tr>
  30. <th style="width: 10%"></th>
  31. <th style="width: 20%"></th>
  32. <th style="width: 10%"></th>
  33. <th style="width: 20%"></th>
  34. <th style="width: 10%"></th>
  35. <th style="width: 20%"></th>
  36. </tr>
  37. <tr>
  38. <td class="lbl">类型</td>
  39. <td><asp:ECombox runat="server" ID ="cboType" DataField="TYPE" Query="A.TYPE|string|=" AddEmpty="true" ECIType="LXRLX" Width="85%"></asp:ECombox></td>
  40. <td class="lbl">姓名</td>
  41. <td><asp:ETextBox runat="server" ID ="txtName" DataField="NAME" Query="A.NAME|string|like" Width="85%"></asp:ETextBox></td>
  42. <td class="lbl">生效状态</td>
  43. <td><asp:ECombox runat="server" ID ="cboStatus" DataField="STATUS" Query="A.STATUS|string|=" AddEmpty="true" ECIType="SXZT" Width="85%"></asp:ECombox></td>
  44. </tr>
  45. <tr>
  46. <td class="center" colspan="6">
  47. <asp:EButton runat="server" ID="btnSearch" Text="查询" Icon="find" />
  48. <asp:EButton runat="server" ID="btnReset" IsClient="true" Text="重置" Icon="reset" OnClientClick= "eci.reset('tbQuery');"/></td>
  49. </tr>
  50. </table>
  51. </div>
  52. <div id="toolbar">
  53. <asp:EButton runat="server" ID="btnAdd" Text="新增" Icon="Add" OnClientClick="addAction();" IsClient="true" />
  54. </div>
  55. <div id="datagrid">
  56. <asp:EGridView ID="gvData" Layout="divQuery,toolbar,pagetitle" runat="server"
  57. FitWindow="true" EnableSorting="True" EnableSelect="false" EnablePaging="true" EnableClickSelectRow="true"
  58. Width="1000px" KeyField="GUID" HAlign="center" OnClick="editAction">
  59. <Columns>
  60. <asp:TemplateField HeaderText="编辑" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="80">
  61. <ItemTemplate>
  62. <asp:EButton runat="server" ID="btnEdit" Text="编辑" IsClient="true" Icon="edit" OnClientClick="editAction(this);" />
  63. </ItemTemplate>
  64. </asp:TemplateField>
  65. <asp:TemplateField HeaderText="删除" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="80">
  66. <ItemTemplate>
  67. <asp:EButton runat="server" Icon="Delete" ID="btnDelete" Text="删除" IsClient="true" OnClientClick="return deleteAction(this);" CommandArgument='<%#Eval("GUID")%>' OnClick="btnDelete_Click" />
  68. </ItemTemplate>
  69. </asp:TemplateField>
  70. <asp:BoundField DataField="TYPE" HeaderText="类型" SortExpression="TYPE" ItemStyle-Width="150"></asp:BoundField>
  71. <asp:BoundField DataField="NAME" HeaderText="姓名" SortExpression="NAME" ItemStyle-Width="150"></asp:BoundField>
  72. <asp:BoundField DataField="MAIL" HeaderText="邮箱" SortExpression="MAIL" ItemStyle-Width="150"></asp:BoundField>
  73. <asp:BoundField DataField="DEPT" HeaderText="部门" SortExpression="DEPT" ItemStyle-Width="150"></asp:BoundField>
  74. <asp:BoundField DataField="STATE" HeaderText="职务" SortExpression="STATE" ItemStyle-Width="150"></asp:BoundField>
  75. <asp:BoundField DataField="TEL" HeaderText="电话" SortExpression="TEL" ItemStyle-Width="150"></asp:BoundField>
  76. <asp:BoundField DataField="STATUS" HeaderText="生效状态" SortExpression="STATUS" ItemStyle-Width="150"></asp:BoundField>
  77. <asp:BoundField DataField="CREATE_USER_NAME" HeaderText="创建人" SortExpression="CREATE_USER_NAME" ItemStyle-Width="150"></asp:BoundField>
  78. <asp:BoundField DataField="CREATE_DATE" HeaderText="创建日期" SortExpression="CREATE_DATE" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" ItemStyle-Width="150"></asp:BoundField>
  79. <asp:BoundField DataField="UPDATE_USER_NAME" HeaderText="修改人" SortExpression="UPDATE_USER_NAME" ItemStyle-Width="150"></asp:BoundField>
  80. <asp:BoundField DataField="UPDATE_DATE" HeaderText="修改日期" SortExpression="UPDATE_DATE" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" ItemStyle-Width="150"></asp:BoundField>
  81. </Columns>
  82. </asp:EGridView>
  83. </div>
  84. </div>
  85. </form>
  86. </body>
  87. </html>