@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("Edit", "Staff", new { Userid = Request["userID"], MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" })) {
@if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限 { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.UserID) @Html.Hidden("CollegeDropdown", Model.CollegeID, new Dictionary { { "data-condition", "DepartmentID_gridX" } })
@Html.LabelFor(x => x.StaffCode): @Html.TextBoxFor(x => x.StaffCode) @Html.LabelFor(x => x.PhotoUrl):
@Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary { { "style", "width:100px;" }, { "accept", "*.jpg;*.jpeg;*.png;*.bmp" } })
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name)
@Html.LabelFor(x => x.UsedName): @Html.TextBoxFor(x => x.UsedName)
@Html.LabelFor(x => x.Sex): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.Sex))
@Html.LabelFor(x => x.CollegeName): @Html.ComboGridFor(x => x.CollegeID, cgop) @Html.LabelFor(x => x.DepartmentName): @Html.ComboGridFor(x => x.DepartmentID, cgopdepart)
@Html.LabelFor(x => x.TeacherType): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_TeacherType, (x => x.TeacherType)) @Html.LabelFor(x => x.IncumbencyState): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_IncumbencyState, (x => x.IncumbencyState))
@Html.LabelFor(x => x.BirthDate): @Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.TeachingDate): @Html.TextBoxFor(x => x.TeachingDate, new TextBoxOptions() { TextBoxType = TextBoxType.Month })
@Html.LabelFor(x => x.Nation): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.Nation)) @Html.LabelFor(x => x.Place): @Html.TextBoxFor(x => x.Place)
@Html.LabelFor(x => x.EducationCode): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EducationCode, (x => x.EducationCode)) @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.HealthState): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.HealthState))
@Html.LabelFor(x => x.HousePhone): @Html.TextBoxFor(x => x.HousePhone) @Html.LabelFor(x => x.Address): @Html.TextBoxFor(x => x.Address)
@Html.LabelFor(x => x.Postcode): @Html.TextBoxFor(x => x.Postcode) @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.Religion): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Religion, (x => x.Religion)) @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.Situation): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Situation, (x => x.Situation))
@Html.LabelFor(x => x.LiteracyLevels): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LiteracyLevels, (x => x.LiteracyLevels)) @Html.LabelFor(x => x.Title): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Title, (x => x.Title))
@Html.LabelFor(x => x.PaymentLevelID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.TP_PaymentLevel, (x => x.PaymentLevelID)) @Html.LabelFor(x => x.IsDualTeacher): @Html.CheckBoxFor((x => x.IsDualTeacher))
@Html.LabelFor(x => x.LearnPosition): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LearnPosition, (x => x.LearnPosition)) @Html.LabelFor(x => x.DegreeState): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_DegreeState, (x => x.DegreeState))
@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;" } })
}