123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- @model EMIS.ViewModel.DifferentDynamic.DifferentDynamicView
- @*@model EMIS.ViewModel.Students.StudentRecordView*@
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- Layout = "~/Views/Shared/_Layout.cshtml";
- ViewBag.Title = "异动申请编辑";
- var isView = (bool)ViewBag.IsView;
- var textAreaHtmlAttributes = new Dictionary<string, object> { { "style", "width:500px;" } };
- if (isView)
- {
- textAreaHtmlAttributes.Add("disabled", "disabled");
- }
- @*var cgopLoginID = new ComboGridOptions
- {
- TextField = "LoginID",
- ValueField = "UserID",
- IsEnabled = !isView,
- OnSelect = "SelectCallback",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Action("AbleDifferentDynamicApplyStudentList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };*@
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 异动申请信息</div>
- <div id="buttons" style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(m => m.EntityID)
- @Html.HiddenFor(m=>m.UserID)
- @Html.HiddenFor(m => m.StudentStatus)
- @Html.HiddenFor(m => m.ClassmajorID)
- @Html.HiddenFor(m => m.StandardID)
- @Html.HiddenFor(m => m.InSchoolStatusID)
- @Html.HiddenFor(m => m.ApplyTypeID)
- <table cellpadding="0" cellspacing="1">
- <tr>
- <th>@Html.LabelFor(m => m.SchoolyearID):
- </th>
- <td>
- @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", IsEnabled = false })
- </td>
- <th>@Html.LabelFor(m => m.DifferentDynamicType):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ChangeType, m => m.DifferentDynamicType, new DropdownListOptions { IsEnabled = !isView })
- </td>
- </tr>
- <tr>
-
- @*<th>@Html.LabelFor(m => m.UserID):
- </th>
- <td>
- @Html.ComboGridFor(x => x.UserID, cgopLoginID)
- </td>*@
- <th>@Html.LabelFor(m => m.ReturnSchoolyearID):
- </th>
- <td>
- @Html.DropdownListFor(x => x.ReturnSchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", IsEnabled = !isView })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.InSchoolStatusID):
- </th>
- <td>
- @Html.TextBoxFor(m => m.InSchoolStatusName, new Dictionary<string, object> { { "disabled", "disabled" } })
- @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), new DropdownListOptions { IsEnabled = false })*@
- </td>
- <th>@Html.LabelFor(m => m.StandardID):
- </th>
- <td>
- @Html.TextBoxFor(m => m.StandardName, new Dictionary<string, object> { { "disabled", "disabled" } })
- @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.StandardID, new DropdownListOptions { IsEnabled = false })*@
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.StudentStatus):
- </th>
- <td>
-
- @Html.TextBoxFor(m => m.StudentStatusName, new Dictionary<string, object> { { "disabled", "disabled" } })
- @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus), new DropdownListOptions { IsEnabled = false })*@
- </td>
- <th>@Html.LabelFor(m => m.ClassmajorID):
- </th>
- <td>
- @Html.TextBoxFor(m => m.ClassmajorName, new Dictionary<string, object> { { "disabled", "disabled" } })
- @*@Html.DropdownListFor(x => x.ClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value", IsEnabled = false })*@
- </td>
- </tr>
- <tr id="tr01">
- <th>@Html.LabelFor(m => m.AfterInSchoolStatusID):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.AfterInSchoolStatusID), new DropdownListOptions { IsEnabled = !isView })
- </td>
- <th>@Html.LabelFor(m => m.AfterStudentStatus):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.AfterStudentStatus), new DropdownListOptions { IsEnabled = !isView })
- </td>
- </tr>
- <tr id="tr02">
- <th>@Html.LabelFor(m => m.AfterStandardID):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.AfterStandardID, new DropdownListOptions { IsEnabled = !isView })
- </td>
- @if (Model.EntityApprovalStatus.HasValue && Model.EntityApprovalStatus != ViewBag.StartStatusID)
- {
- <th>@Html.LabelFor(m => m.AfterClassmajorID):
- </th>
- <td>
- @Html.DropdownListFor(x => x.AfterClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value", IsEnabled = !isView })
- </td>
- }
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.BeginTime):
- </th>
- <td>
- @Html.TextBoxFor(x => x.BeginTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = !isView })
- </td>
- <th>@Html.LabelFor(m => m.EndTime):
- </th>
- <td>
- @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = !isView })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.Reason):
- </th>
- <td colspan="3">
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_ChangeReason, x => x.Reason, DropdownListBindType.PleaseSelect,
- new ComboGridOptions
- {
- OnSelect = "",
- GridOptions = new DataGridOptions
- {
- OnLoadSuccessFun = ""
- }
- })
- @Html.HiddenFor(m => m.Reason)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.ApplyRemark):
- </th>
- <td colspan="3">
- @Html.TextAreaFor(m => m.ApplyRemark, textAreaHtmlAttributes)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.Source):
- </th>
- <td colspan="3">
- @Html.TextAreaFor(m => m.Source, textAreaHtmlAttributes)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.Direction):
- </th>
- <td colspan="3">
- @Html.TextAreaFor(m => m.Direction, textAreaHtmlAttributes)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.Remark):
- </th>
- <td colspan="3">
- @Html.TextAreaFor(m => m.Remark, textAreaHtmlAttributes)
- </td>
- </tr>
- </table>
- </div>
- }
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="specialtytable">
- </table>
- </div>
- </div>
- @section scripts{
- <script type="text/javascript">
- var $differentDynamicType=$('#DifferentDynamicType');
- $(function(){
-
- var isView=@isView.ToString().ToLower();
-
- if (isView) {
- $('#buttons').hide();
- }
- $differentDynamicType.combobox({
- 'onSelect':function(){
- differentDynamicTypeOnSelect(false);
- }
- });
-
- differentDynamicTypeOnSelect(true);
- });
- function DifferentDynamicApply_Save() {
- $(document.forms[0]).submit();
- }
- function differentDynamicTypeOnSelect(isFirstLoad){
- var isView=@isView.ToString().ToLower();
- if(isView) return;
- var peo = $differentDynamicType.combobox('getValue');
- var $tr02=$('#tr02'),$tr01=$('#tr01');
- $tr01.hide();
- $tr02.hide();
- peo=parseInt(peo);
- switch (peo) {
- case 0:
- if (!isFirstLoad) {
- $('#AfterStandardID').combobox('setValue','-1');
- }
-
- $tr02.show();
- break;
- default:
- }
- }
- </script>
- }
|