CheckEdit.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. @model EMIS.ViewModel.StudentManage.StudentProfile.StudentView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "CheckEdit";
  6. List<EMIS.ViewModel.StudentManage.InfoCenter.EditFeildView> editFeildViewList = ViewBag.EditFeildViews;
  7. List<string> typeNameList = ViewBag.TypeNames;
  8. //班级信息
  9. ComboGridOptions cgopClassmajor = new ComboGridOptions
  10. {
  11. TextField = "Name",
  12. ValueField = "ClassmajorID",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.35, Align=AlignStyle.Center }
  19. },
  20. PageSize = 5,
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Classmajor/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false
  26. }
  27. };
  28. var controls = new Dictionary<string, KeyValuePair<MvcHtmlString, MvcHtmlString>>();
  29. controls.Add("PhotoUrl", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.PhotoUrl), MvcHtmlString.Create("<div id=\"prvid\"><img src=" + Model.PhotoUrlStr
  30. + " width=150 height=154 /></div><div><input id=\"files\" name=\"PhotoUrl\" type=\"file\" onchange=\"previewImage(this, 'prvid')\" multiple=\"multiple\"/>")));
  31. controls.Add("LoginID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.LoginID), Html.TextBoxFor(x => x.LoginID)));
  32. controls.Add("Name", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Name), Html.TextBoxFor(x => x.Name)));
  33. controls.Add("SexID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.SexID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID))));
  34. controls.Add("BirthDate", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.BirthDate), Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })));
  35. controls.Add("NationID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.NationID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID))));
  36. controls.Add("PoliticsID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.PoliticsID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.PoliticsID))));
  37. controls.Add("StudentType", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.StudentType), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, (x => x.StudentType))));
  38. controls.Add("CertificatesType", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.CertificatesType), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType))));
  39. controls.Add("IDNumber", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.IDNumber), @Html.TextBoxFor(x => x.IDNumber)));
  40. controls.Add("InSchoolStatusID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.InSchoolStatusID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID))));
  41. controls.Add("StudentStatus", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.StudentStatus), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus))));
  42. controls.Add("ClassmajorID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.ClassmajorID), Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor)));
  43. controls.Add("UsedName", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.UsedName), Html.TextBoxFor(x => x.UsedName)));
  44. controls.Add("DirectorName", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.DirectorName), Html.TextBoxFor(x => x.DirectorName)));
  45. controls.Add("LiteracyLevelID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.LiteracyLevelID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LiteracyLevel, (x => x.LiteracyLevelID))));
  46. controls.Add("CultureModelID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.CultureModelID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CULTUREMODEL, (x => x.CultureModelID))));
  47. controls.Add("Country", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Country), Html.TextBoxFor(x => x.Country)));
  48. controls.Add("Place", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Place), Html.TextBoxFor(x => x.Place)));
  49. controls.Add("BornPlace", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.BornPlace), Html.TextBoxFor(x => x.BornPlace)));
  50. controls.Add("HealthStateID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.HealthStateID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.HealthStateID))));
  51. controls.Add("BloodGroup", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.BloodGroup), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_BLOODGROUP, (x => x.BloodGroup))));
  52. controls.Add("Specialty", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Specialty), Html.TextBoxFor(x => x.Specialty)));
  53. controls.Add("Height", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Height), Html.TextBoxFor(x => x.Height)));
  54. controls.Add("Weight", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Weight), Html.TextBoxFor(x => x.Weight)));
  55. controls.Add("IsDreamProject", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.IsDreamProject), Html.CheckBoxFor(x => x.IsDreamProject)));
  56. controls.Add("Email", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Email), Html.TextBoxFor(x => x.Email)));
  57. controls.Add("Mobile", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Mobile), Html.TextBoxFor(x => x.Mobile)));
  58. controls.Add("Telephone", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Telephone), Html.TextBoxFor(x => x.Telephone)));
  59. controls.Add("ZIPCode", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.ZIPCode), Html.TextBoxFor(x => x.ZIPCode)));
  60. controls.Add("WeChatNum", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.WeChatNum), Html.TextBoxFor(x => x.WeChatNum)));
  61. controls.Add("QQ", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.QQ), Html.TextBoxFor(x => x.QQ)));
  62. controls.Add("HomeAddress", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.HomeAddress), Html.TextBoxFor(x => x.HomeAddress)));
  63. controls.Add("WorkUnit", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.WorkUnit), Html.TextBoxFor(x => x.WorkUnit)));
  64. controls.Add("Address", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Address), Html.TextBoxFor(x => x.Address)));
  65. controls.Add("Dormitory", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Dormitory), Html.TextBoxFor(x => x.Dormitory)));
  66. controls.Add("Recipient", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Recipient), Html.TextBoxFor(x => x.Recipient)));
  67. controls.Add("BankName", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.BankName), Html.TextBoxFor(x => x.BankName)));
  68. controls.Add("CardNo", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.CardNo), Html.TextBoxFor(x => x.CardNo)));
  69. controls.Add("ExamineeNum", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.ExamineeNum), Html.TextBoxFor(x => x.ExamineeNum)));
  70. controls.Add("AdmissionTicketNo", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.AdmissionTicketNo), Html.TextBoxFor(x => x.AdmissionTicketNo)));
  71. controls.Add("ExamineeType", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.ExamineeType), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EXAMINEETYPE, (x => x.ExamineeType))));
  72. controls.Add("EntranceDate", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.EntranceDate), Html.TextBoxFor(x => x.EntranceDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })));
  73. controls.Add("Score", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Score), Html.TextBoxFor(x => x.Score)));
  74. controls.Add("EntranceWayID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.EntranceWayID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EntranceWay, (x => x.EntranceWayID))));
  75. controls.Add("FeaturesID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.FeaturesID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Features, (x => x.FeaturesID))));
  76. controls.Add("TerritorialID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.TerritorialID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.TerritorialID))));
  77. controls.Add("Area", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Area), Html.TextBoxFor(x => x.Area)));
  78. controls.Add("Career", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Career), Html.TextBoxFor(x => x.Career)));
  79. controls.Add("Remark", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Remark), Html.TextBoxFor(x => x.Remark)));
  80. }
  81. @section scripts{
  82. <script src="~/Scripts/Business/StudentWeb/InfoCenter/PersonalInfoCheckEdit.js" type="text/javascript"></script>
  83. <script type="text/javascript">
  84. </script>
  85. }
  86. <style type="text/css">
  87. /*.table{
  88. width: 100%;
  89. border-collapse:collapse;
  90. border-spacing:0;
  91. }
  92. .fixedThead{
  93. display: block;
  94. width: 100%;
  95. text-align: center;
  96. }
  97. .scrollTbody{
  98. display: block;
  99. height: 450px;
  100. overflow: auto;
  101. width: 100%;
  102. }
  103. .table td,.table th {
  104. width: 200px;
  105. border-bottom: none;
  106. border-left: none;
  107. border-right: 1px solid #CCC;
  108. border-top: 1px solid #DDD;
  109. padding: 2px 3px 3px 4px
  110. }
  111. .table tr{
  112. border-left: 1px solid #EB8;
  113. border-bottom: 1px solid #B74;
  114. }
  115. thead.fixedThead tr th:last-child {
  116. color:#FF0000;
  117. width: 200px;
  118. }
  119. td{
  120. word-wrap:break-word;
  121. word-break:break-all;
  122. }*/
  123. .popupWindowContent {
  124. top: 30px;
  125. }
  126. </style>
  127. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  128. @using (Ajax.BeginForm(new AjaxOptions
  129. {
  130. OnSuccess = "EMISFunction.FormSuccess",
  131. OnBegin = "EMISFunction.FormSubmit",
  132. OnComplete = "EMISFunction.FormComplete" }))
  133. {
  134. <div class="p_title">
  135. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  136. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Confirm")</div>
  137. </div>
  138. <div class="search_list">
  139. @Html.HiddenFor(x => x.UserID)
  140. <table class ="table" id="checkEdit">
  141. @*<thead class="fixedThead">
  142. <tr>
  143. <th>
  144. 列名
  145. </th>
  146. <th>
  147. 修改前
  148. </th>
  149. <th>
  150. 修改后
  151. </th>
  152. <th>
  153. 校对状态
  154. </th>
  155. </tr>
  156. </thead>*@
  157. <tbody class="scrollTbody">
  158. <tr>
  159. <td style="color: red;">
  160. @Html.LabelFor(x => x.PhotoUrl):
  161. </td>
  162. <td>
  163. <img src="@Model.PhotoUrlStr" id="imgPhotoSource" width="80" height="100" />
  164. </td>
  165. <td>
  166. <img src="@Model.PhotoUrlStr" id="imgPhotoContrast" width="80" height="100" />
  167. </td>
  168. <td style="color: red;width: 100px;">
  169. @Html.DisplayName(EMIS.ViewModel.CacheManage.IdNameExt.GetName(EMIS.ViewModel.DictionaryItem.CF_CheckingType, (int)EMIS.ViewModel.CF_CheckingType.Close))
  170. </td>
  171. </tr>
  172. @foreach (var typeName in typeNameList)
  173. {
  174. foreach (var editFeildView in editFeildViewList.Where(q => q.TypeName == typeName).OrderBy(q => q.OrderNo))
  175. {
  176. <tr>
  177. <td style="color: red;">
  178. @if (controls.Keys.Contains(editFeildView.ColumnFeild))
  179. {
  180. @controls[editFeildView.ColumnFeild].Key
  181. }
  182. <span style="float: right;">:</span>
  183. </td>
  184. <td>
  185. @if (!editFeildView.ColumnName.Contains("PhotoUrl"))
  186. {
  187. @Html.Display(editFeildView.ColumnName)
  188. }
  189. else
  190. {
  191. @MvcHtmlString.Create("<div><img src=\"" + Model.PhotoUrlStr + "\" width=150 height=154 /></div>")
  192. }
  193. </td>
  194. <td>
  195. @if (editFeildView.IsEdit && controls.Keys.Contains(editFeildView.ColumnFeild))
  196. {
  197. @controls[editFeildView.ColumnFeild].Value
  198. }
  199. else if (editFeildView.ColumnName == "PhotoUrl")
  200. {
  201. @MvcHtmlString.Create("<div><img src=\"" + Model.PhotoUrlStr + "\" width=150 height=154 /></div>")
  202. }
  203. else
  204. {
  205. @Html.Display(editFeildView.ColumnName)
  206. }
  207. </td>
  208. <td style="color: red;width: 100px;">
  209. @Html.DisplayName(editFeildView.CheckingTypeName)
  210. </td>
  211. </tr>
  212. }
  213. }
  214. </tbody>
  215. </table>
  216. </div>
  217. }
  218. </div>