FinishInfomation.cshtml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. @model EMIS.ViewModel.SystemView.RegistView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using Bowin.Common;
  5. @{
  6. ViewBag.Title = "Regist";
  7. //Layout = "~/Views/Shared/_FrameLayout.cshtml";
  8. List<string> lurl = new List<string>();
  9. lurl.Add("Content/");
  10. lurl.Add("Doc/");
  11. lurl.Add("Scripts/");
  12. lurl.Add("Login/");
  13. lurl.Add("UploadFile/");
  14. lurl.Add("Account/ChangePassword");
  15. FormsAuthenticationHelper fahelper = new FormsAuthenticationHelper();
  16. var cookieName = EMIS.Utility.Const.LOCAL_SETTING_LOGIN_COOKIENAME;
  17. fahelper.AuthenticateRequest(HttpContext.Current, cookieName, lurl);
  18. }
  19. @section scripts{
  20. <script type="text/javascript" src="~/Scripts/Business/Common/FinishInfomation.js">
  21. </script>
  22. <script type="text/javascript">
  23. $(document).ready(function () {
  24. history.pushState(null, null, document.URL);
  25. window.addEventListener('popstate', function () {
  26. history.pushState(null, null, document.URL);
  27. });
  28. var IsStudent = "@ViewBag.IsStudent";
  29. if (IsStudent == "True") {
  30. $("a#UserInfo").hide();
  31. }
  32. else if (IsStudent == "False") {
  33. $("a#UserInfo").show();
  34. }
  35. });
  36. $(function () {
  37. $.parser.onComplete = function () {
  38. $("#ddlIndexRoleSelector").combobox({
  39. onShowPanel: resizePanel
  40. });
  41. };
  42. $(".easyui-tree").tree('collapseAll');
  43. $.System.addTab('首页', '@Url.Content("~/Home/Main")', 'Main', false);
  44. });
  45. function switchRole() {
  46. $("[name='hdnSelectedRole']").val($("#ddlIndexRoleSelector").combobox('getValue'));
  47. $("#frmRole").submit();
  48. }
  49. function resizePanel() {
  50. $($(".combo-p")[0]).css("width", "147px");
  51. $($(".combo-p")[0]).find(".combo-panel").css("width", "145px");
  52. }
  53. function changePassword() {
  54. $.System.addTab('修改密码', '@Url.Content("~/Account/ChangePassword")', 'ChangePassword', false);
  55. }
  56. function changeInfo() {
  57. $.System.addTab('用户信息', '@Url.Content("~/User/UserInfoChange")', 'ChangeInfo', false);
  58. }
  59. </script>
  60. }
  61. <div data-options="region:'north',title:'',split:false, border:false" class="index_top_banner" style="background-color:#178acb;width: auto;height: 80px;">
  62. <div class="index_top_bg" style="color: White;font-weight: bold;margin-left: 40px;vertical-align: middle;">
  63. <div id="index_top" class="index_top_left" style="line-height:0px;padding-top: 0px;font-size: 30px;font-style: italic;float: left;">
  64. <img src="@Url.Content("~/common/ResImage?key=HomeLogo")" />
  65. </div>
  66. <div id="divCurrentInformation" style="line-height: 0px;position:absolute;float: right;right:30px;top:20px;">
  67. <form id="frmRole" action="@Url.Content("~/Home/SwitchRole")" method="post">
  68. @Html.Hidden("hdnSelectedRole")
  69. </form>
  70. 当前用户:@(((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).LoginID + "-" + ((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).Name + (((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).IsStudent ? "同学" : "老师"))&nbsp;&nbsp;@Html.SystemClock(new SystemClockOptions { IsJump = true })
  71. </div>
  72. <div style="float: right; padding-right: 30px; padding-top: 40px;">
  73. &nbsp;&nbsp; <a href="@Url.Content("~/Account/LogOff")" style="z-index: 99999;">
  74. <img border="0" title="退出" src="@Url.Content("~/Content/Bowin.Control.Core/images/h_logout.jpg")" />
  75. </a>
  76. </div>
  77. </div>
  78. </div>
  79. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  80. @using (Html.BeginForm("FinishInfomation", "Account", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
  81. {
  82. @Html.HiddenFor(x => x.UserID)
  83. <div class="p_title">
  84. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  85. </div>
  86. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  87. <div class="current_navbar toolbar">
  88. <div class="func_info">
  89. <a class="easyui-linkbutton" href="javascript:Save()" data-options="iconCls:'icon-ok',plain:'true'"
  90. onfocus="this.blur()">保存</a>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <div style="color:red;margin:0 auto;text-align:center">为保证您的报名信息准确有效,进入系统前请先补全关键信息,谢谢合作!</div>
  96. <div class="search_list">
  97. <table cellpadding="0" cellspacing="0">
  98. <tr>
  99. <td>
  100. @Html.LabelFor(x => x.CertificatesType):
  101. </td>
  102. <td>
  103. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, IsEnabled = false })
  104. </td>
  105. <td>
  106. @Html.LabelFor(x => x.LoginID):
  107. </td>
  108. <td>
  109. @Model.LoginID
  110. @Html.HiddenFor(x => x.LoginID)
  111. </td>
  112. </tr>
  113. <tr>
  114. <td>
  115. @Html.LabelFor(x => x.UserName):
  116. </td>
  117. <td>
  118. @Model.UserName
  119. @Html.HiddenFor(x => x.UserName)
  120. @*@Html.TextBoxFor(x => x.UserName)*@
  121. </td>
  122. <td>
  123. @Html.LabelFor(x => x.Mobile):
  124. </td>
  125. <td>
  126. @Html.TextBoxFor(x => x.Mobile)
  127. </td>
  128. </tr>
  129. <tr>
  130. <td>@Html.LabelFor(x => x.SexName):</td>
  131. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.Sex), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })</td>
  132. <td>@Html.LabelFor(x => x.BirthDate):</td>
  133. <td>@Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions { TextBoxType = TextBoxType.Date })</td>
  134. </tr>
  135. <tr>
  136. <td>
  137. @Html.LabelFor(x => x.Email):
  138. </td>
  139. <td>
  140. @Html.TextBoxFor(x => x.Email)
  141. </td>
  142. <td colspan="2" style="background-color: white">
  143. <font color="red">邮箱地址将用于系统密码找回,请务必填写准确的邮箱地址</font>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td>
  148. @Html.LabelFor(x => x.PhotoUrl):
  149. </td>
  150. <td colspan="3">
  151. <div>
  152. <img id="imgPhoto" src="@Model.PhotoUrl" width="100" height="150" />
  153. </div>
  154. <div>
  155. @Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary<string, object> { { "style", "width:150px;" }, { "accept", "image/png,image/jpeg,image/gif" } })
  156. <br /><b style="color:red">照片要求:照片为近期、正面、免冠、白底彩色证件照,JPG格式,照片大小为50-200K(此照片用于制作证书)</b>
  157. </div>
  158. </td>
  159. </tr>
  160. </table>
  161. </div>
  162. }
  163. </div>