@model EMIS.ViewModel.TeacherManagement.StaffView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "QueryCollegeComboGridList", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopdepart = new ComboGridOptions { TextField = "Name", ValueField = "DepartmentID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Html.BeginForm("UserInfoChange", "User", new { Userid = Request["userID"], MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data", @class = "UserInfoChangeSaveList" })) {
@if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限 { @Html.ContextMenuBar("UserInfoChangeSaveList") }
@Html.HiddenFor(x => x.UserID) @Html.HiddenFor(x => x.StaffCode) @*@Html.Hidden("CollegeDropdown", Model.CollegeID, new Dictionary { { "data-condition", "DepartmentID_gridX" } })*@ @*@if(Model!=null){ if (Model.PhotoUrl != null) { } } else { }*@
@Html.LabelFor(x => x.StaffCode): @Html.DisplayFor(x => x.StaffCode, new Dictionary() { { "disabled", "true" } })@Html.LabelFor(x => x.PhotoUrl):
@Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary { { "style", "width:100px;" } })
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.CollegeID): @Html.TextBoxFor(x => x.CollegeName, new { @readonly = "readonly" })
@Html.LabelFor(x => x.DepartmentID): @Html.ComboGridFor(x => x.DepartmentID, cgopdepart) @Html.LabelFor(x => x.BirthDate): @Html.DisplayFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
@Html.LabelFor(x => x.IncumbencyState): @Html.DisplayFor(x => x.IncumbencyStateName, new Dictionary() { { "disabled", "true" } }) @Html.LabelFor(x => x.TeacherTypeID): @Html.DisplayFor(x => x.TeacherTypeName, new Dictionary() { { "disabled", "true" } })
@Html.LabelFor(x => x.SexID): @Html.DisplayFor(x => x.SexName, new Dictionary() { { "disabled", "true" } }) @Html.LabelFor(x => x.UsedName): @Html.TextBoxFor(x => x.UsedName)
@Html.LabelFor(x => x.NationID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID)) @Html.LabelFor(x => x.Place): @Html.TextBoxFor(x => x.Place)
@Html.LabelFor(x => x.Telephone): @Html.TextBoxFor(x => x.Telephone)
@Html.LabelFor(x => x.OfficeTelephone): @Html.TextBoxFor(x => x.OfficeTelephone) @Html.LabelFor(x => x.Mobile): @Html.TextBoxFor(x => x.Mobile)
@Html.LabelFor(x => x.Email): @Html.TextBoxFor(x => x.Email) @Html.LabelFor(x => x.QQ): @Html.TextBoxFor(x => x.QQ)
@Html.LabelFor(x => x.Nationality): @Html.TextBoxFor(x => x.Nationality) @Html.LabelFor(x => x.HealthStateID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.HealthStateID))
@Html.LabelFor(x => x.HousePhone): @Html.TextBoxFor(x => x.HousePhone) @Html.LabelFor(x => x.Address): @Html.TextBoxFor(x => x.Address)
@Html.LabelFor(x => x.ZIPCode): @Html.TextBoxFor(x => x.ZIPCode) @Html.LabelFor(x => x.HomeAddress): @Html.TextBoxFor(x => x.HomeAddress)
@Html.LabelFor(x => x.NowAddress): @Html.TextBoxFor(x => x.NowAddress) @Html.LabelFor(x => x.Residence): @Html.TextBoxFor(x => x.Residence)
@Html.LabelFor(x => x.ReligionID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Religion, (x => x.ReligionID)) @Html.LabelFor(x => x.CertificatesType): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType))
@Html.LabelFor(x => x.CertificatesNum): @Html.TextBoxFor(x => x.CertificatesNum) @Html.LabelFor(x => x.SituationID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Situation, (x => x.SituationID))
@Html.LabelFor(x => x.LiteracyLevelID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LiteracyLevel, (x => x.LiteracyLevelID))
@Html.LabelFor(x => x.LearnPositionID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LearnPosition, (x => x.LearnPositionID)) @Html.LabelFor(x => x.TitleID): @Html.DisplayFor(x => x.TitleName)
@Html.LabelFor(x => x.PaymentLevelID): @Html.DisplayFor(x => x.PaymentLevelName) @Html.LabelFor(x => x.IsDualTeacher): @Html.DisplayFor(x => x.IsDualTeacherName)
@Html.LabelFor(x => x.WorkDate): @Html.TextBoxFor(x => x.WorkDate, new TextBoxOptions() { TextBoxType = TextBoxType.Month }) @Html.LabelFor(x => x.ComeSchoolDate): @Html.TextBoxFor(x => x.ComeSchoolDate, new TextBoxOptions() { TextBoxType = TextBoxType.Month })
@Html.LabelFor(x => x.Speciality): @Html.TextBoxFor(x => x.Speciality) @Html.LabelFor(x => x.WeChatNum): @Html.TextBoxFor(x => x.WeChatNum)
@Html.LabelFor(x => x.Profile): @Html.TextAreaFor(x => x.Profile, new Dictionary { { "style", "width:500px;" } }) @Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width:500px;" } })
}