纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.9 KiB

3 years ago
  1. @{
  2. ViewBag.Title = "Form";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var keyValue = $.request("keyValue");
  7. $(function () {
  8. initControl();
  9. $.ajax({
  10. url: "/SystemManage/Customer/GetFormJson",
  11. data: { keyValue: keyValue },
  12. dataType: "json",
  13. async: false,
  14. success: function (data) {
  15. $("#form1").formSerialize(data);
  16. $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
  17. $("#form1").find('div.ckbox label').attr('for', '');
  18. $("#F_UserPassword").val("******");
  19. }
  20. });
  21. });
  22. function initControl() {
  23. $("#F_EnabledMark").bindSelect()
  24. }
  25. </script>
  26. <form id="form1">
  27. <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
  28. <div style="padding-top: 20px; margin-right: 30px;">
  29. <table class="form">
  30. <tr>
  31. <th class="formTitle">客户编码</th>
  32. <td class="formValue">
  33. <input id="F_CusCode" name="F_CusCode" type="text" class="form-control" />
  34. </td>
  35. <th class="formTitle">客户名称</th>
  36. <td class="formValue">
  37. <input id="F_CusName" name="F_CusName" type="text" class="form-control" />
  38. </td>
  39. </tr>
  40. <tr>
  41. <th class="formTitle" valign="top" style="padding-top: 5px;">备注
  42. </th>
  43. <td class="formValue" colspan="3">
  44. <textarea id="F_Description" name="F_Description" class="form-control" style="height: 60px;"></textarea>
  45. </td>
  46. </tr>
  47. <tr>
  48. <th class="formTitle">创建人员</th>
  49. <td class="formValue">
  50. <input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control" />
  51. </td>
  52. <th class="formTitle">创建时间</th>
  53. <td class="formValue">
  54. <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control" />
  55. </td>
  56. </tr>
  57. <tr>
  58. <th class="formTitle">修改人员</th>
  59. <td class="formValue">
  60. <input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control" />
  61. </td>
  62. <th class="formTitle">修改时间</th>
  63. <td class="formValue">
  64. <input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control" />
  65. </td>
  66. </tr>
  67. </table>
  68. </div>
  69. </div>
  70. </form>