Regist.cshtml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. @model EMIS.ViewModel.SystemView.RegistView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Regist";
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  8. @using (Html.BeginForm("Regist", "Account", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
  9. {
  10. @Html.AntiForgeryToken()
  11. @Html.Hidden("VKey", (object)ViewBag.VKey)
  12. <div class="p_title">
  13. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  14. </div>
  15. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  16. <div class="current_navbar toolbar">
  17. <div class="func_info">
  18. <a class="easyui-linkbutton" href="javascript:Save()" data-options="iconCls:'icon-ok',plain:'true'"
  19. onfocus="this.blur()">注册</a>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="search_list">
  25. <table cellpadding="0" cellspacing="0">
  26. <tr>
  27. <td>
  28. @Html.LabelFor(x => x.CertificatesType):
  29. </td>
  30. <td>
  31. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
  32. </td>
  33. <td>
  34. @Html.LabelFor(x => x.LoginID):
  35. </td>
  36. <td>
  37. @Html.TextBoxFor(x => x.LoginID)
  38. </td>
  39. </tr>
  40. <tr>
  41. <td>
  42. @Html.LabelFor(x => x.PCode):
  43. </td>
  44. <td>
  45. @Html.TextBoxFor(x => x.PCode, new TextBoxOptions { TextBoxType = TextBoxType.Password })
  46. </td>
  47. <td>
  48. @Html.LabelFor(x => x.CPCode):
  49. </td>
  50. <td>
  51. @Html.TextBoxFor(x => x.CPCode, new TextBoxOptions { TextBoxType = TextBoxType.Password })
  52. </td>
  53. </tr>
  54. <tr>
  55. <td colspan="2" style="background-color: white">
  56. <font color="red">密码必须包含英文、数字,且长度大于等于6位</font>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>
  61. @Html.LabelFor(x => x.Sex):
  62. </td>
  63. <td>
  64. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, x => x.Sex, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
  65. </td>
  66. <td>
  67. @Html.LabelFor(x => x.BirthDate):
  68. </td>
  69. <td>
  70. @Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions { TextBoxType = TextBoxType.Date })
  71. </td>
  72. </tr>
  73. <tr>
  74. <td>
  75. @Html.LabelFor(x => x.UserName):
  76. </td>
  77. <td>
  78. @Html.TextBoxFor(x => x.UserName)
  79. </td>
  80. <td>
  81. @Html.LabelFor(x => x.Mobile):
  82. </td>
  83. <td>
  84. @Html.TextBoxFor(x => x.Mobile)
  85. </td>
  86. </tr>
  87. <tr>
  88. <td>
  89. @Html.LabelFor(x => x.Email):
  90. </td>
  91. <td>
  92. @Html.TextBoxFor(x => x.Email)
  93. </td>
  94. <td colspan="2" style="background-color: white">
  95. <font color="red">邮箱地址将用于系统密码找回,请务必填写准确的邮箱地址</font>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td>
  100. @Html.LabelFor(x => x.SchoolAreaID):
  101. </td>
  102. <td>
  103. @Html.DropdownListFor((x => x.SchoolAreaID), new DropdownListOptions
  104. {
  105. BindType = DropdownListBindType.PleaseSelect,
  106. ItemSourceUrl = Url.Content("~/Account/GetSchoolAreaWithoutSocial"),
  107. TextField = "Text",
  108. ValueField = "Value"
  109. })
  110. </td>
  111. <td>
  112. @Html.LabelFor(x => x.WorkUnit):
  113. </td>
  114. <td>
  115. @Html.TextBoxFor(x => x.WorkUnit)
  116. </td>
  117. </tr>
  118. <tr>
  119. <td>
  120. @Html.LabelFor(x => x.PhotoUrl):
  121. </td>
  122. <td colspan="3">
  123. @Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary<string, object> { { "style", "width:150px;" }, { "accept", "image/png,image/jpeg,image/gif" } })
  124. </td>
  125. </tr>
  126. </table>
  127. </div>
  128. }
  129. </div>
  130. @section scripts{
  131. <script type="text/javascript" src="~/Scripts/Business/Common/Regist.js">
  132. </script>
  133. }