123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470 |
- @model EMIS.ViewModel.UniversityManage.TeacherManage.StaffView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var isEnable = Request["type"] == "detail" ? false : true;
- //院系所
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- OnSelect = "queryCollege",
- IsEnabled = isEnable,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 },
- new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //教研室
- ComboGridOptions cgopDepartment = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "DepartmentID",
- OnSelect = "queryDepartment",
- IsEnabled = isEnable,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Department/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/UniversityManage/TeacherManage/StaffEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var college = '@EMIS.Utility.RSL.Get("College")';
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Html.BeginForm("Edit", "Staff", new
- {
- 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 (Request["type"] != "detail")
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.UserID)
- @if (Request["type"] == "add" || Request["type"] == "copyAdd")
- {
- @Html.Hidden("CollegeDropdown", null)
- @Html.Hidden("DepartmentDropdown", null)
- }
- else
- {
- @Html.Hidden("CollegeDropdown", Model.CollegeID)
- @Html.Hidden("DepartmentDropdown", Model.DepartmentID)
- }
- <table cellpadding="0" cellspacing="0" id="stafftable">
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.StaffCode):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StaffCode, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td rowspan="5">
- @Html.LabelFor(x => x.PhotoUrl):
- </td>
- <td rowspan="5">
- <div>
- <img src="@Model.PhotoUrlStr" id="imgPhoto" width="118" height="125" />
- </div>
- <div>
- <span>
- @if (isEnable)
- {
- if (Request["type"] == "edit")
- {
- @Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary<string, object> { { "style", "width:125px;" } })
- <input type="button" value="删除" onclick="javascript: delPhoto();" />
- }
- else
- {
- @Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary<string, object> { { "style", "width:175px;" } })
- }
- }
- </span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Name):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.UsedName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.UsedName, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SexName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.BirthDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.NationName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.PoliticsName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.PoliticsID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.CollegeName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.DepartmentName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
- </td>
- </tr>
- <tr>
- <td colspan="4" style="padding:1px;height:10px;">
- <div id="profileExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
- background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
- onclick="swapProfile();">
- </div>
- <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapProfile();">
- 扩展信息
- </div>
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CertificatesType):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.CertificatesNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.CertificatesNum, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.TeacherTypeName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_TeacherType, (x => x.TeacherTypeID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.IncumbencyState):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_IncumbencyState, (x => x.IncumbencyState), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SituationName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Situation, (x => x.SituationID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.TitleName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Title, (x => x.TitleID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.LiteracyLevelName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LiteracyLevel, (x => x.LiteracyLevelID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.LearnPositionName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LearnPosition, (x => x.LearnPositionID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td style="color: red;">
- @Html.LabelFor(x => x.IsDualTeacher):
- </td>
- <td>
- @if (!isEnable)
- {
- @Html.CheckBoxFor(x => x.IsDualTeacher, new Dictionary<string, object>() { { "disabled", isEnable } })
- }
- else
- {
- @Html.CheckBoxFor((x => x.IsDualTeacher))
- }
- </td>
- <td>
- @Html.LabelFor(x => x.PaymentLevelName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.TP_PaymentLevel, (x => x.PaymentLevelID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Nationality):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Nationality, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.Place):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Place, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.WorkDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.WorkDate, new TextBoxOptions() { TextBoxType = TextBoxType.Month, IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.ComeSchoolDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ComeSchoolDate, new TextBoxOptions() { TextBoxType = TextBoxType.Month, IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td colspan="4" style="padding:1px;height:10px;">
- <div id="otherExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
- background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
- onclick="swapOther();">
- </div>
- <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapOther();">
- 其它信息
- </div>
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Email):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Email, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.ZIPCode):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ZIPCode, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.WeChatNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.WeChatNum, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.QQ):
- </td>
- <td>
- @Html.TextBoxFor(x => x.QQ, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Telephone):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Telephone, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.OfficeTelephone):
- </td>
- <td>
- @Html.TextBoxFor(x => x.OfficeTelephone, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.HousePhone):
- </td>
- <td>
- @Html.TextBoxFor(x => x.HousePhone, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.Mobile):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Mobile, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.HealthStateName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.HealthStateID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.ReligionName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Religion, (x => x.ReligionID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Speciality):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Speciality, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.Account):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Account, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Residence):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Residence, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary<string, string> { { "style", "width:85%;" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.HomeAddress):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.HomeAddress, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary<string, string> { { "style", "width:85%;" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Address):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Address, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary<string, string> { { "style", "width:85%;" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.NowAddress):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.NowAddress, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary<string, string> { { "style", "width:85%;" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Profile):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.Profile, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 45px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Profile, new Dictionary<string, object> { { "style", "width: 90%;min-height: 45px" } })
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 20px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
- }
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|