123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- @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/UserInfoChange.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("UserInfoChange", "User", new { Userid = Request["userID"], MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data", @class = "UserInfoChangeSaveList" }))
- {
- <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("UserInfoChangeSaveList")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.UserID)
- @Html.HiddenFor(x => x.StaffCode)
- @*@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.DisplayFor(x => x.StaffCode, new Dictionary<string, object>() { { "disabled", "true" } })</td>
- @*@if(Model!=null){
- if (Model.PhotoUrl != null)
- {
- <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;" } })
- <input type="button" value="删除" onclick="javascript: delPhoto();" />
- </span>
- </div>
- </td>
- }
- }
- else {
- <td rowspan="4">
- </td>
- <td rowspan="4">
- </td>
- }*@
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Name):</td>
- <td>@Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = false })</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CollegeID):</td>
- <td>@Html.TextBoxFor(x => x.CollegeName, new { @readonly = "readonly" })</td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.DepartmentID):</td>
- <td>@Html.ComboGridFor(x => x.DepartmentID, cgopdepart)</td>
- <td>@Html.LabelFor(x => x.BirthDate):</td>
- <td>
- @Html.DisplayFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.IncumbencyState):</td>
- <td>@Html.DisplayFor(x => x.IncumbencyStateName, new Dictionary<string, object>() { { "disabled", "true" } })</td>
- <td>@Html.LabelFor(x => x.TeacherTypeID):</td>
- <td>@Html.DisplayFor(x => x.TeacherTypeName, new Dictionary<string, object>() { { "disabled", "true" } })</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SexID):</td>
- <td>@Html.DisplayFor(x => x.SexName, new Dictionary<string, object>() { { "disabled", "true" } })</td>
- <td>@Html.LabelFor(x => x.UsedName):</td>
- <td>@Html.TextBoxFor(x => x.UsedName)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.NationID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID))</td>
- <td>@Html.LabelFor(x => x.Place):</td>
- <td>@Html.TextBoxFor(x => x.Place)</td>
- </tr>
- <tr>
- <td></td>
- <td></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.HealthStateID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.HealthStateID))</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.ZIPCode):</td>
- <td>@Html.TextBoxFor(x => x.ZIPCode)</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.ReligionID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Religion, (x => x.ReligionID))</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.SituationID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Situation, (x => x.SituationID))</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.LiteracyLevelID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LiteracyLevel, (x => x.LiteracyLevelID))</td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.LearnPositionID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LearnPosition, (x => x.LearnPositionID))</td>
- <td>@Html.LabelFor(x => x.TitleID):</td>
- <td>@Html.DisplayFor(x => x.TitleName)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.PaymentLevelID):</td>
- <td>@Html.DisplayFor(x => x.PaymentLevelName)</td>
- <td>@Html.LabelFor(x => x.IsDualTeacher):</td>
- <td>@Html.DisplayFor(x => x.IsDualTeacherName)</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.Profile):</td>
- <td>@Html.TextAreaFor(x => x.Profile, new Dictionary<string, string> { { "style", "width:500px;" } })</td>
- <td>@Html.LabelFor(x => x.Remark):</td>
- <td>@Html.TextAreaFor(x => x.Remark, new Dictionary<string, string> { { "style", "width:500px;" } })</td>
- </tr>
- </table>
- </div>
- }
- </div>
|