Edit.cshtml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. @model EMIS.ViewModel.DifferentDynamic.DifferentDynamicView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ViewBag.Title = "异动申请编辑";
  7. var isView = true;
  8. var textAreaHtmlAttributes = new Dictionary<string, object> { { "style", "width:500px;" } };
  9. if (isView)
  10. {
  11. textAreaHtmlAttributes.Add("disabled", "disabled");
  12. }
  13. var cgopLoginIDcharge = new ComboGridOptions
  14. {
  15. TextField = "LoginID",
  16. ValueField = "UserID",
  17. IsEnabled = !isView,
  18. //OnSelect = "SelectCallback",
  19. GridOptions = new DataGridOptions
  20. {
  21. Columns = new List<DataGridColumn>()
  22. {
  23. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
  24. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  25. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center },
  26. new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center },
  27. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center },
  28. },
  29. IsCheckOnSelect = true,
  30. DataSourceUrl = Url.Content("~/Students/List") + "?inSchoolStatusIDs=1&inSchoolStatusIDs=3&inSchoolStatusIDs=4&inSchoolStatusIDs=5",
  31. IsPagination = true,
  32. IsShowRowNumbers = true,
  33. IsSingleSelect = false
  34. }
  35. };
  36. }
  37. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  38. @using (Html.BeginForm())
  39. {
  40. <div class="p_title">
  41. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  42. 异动申请信息</div>
  43. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  44. </div>
  45. <div class="search_list">
  46. @Html.HiddenFor(m => m.EntityID)
  47. <table cellpadding="0" cellspacing="1">
  48. <tr>
  49. <th>@Html.LabelFor(m => m.SchoolyearID):
  50. </th>
  51. <td>
  52. @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", IsEnabled = !isView })
  53. </td>
  54. <th>@Html.LabelFor(m => m.DifferentDynamicType):
  55. </th>
  56. <td>
  57. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_DifferentDynamicType, m => m.DifferentDynamicType, new DropdownListOptions { IsEnabled = !isView })
  58. </td>
  59. </tr>
  60. <tr>
  61. <th>@Html.LabelFor(m => m.UserID):
  62. </th>
  63. <td>
  64. @Html.ComboGridFor(x => x.UserID, cgopLoginIDcharge)
  65. </td>
  66. <th>@Html.LabelFor(m => m.ReturnSchoolyearID):
  67. </th>
  68. <td>
  69. @Html.DropdownListFor(x => x.ReturnSchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", IsEnabled = !isView })
  70. </td>
  71. </tr>
  72. <tr>
  73. <th>@Html.LabelFor(m => m.InSchoolStatusID):
  74. </th>
  75. <td>
  76. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), new DropdownListOptions { IsEnabled = false })
  77. </td>
  78. <th>@Html.LabelFor(m => m.AfterInSchoolStatusID):
  79. </th>
  80. <td>
  81. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.AfterInSchoolStatusID), new DropdownListOptions { IsEnabled = !isView })
  82. </td>
  83. </tr>
  84. <tr>
  85. <th>@Html.LabelFor(m => m.StudentStatus):
  86. </th>
  87. <td>
  88. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus), new DropdownListOptions { IsEnabled = false })
  89. </td>
  90. <th>@Html.LabelFor(m => m.AfterStudentStatus):
  91. </th>
  92. <td>
  93. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.AfterStudentStatus), new DropdownListOptions { IsEnabled = !isView })
  94. </td>
  95. </tr>
  96. <tr>
  97. <th>@Html.LabelFor(m => m.StandardID):
  98. </th>
  99. <td>
  100. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.StandardID, new DropdownListOptions { IsEnabled = false })
  101. </td>
  102. <th>@Html.LabelFor(m => m.AfterStandardID):
  103. </th>
  104. <td>
  105. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.AfterStandardID, new DropdownListOptions { IsEnabled = !isView })
  106. </td>
  107. </tr>
  108. <tr>
  109. <th>@Html.LabelFor(m => m.ClassmajorID):
  110. </th>
  111. <td>
  112. @Html.DropdownListFor(x => x.ClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value", IsEnabled = false })
  113. </td>
  114. <th>@Html.LabelFor(m => m.AfterClassmajorID):
  115. </th>
  116. <td>
  117. @Html.DropdownListFor(x => x.AfterClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value", IsEnabled = !isView })
  118. </td>
  119. </tr>
  120. <tr>
  121. <th>@Html.LabelFor(m => m.BeginTime):
  122. </th>
  123. <td>
  124. @Html.TextBoxFor(x => x.BeginTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = !isView })
  125. </td>
  126. <th>@Html.LabelFor(m => m.EndTime):
  127. </th>
  128. <td>
  129. @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = !isView })
  130. </td>
  131. </tr>
  132. <tr>
  133. <th>@Html.LabelFor(m => m.ReasonName):
  134. </th>
  135. <td colspan="3">
  136. @Html.TextAreaFor(m => m.ReasonName, textAreaHtmlAttributes)
  137. </td>
  138. </tr>
  139. <tr>
  140. <th>@Html.LabelFor(m => m.ApplyRemark):
  141. </th>
  142. <td colspan="3">
  143. @Html.TextAreaFor(m => m.ApplyRemark, textAreaHtmlAttributes)
  144. </td>
  145. </tr>
  146. @*<tr>
  147. <th>@Html.LabelFor(m => m.Source):
  148. </th>
  149. <td colspan="3">
  150. @Html.TextAreaFor(m => m.Source, textAreaHtmlAttributes)
  151. </td>
  152. </tr>
  153. <tr>
  154. <th>@Html.LabelFor(m => m.Direction):
  155. </th>
  156. <td colspan="3">
  157. @Html.TextAreaFor(m => m.Direction, textAreaHtmlAttributes)
  158. </td>
  159. </tr>*@
  160. <tr>
  161. <th>@Html.LabelFor(m => m.Remark):
  162. </th>
  163. <td colspan="3">
  164. @Html.TextAreaFor(m => m.Remark, textAreaHtmlAttributes)
  165. </td>
  166. </tr>
  167. </table>
  168. </div>
  169. }
  170. <div class="search_list">
  171. <table cellpadding="0" cellspacing="0" id="specialtytable">
  172. </table>
  173. </div>
  174. </div>