Detail.cshtml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @{
  2. ViewBag.Title = "区域明细";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var keyValue = request('keyValue');
  7. $(function () {
  8. initControl();
  9. })
  10. //初始化控件
  11. function initControl() {
  12. //获取表单
  13. if (!!keyValue) {
  14. $.SetForm({
  15. url: "../../SystemManage/Area/GetFormJson",
  16. param: { keyValue: keyValue },
  17. success: function (data) {
  18. $("#form1").SetWebControls(data);
  19. $("#form1").find('.form-control,.ui-select,input').attr('readonly', 'readonly');
  20. }
  21. });
  22. }
  23. }
  24. </script>
  25. <div style="margin-top: 20px; margin-right: 30px;">
  26. <table class="form">
  27. <tr>
  28. <td class="formTitle">编号</td>
  29. <td class="formValue">
  30. <input id="AreaCode" type="text" class="form-control" />
  31. </td>
  32. </tr>
  33. <tr>
  34. <td class="formTitle">名称</td>
  35. <td class="formValue">
  36. <input id="AreaName" type="text" class="form-control" />
  37. </td>
  38. </tr>
  39. <tr>
  40. <td class="formTitle">简拼</td>
  41. <td class="formValue">
  42. <input id="SimpleSpelling" type="text" class="form-control" />
  43. </td>
  44. </tr>
  45. <tr>
  46. <th class="formTitle" valign="top" style="padding-top: 4px;">备注
  47. </th>
  48. <td class="formValue">
  49. <textarea id="Description" class="form-control" style="height: 70px;"></textarea>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="formTitle">创建用户</td>
  54. <td class="formValue">
  55. <input id="CreateUserName" type="text" class="form-control" />
  56. </td>
  57. </tr>
  58. <tr>
  59. <td class="formTitle">创建时间</td>
  60. <td class="formValue">
  61. <input id="CreateDate" type="text" class="form-control" />
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="formTitle">修改用户</td>
  66. <td class="formValue">
  67. <input id="ModifyUserName" type="text" class="form-control" />
  68. </td>
  69. </tr>
  70. <tr>
  71. <td class="formTitle">修改时间</td>
  72. <td class="formValue">
  73. <input id="ModifyDate" type="text" class="form-control" />
  74. </td>
  75. </tr>
  76. </table>
  77. </div>