纽威
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.

64 lines
2.3 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. if (!!keyValue) {
  10. $.ajax({
  11. url: "/SystemManage/Customer/GetFormJson",
  12. data: { keyValue: keyValue },
  13. dataType: "json",
  14. async: false,
  15. success: function (data) {
  16. $("#form1").formSerialize(data);
  17. }
  18. });
  19. }
  20. });
  21. function initControl() {
  22. $("#F_EnabledMark").bindSelect()
  23. }
  24. function submitForm() {
  25. if (!$('#form1').formValid()) {
  26. return false;
  27. }
  28. $.submitForm({
  29. url: "/SystemManage/Customer/SubmitForm?keyValue=" + keyValue,
  30. param: $("#form1").formSerialize(),
  31. success: function () {
  32. $.currentWindow().$("#gridList").trigger("reloadGrid");
  33. }
  34. })
  35. }
  36. </script>
  37. <form id="form1">
  38. <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
  39. <ul class="nav nav-tabs">
  40. <li class="active"><a href="#">客户信息</a></li>
  41. </ul>
  42. <div style="padding-top: 20px; margin-right: 30px;">
  43. <table class="form">
  44. <tr>
  45. <th class="formTitle">客户编码</th>
  46. <td class="formValue">
  47. <input id="F_CusCode" name="F_CusCode" type="text" class="form-control required" placeholder="请输入编码" />
  48. </td>
  49. <th class="formTitle">客户名称</th>
  50. <td class="formValue">
  51. <input id="F_CusName" name="F_CusName" type="text" class="form-control required" placeholder="请输入名称" />
  52. </td>
  53. </tr>
  54. <tr>
  55. <th class="formTitle" valign="top" style="padding-top: 5px;">备注
  56. </th>
  57. <td class="formValue" colspan="3">
  58. <textarea id="F_Description" name="F_Description" class="form-control" style="height: 60px;"></textarea>
  59. </td>
  60. </tr>
  61. </table>
  62. </div>
  63. </div>
  64. </form>