123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- @model EMIS.ViewModel.SystemView.RegistView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @using Bowin.Common;
- @{
- ViewBag.Title = "Regist";
- //Layout = "~/Views/Shared/_FrameLayout.cshtml";
- List<string> lurl = new List<string>();
- lurl.Add("Content/");
- lurl.Add("Doc/");
- lurl.Add("Scripts/");
- lurl.Add("Login/");
- lurl.Add("UploadFile/");
- lurl.Add("Account/ChangePassword");
- FormsAuthenticationHelper fahelper = new FormsAuthenticationHelper();
- var cookieName = EMIS.Utility.Const.LOCAL_SETTING_LOGIN_COOKIENAME;
- fahelper.AuthenticateRequest(HttpContext.Current, cookieName, lurl);
- }
- @section scripts{
- <script type="text/javascript" src="~/Scripts/Business/Common/FinishInfomation.js">
- </script>
- <script type="text/javascript">
-
-
- $(document).ready(function () {
- history.pushState(null, null, document.URL);
- window.addEventListener('popstate', function () {
- history.pushState(null, null, document.URL);
- });
- var IsStudent = "@ViewBag.IsStudent";
- if (IsStudent == "True") {
- $("a#UserInfo").hide();
- }
- else if (IsStudent == "False") {
- $("a#UserInfo").show();
- }
-
- });
- $(function () {
- $.parser.onComplete = function () {
- $("#ddlIndexRoleSelector").combobox({
- onShowPanel: resizePanel
- });
- };
- $(".easyui-tree").tree('collapseAll');
- $.System.addTab('首页', '@Url.Content("~/Home/Main")', 'Main', false);
- });
- function switchRole() {
- $("[name='hdnSelectedRole']").val($("#ddlIndexRoleSelector").combobox('getValue'));
- $("#frmRole").submit();
- }
- function resizePanel() {
- $($(".combo-p")[0]).css("width", "147px");
- $($(".combo-p")[0]).find(".combo-panel").css("width", "145px");
- }
- function changePassword() {
- $.System.addTab('修改密码', '@Url.Content("~/Account/ChangePassword")', 'ChangePassword', false);
- }
- function changeInfo() {
- $.System.addTab('用户信息', '@Url.Content("~/User/UserInfoChange")', 'ChangeInfo', false);
- }
- </script>
- }
- <div data-options="region:'north',title:'',split:false, border:false" class="index_top_banner" style="background-color:#178acb;width: auto;height: 80px;">
- <div class="index_top_bg" style="color: White;font-weight: bold;margin-left: 40px;vertical-align: middle;">
- <div id="index_top" class="index_top_left" style="line-height:0px;padding-top: 0px;font-size: 30px;font-style: italic;float: left;">
- <img src="@Url.Content("~/common/ResImage?key=HomeLogo")" />
- </div>
- <div id="divCurrentInformation" style="line-height: 0px;position:absolute;float: right;right:30px;top:20px;">
- <form id="frmRole" action="@Url.Content("~/Home/SwitchRole")" method="post">
- @Html.Hidden("hdnSelectedRole")
- </form>
- 当前用户:@(((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).LoginID + "-" + ((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).Name + (((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).IsStudent ? "同学" : "老师")) @Html.SystemClock(new SystemClockOptions { IsJump = true })
- </div>
- <div style="float: right; padding-right: 30px; padding-top: 40px;">
- <a href="@Url.Content("~/Account/LogOff")" style="z-index: 99999;">
- <img border="0" title="退出" src="@Url.Content("~/Content/Bowin.Control.Core/images/h_logout.jpg")" />
- </a>
- </div>
- </div>
- </div>
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Html.BeginForm("FinishInfomation", "Account", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
- {
- @Html.HiddenFor(x => x.UserID)
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- <div class="current_navbar toolbar">
-
- <div class="func_info">
- <a class="easyui-linkbutton" href="javascript:Save()" data-options="iconCls:'icon-ok',plain:'true'"
- onfocus="this.blur()">保存</a>
- </div>
- </div>
- </div>
- </div>
- <div style="color:red;margin:0 auto;text-align:center">为保证您的报名信息准确有效,进入系统前请先补全关键信息,谢谢合作!</div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0">
- <tr>
- <td>
- @Html.LabelFor(x => x.CertificatesType):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.LoginID):
- </td>
- <td>
- @Model.LoginID
- @Html.HiddenFor(x => x.LoginID)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.UserName):
- </td>
- <td>
- @Model.UserName
- @Html.HiddenFor(x => x.UserName)
- @*@Html.TextBoxFor(x => x.UserName)*@
- </td>
- <td>
- @Html.LabelFor(x => x.Mobile):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Mobile)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SexName):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.Sex), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })</td>
- <td>@Html.LabelFor(x => x.BirthDate):</td>
- <td>@Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions { TextBoxType = TextBoxType.Date })</td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Email):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Email)
- </td>
- <td colspan="2" style="background-color: white">
- <font color="red">邮箱地址将用于系统密码找回,请务必填写准确的邮箱地址</font>
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.PhotoUrl):
- </td>
- <td colspan="3">
- <div>
- <img id="imgPhoto" src="@Model.PhotoUrl" width="100" height="150" />
- </div>
- <div>
- @Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary<string, object> { { "style", "width:150px;" }, { "accept", "image/png,image/jpeg,image/gif" } })
- <br /><b style="color:red">照片要求:照片为近期、正面、免冠、白底彩色证件照,JPG格式,照片大小为50-200K(此照片用于制作证书)</b>
- </div>
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|