鹤壁电销版 自用

personedit.aspx 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="personedit.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.customermanage.personedit" %>
  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>
  5. <title>编辑客户联系人</title>
  6. <link href="../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  7. <script src="../scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  8. <script type="text/javascript" src="../scripts/jquery/jquery.form.js"></script>
  9. <script type="text/javascript" src="../scripts/jquery/jquery.validate.min.js"></script>
  10. <script type="text/javascript" src="../scripts/jquery/messages_cn.js"></script>
  11. <script type="text/javascript" src="../scripts/function.js"></script>
  12. <script src="../scripts/ui/js/core/base.js" type="text/javascript"></script>
  13. <script src="../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
  14. <link href="../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
  15. <link href="../images/style.css" rel="stylesheet" type="text/css" />
  16. <script type="text/javascript">
  17. function CloseThis() {
  18. var dialog = frameElement.dialog;
  19. parent.LoadList();
  20. dialog.close();
  21. }
  22. function SaveInfo(res) {
  23. switch (res) {
  24. case 'success':
  25. $.ligerDialog.success('保存成功', function (yes) { CloseThis(); });
  26. break;
  27. case 'warn':
  28. $.ligerDialog.error('保存失败,请确认数据正确性');
  29. break;
  30. case 'error':
  31. $.ligerDialog.error('系统错误,请联系开发商');
  32. break;
  33. default:
  34. break;
  35. }
  36. }
  37. $(function () {
  38. $("#txtCustomerName").ligerComboBox({ width: 350, selectBoxWidth: 350, autocomplete: true });
  39. var sexdata = [
  40. { id: 1, name: '男' },
  41. { id: 0, name: '女' }
  42. ];
  43. $('#txtSex').ligerRadioList({
  44. data: sexdata,
  45. textField: 'name',
  46. onSelect: function () { alert("KKK"); }
  47. });
  48. if (document.getElementById("hfSex").value != "") {
  49. liger.get("txtSex").setValue(document.getElementById("hfSex").value);
  50. } else {
  51. liger.get("txtSex").setValue("1");
  52. }
  53. });
  54. function InitList() {
  55. $("#txtCustomerName").ligerComboBox({
  56. url: 'ajax/personedit.ashx?action=getcustomerlist&key=' + $("#txtCustomerName").val(),
  57. valueField: '_f_customerid',
  58. textField: '_f_customername',
  59. //selectBoxWidth: 350,
  60. autocomplete: true,
  61. width: 350,
  62. onSelected: function (newvalue) {
  63. $("#hiddCustomerId").val(newvalue);
  64. }
  65. });
  66. }
  67. function validate() {
  68. //lblCustomerName.innerHTML = "*";
  69. lblContactName.innerHTML = "*";
  70. // if (document.getElementById("txtCustomerName").value == "") {
  71. // lblCustomerName.innerHTML = "请选择所属客户";
  72. // return false;
  73. // }
  74. // else
  75. if (document.getElementById("txtContactName").value == "") {
  76. lblContactName.innerHTML = "请填写联系人";
  77. return false;
  78. }
  79. //wbx 5-29 添加账户和密码字段
  80. lbAccount.innerHTML = "*";
  81. lbPwd.innerHTML = "*";
  82. if (document.getElementById("txtAccount").value == "") {
  83. lbAccount.innerHTML = "请填写账户";
  84. return false;
  85. }
  86. if (document.getElementById("txtPwd").value == "") {
  87. lbPwd.innerHTML = "请填写密码";
  88. return false;
  89. }
  90. return true;
  91. }
  92. </script>
  93. </head>
  94. <body class="mainbody" scroll="no" style="margin-top: 0px;">
  95. <form id="form1" runat="server">
  96. <div id="contentTab">
  97. <table class="form_table">
  98. <col width="85px" />
  99. <col />
  100. <col width="85px" />
  101. <col />
  102. <tbody>
  103. <tr>
  104. <th>
  105. 所属客户:
  106. </th>
  107. <td colspan="3">
  108. <asp:HiddenField ID="hiddCustomerId" runat="server" />
  109. <div style="float:left"><asp:TextBox ID="txtCustomerName" runat="server"></asp:TextBox></div>
  110. <input id="btnSearch" type="button" value="搜 索" class="btnSearch" onclick="InitList();" />
  111. <label id="lblCustomerName" for="txtCustomerName">*</label>
  112. </td>
  113. </tr>
  114. <tr>
  115. <th>
  116. 联系人:
  117. </th>
  118. <td>
  119. <asp:HiddenField ID="hiddPersonId" runat="server" />
  120. <asp:TextBox ID="txtContactName" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
  121. <label id="lblContactName" for="txtContactName">*</label>
  122. </td>
  123. <th>
  124. 性别:
  125. </th>
  126. <td>
  127. <div id="txtSex"></div>
  128. <asp:HiddenField ID="hfSex" runat="server" />
  129. </td>
  130. </tr>
  131. <%--wbx 5-29 添加账户和密码字段--%>
  132. <tr>
  133. <th>
  134. 账户:
  135. </th>
  136. <td>
  137. <asp:TextBox ID="txtAccount" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
  138. <label id="lbAccount" for="txtAccount">*</label>
  139. </td>
  140. <th>
  141. 密码:
  142. </th>
  143. <td>
  144. <asp:TextBox ID="txtPwd" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
  145. <label id="lbPwd" for="txtPwd">*</label>
  146. </td>
  147. </tr>
  148. <tr>
  149. <th>
  150. 职务:
  151. </th>
  152. <td>
  153. <asp:TextBox ID="txtDuty" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
  154. </td>
  155. <th>
  156. 邮箱:
  157. </th>
  158. <td>
  159. <asp:TextBox ID="txtEmail" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
  160. </td>
  161. </tr>
  162. <tr>
  163. <th>
  164. 办公电话:
  165. </th>
  166. <td>
  167. <asp:TextBox ID="txtTelePhone" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
  168. </td>
  169. <th>
  170. 手机:
  171. </th>
  172. <td>
  173. <asp:TextBox ID="txtMobile" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
  174. </td>
  175. </tr>
  176. <tr>
  177. <th>
  178. 联系QQ:
  179. </th>
  180. <td>
  181. <asp:TextBox ID="txtQQ" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
  182. </td>
  183. <th>
  184. 传真:
  185. </th>
  186. <td>
  187. <asp:TextBox ID="txtFax" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
  188. </td>
  189. </tr>
  190. <tr>
  191. <th>
  192. 备注:
  193. </th>
  194. <td colspan="3"><textarea
  195. id="txtRemark" runat="server" class="txtInput normal" style="width:330px; height:60px;" cols="20" rows="3"></textarea>
  196. </td>
  197. </tr>
  198. </tbody>
  199. </table>
  200. <div class="foot_btn_box">
  201. <asp:Button ID="btnSubmit" runat="server" Text="保&nbsp;&nbsp;存" CssClass="btnSubmit"
  202. OnClientClick="return validate();" OnClick="btnSubmit_Click" />
  203. </div>
  204. </div>
  205. </form>
  206. </body>
  207. </html>