123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- @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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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{
- <script src="~/Scripts/Business/System/StaffEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Html.BeginForm("Edit", "Staff", new { Userid = Request["userID"], MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
- {
- <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;">
- @if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.UserID)
- @Html.Hidden("CollegeDropdown", Model.CollegeID, new Dictionary<string, object> { { "data-condition", "DepartmentID_gridX" } })
- <table cellpadding="0" cellspacing="0" id="stafftable">
- <tr>
- <td>@Html.LabelFor(x => x.StaffCode):</td>
- <td>@Html.TextBoxFor(x => x.StaffCode)</td>
- <td rowspan="4">@Html.LabelFor(x => x.PhotoUrl):</td>
- <td rowspan="4">
- <div>
- <img src="@Model.PhotoUrl" id="imgPhoto" width="80" height="100" /></div>
- <div>
- <span>@Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary<string, object> { { "style", "width:100px;" },
- { "accept", "*.jpg;*.jpeg;*.png;*.bmp" } })
- <input type="button" value="删除" onclick="javascript: delPhoto();" />
- </span>
- </div>
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Name):</td>
- <td>@Html.TextBoxFor(x => x.Name)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.UsedName):</td>
- <td>@Html.TextBoxFor(x => x.UsedName)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Sex):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.Sex))</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CollegeName):</td>
- <td>@Html.ComboGridFor(x => x.CollegeID, cgop)</td>
- <td>@Html.LabelFor(x => x.DepartmentName):</td>
- <td>@Html.ComboGridFor(x => x.DepartmentID, cgopdepart)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.TeacherType):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_TeacherType, (x => x.TeacherType))</td>
- <td>@Html.LabelFor(x => x.IncumbencyState):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_IncumbencyState, (x => x.IncumbencyState))</td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.BirthDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- <td>@Html.LabelFor(x => x.TeachingDate):</td>
- <td>@Html.TextBoxFor(x => x.TeachingDate, new TextBoxOptions() { TextBoxType = TextBoxType.Month })</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Nation):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.Nation))</td>
- <td>@Html.LabelFor(x => x.Place):</td>
- <td>@Html.TextBoxFor(x => x.Place)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.EducationCode):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EducationCode, (x => x.EducationCode))</td>
- <td>@Html.LabelFor(x => x.Telephone):</td>
- <td>@Html.TextBoxFor(x => x.Telephone)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.OfficeTelephone):</td>
- <td>@Html.TextBoxFor(x => x.OfficeTelephone)</td>
- <td>@Html.LabelFor(x => x.Mobile):</td>
- <td>@Html.TextBoxFor(x => x.Mobile)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Email):</td>
- <td>@Html.TextBoxFor(x => x.Email)</td>
- <td>@Html.LabelFor(x => x.QQ):</td>
- <td>@Html.TextBoxFor(x => x.QQ)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Nationality):</td>
- <td>@Html.TextBoxFor(x => x.Nationality)</td>
- <td>@Html.LabelFor(x => x.HealthState):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.HealthState))</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.HousePhone):</td>
- <td>@Html.TextBoxFor(x => x.HousePhone)</td>
- <td>@Html.LabelFor(x => x.Address):</td>
- <td>@Html.TextBoxFor(x => x.Address)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Postcode):</td>
- <td>@Html.TextBoxFor(x => x.Postcode)</td>
- <td>@Html.LabelFor(x => x.HomeAddress):</td>
- <td>@Html.TextBoxFor(x => x.HomeAddress)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.NowAddress):</td>
- <td>@Html.TextBoxFor(x => x.NowAddress)</td>
- <td>@Html.LabelFor(x => x.Residence):</td>
- <td>@Html.TextBoxFor(x => x.Residence)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Religion):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Religion, (x => x.Religion))</td>
- <td>@Html.LabelFor(x => x.CertificatesType):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType))</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CertificatesNum):</td>
- <td>@Html.TextBoxFor(x => x.CertificatesNum)</td>
- <td>@Html.LabelFor(x => x.Situation):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Situation, (x => x.Situation))</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.LiteracyLevels):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LiteracyLevels, (x => x.LiteracyLevels))</td>
- <td>@Html.LabelFor(x => x.Title):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Title, (x => x.Title))</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.PaymentLevelID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.TP_PaymentLevel, (x => x.PaymentLevelID))</td>
- <td>@Html.LabelFor(x => x.IsDualTeacher):</td>
- <td>@Html.CheckBoxFor((x => x.IsDualTeacher))</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.LearnPosition):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LearnPosition, (x => x.LearnPosition))</td>
- <td>@Html.LabelFor(x => x.DegreeState):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_DegreeState, (x => x.DegreeState))</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.WorkDate):</td>
- <td>@Html.TextBoxFor(x => x.WorkDate, new TextBoxOptions() { TextBoxType = TextBoxType.Month })</td>
- <td>@Html.LabelFor(x => x.ComeSchoolDate):</td>
- <td>@Html.TextBoxFor(x => x.ComeSchoolDate, new TextBoxOptions() { TextBoxType = TextBoxType.Month })</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Speciality):</td>
- <td>@Html.TextBoxFor(x => x.Speciality)</td>
- <td>@Html.LabelFor(x => x.WeChatNum):</td>
- <td>@Html.TextBoxFor(x => x.WeChatNum)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Account):</td>
- <td>@Html.TextBoxFor(x => x.Account)</td>
- <td>@Html.LabelFor(x => x.Profile):</td>
- <td>@Html.TextAreaFor(x => x.Profile, new Dictionary<string, string> { { "style", "width:500px;" } })</td>
- </tr>
- </table>
- </div>
- }
- </div>
|