UserInfoChange.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. @model EMIS.ViewModel.TeacherManagement.StaffView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. OnSelect = "QueryCollegeComboGridList",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/College/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. ComboGridOptions cgopdepart = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "DepartmentID",
  29. GridOptions = new DataGridOptions
  30. {
  31. Columns = new List<DataGridColumn>()
  32. {
  33. new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Width=0.1, Align=AlignStyle.Center },
  34. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Width=0.3, Align=AlignStyle.Center }
  35. },
  36. IsCheckOnSelect = true,
  37. DataSourceUrl = Url.Content("~/Department/List"),
  38. IsPagination = true,
  39. IsShowRowNumbers = true,
  40. IsSingleSelect = false
  41. }
  42. };
  43. }
  44. @section scripts{
  45. <script src="~/Scripts/Business/System/UserInfoChange.js" type="text/javascript"></script>
  46. <script type="text/javascript">
  47. var nonSelect = "@DropdownList.SELECT_ALL";
  48. </script>
  49. }
  50. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  51. @using (Html.BeginForm("UserInfoChange", "User", new { Userid = Request["userID"], MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data", @class = "UserInfoChangeSaveList" }))
  52. {
  53. <div class="p_title">
  54. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  55. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  56. @if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限
  57. {
  58. @Html.ContextMenuBar("UserInfoChangeSaveList")
  59. }
  60. </div>
  61. </div>
  62. <div class="search_list">
  63. @Html.HiddenFor(x => x.UserID)
  64. @Html.HiddenFor(x => x.StaffCode)
  65. @*@Html.Hidden("CollegeDropdown", Model.CollegeID, new Dictionary<string, object> { { "data-condition", "DepartmentID_gridX" } })*@
  66. <table cellpadding="0" cellspacing="0" id="stafftable">
  67. <tr>
  68. <td>@Html.LabelFor(x => x.StaffCode):</td>
  69. <td>@Html.DisplayFor(x => x.StaffCode, new Dictionary<string, object>() { { "disabled", "true" } })</td>
  70. @*@if(Model!=null){
  71. if (Model.PhotoUrl != null)
  72. {
  73. <td rowspan="4">@Html.LabelFor(x => x.PhotoUrl):</td>
  74. <td rowspan="4">
  75. <div>
  76. <img src="@Model.PhotoUrl" id="imgPhoto" width="80" height="100" /></div>
  77. <div>
  78. <span>@Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary<string, object> { { "style", "width:100px;" } })
  79. <input type="button" value="删除" onclick="javascript: delPhoto();" />
  80. </span>
  81. </div>
  82. </td>
  83. }
  84. }
  85. else {
  86. <td rowspan="4">
  87. </td>
  88. <td rowspan="4">
  89. </td>
  90. }*@
  91. </tr>
  92. <tr>
  93. <td>@Html.LabelFor(x => x.Name):</td>
  94. <td>@Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = false })</td>
  95. </tr>
  96. <tr>
  97. <td>@Html.LabelFor(x => x.CollegeID):</td>
  98. <td>@Html.TextBoxFor(x => x.CollegeName, new { @readonly = "readonly" })</td>
  99. <td></td>
  100. <td></td>
  101. </tr>
  102. <tr>
  103. <td>@Html.LabelFor(x => x.DepartmentID):</td>
  104. <td>@Html.ComboGridFor(x => x.DepartmentID, cgopdepart)</td>
  105. <td>@Html.LabelFor(x => x.BirthDate):</td>
  106. <td>
  107. @Html.DisplayFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>@Html.LabelFor(x => x.IncumbencyState):</td>
  112. <td>@Html.DisplayFor(x => x.IncumbencyStateName, new Dictionary<string, object>() { { "disabled", "true" } })</td>
  113. <td>@Html.LabelFor(x => x.TeacherTypeID):</td>
  114. <td>@Html.DisplayFor(x => x.TeacherTypeName, new Dictionary<string, object>() { { "disabled", "true" } })</td>
  115. </tr>
  116. <tr>
  117. <td>@Html.LabelFor(x => x.SexID):</td>
  118. <td>@Html.DisplayFor(x => x.SexName, new Dictionary<string, object>() { { "disabled", "true" } })</td>
  119. <td>@Html.LabelFor(x => x.UsedName):</td>
  120. <td>@Html.TextBoxFor(x => x.UsedName)</td>
  121. </tr>
  122. <tr>
  123. <td>@Html.LabelFor(x => x.NationID):</td>
  124. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID))</td>
  125. <td>@Html.LabelFor(x => x.Place):</td>
  126. <td>@Html.TextBoxFor(x => x.Place)</td>
  127. </tr>
  128. <tr>
  129. <td></td>
  130. <td></td>
  131. <td>@Html.LabelFor(x => x.Telephone):</td>
  132. <td>@Html.TextBoxFor(x => x.Telephone)</td>
  133. </tr>
  134. <tr>
  135. <td>@Html.LabelFor(x => x.OfficeTelephone):</td>
  136. <td>@Html.TextBoxFor(x => x.OfficeTelephone)</td>
  137. <td>@Html.LabelFor(x => x.Mobile):</td>
  138. <td>@Html.TextBoxFor(x => x.Mobile)</td>
  139. </tr>
  140. <tr>
  141. <td>@Html.LabelFor(x => x.Email):</td>
  142. <td>@Html.TextBoxFor(x => x.Email)</td>
  143. <td>@Html.LabelFor(x => x.QQ):</td>
  144. <td>@Html.TextBoxFor(x => x.QQ)</td>
  145. </tr>
  146. <tr>
  147. <td>@Html.LabelFor(x => x.Nationality):</td>
  148. <td>@Html.TextBoxFor(x => x.Nationality)</td>
  149. <td>@Html.LabelFor(x => x.HealthStateID):</td>
  150. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.HealthStateID))</td>
  151. </tr>
  152. <tr>
  153. <td>@Html.LabelFor(x => x.HousePhone):</td>
  154. <td>@Html.TextBoxFor(x => x.HousePhone)</td>
  155. <td>@Html.LabelFor(x => x.Address):</td>
  156. <td>@Html.TextBoxFor(x => x.Address)</td>
  157. </tr>
  158. <tr>
  159. <td>@Html.LabelFor(x => x.ZIPCode):</td>
  160. <td>@Html.TextBoxFor(x => x.ZIPCode)</td>
  161. <td>@Html.LabelFor(x => x.HomeAddress):</td>
  162. <td>@Html.TextBoxFor(x => x.HomeAddress)</td>
  163. </tr>
  164. <tr>
  165. <td>@Html.LabelFor(x => x.NowAddress):</td>
  166. <td>@Html.TextBoxFor(x => x.NowAddress)</td>
  167. <td>@Html.LabelFor(x => x.Residence):</td>
  168. <td>@Html.TextBoxFor(x => x.Residence)</td>
  169. </tr>
  170. <tr>
  171. <td>@Html.LabelFor(x => x.ReligionID):</td>
  172. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Religion, (x => x.ReligionID))</td>
  173. <td>@Html.LabelFor(x => x.CertificatesType):</td>
  174. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType))</td>
  175. </tr>
  176. <tr>
  177. <td>@Html.LabelFor(x => x.CertificatesNum):</td>
  178. <td>@Html.TextBoxFor(x => x.CertificatesNum)</td>
  179. <td>@Html.LabelFor(x => x.SituationID):</td>
  180. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Situation, (x => x.SituationID))</td>
  181. </tr>
  182. <tr>
  183. <td>@Html.LabelFor(x => x.LiteracyLevelID):</td>
  184. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LiteracyLevel, (x => x.LiteracyLevelID))</td>
  185. <td></td>
  186. <td></td>
  187. </tr>
  188. <tr>
  189. <td>@Html.LabelFor(x => x.LearnPositionID):</td>
  190. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LearnPosition, (x => x.LearnPositionID))</td>
  191. <td>@Html.LabelFor(x => x.TitleID):</td>
  192. <td>@Html.DisplayFor(x => x.TitleName)</td>
  193. </tr>
  194. <tr>
  195. <td>@Html.LabelFor(x => x.PaymentLevelID):</td>
  196. <td>@Html.DisplayFor(x => x.PaymentLevelName)</td>
  197. <td>@Html.LabelFor(x => x.IsDualTeacher):</td>
  198. <td>@Html.DisplayFor(x => x.IsDualTeacherName)</td>
  199. </tr>
  200. <tr>
  201. <td>@Html.LabelFor(x => x.WorkDate):</td>
  202. <td>@Html.TextBoxFor(x => x.WorkDate, new TextBoxOptions() { TextBoxType = TextBoxType.Month })</td>
  203. <td>@Html.LabelFor(x => x.ComeSchoolDate):</td>
  204. <td>@Html.TextBoxFor(x => x.ComeSchoolDate, new TextBoxOptions() { TextBoxType = TextBoxType.Month })</td>
  205. </tr>
  206. <tr>
  207. <td>@Html.LabelFor(x => x.Speciality):</td>
  208. <td>@Html.TextBoxFor(x => x.Speciality)</td>
  209. <td>@Html.LabelFor(x => x.WeChatNum):</td>
  210. <td>@Html.TextBoxFor(x => x.WeChatNum)</td>
  211. </tr>
  212. <tr>
  213. <td>@Html.LabelFor(x => x.Profile):</td>
  214. <td>@Html.TextAreaFor(x => x.Profile, new Dictionary<string, string> { { "style", "width:500px;" } })</td>
  215. <td>@Html.LabelFor(x => x.Remark):</td>
  216. <td>@Html.TextAreaFor(x => x.Remark, new Dictionary<string, string> { { "style", "width:500px;" } })</td>
  217. </tr>
  218. </table>
  219. </div>
  220. }
  221. </div>