123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- @model EMIS.ViewModel.DifferentDynamic.DifferentDynamicView
- @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:540px" } };
- 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,Width=0.2 },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center,Width=0.2 },
- new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Action("AbleDifferentDynamicApplyStudentList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopClassmajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassmajorID",
- OnSelect = "QueryClassmajorGrid",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classmajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- OnSelect = "QueryAfterStandardGrid",
- Name = "StandardDictionaryDropDown",
- ID = "StandardDictionaryDropDown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
- 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>
- @if (Request["isView"] != "1")
- {
- <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.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)
- </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" })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.InSchoolStatusID):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), new DropdownListOptions { IsEnabled = false })
- </td>
- <th>@Html.LabelFor(m => m.AfterInSchoolStatusID):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.AfterInSchoolStatusID))
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.StudentStatus):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus), new DropdownListOptions { IsEnabled = false })
- </td>
- <th>@Html.LabelFor(m => m.AfterStudentStatus):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.AfterStudentStatus))
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.StandardID):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.StandardID, new DropdownListOptions { IsEnabled = false })
- </td>
- <th>@Html.LabelFor(m => m.AfterStandardID):
- </th>
- <td>
- @Html.ComboGridFor(x => x.AfterStandardID, cgopStandard)
- @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.AfterStandardID, DropdownListBindType.PleaseSelect, new ComboGridOptions { OnSelect = "QueryAfterStandardGrid" })*@
- @* @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.AfterStandardID, new DropdownListOptions { OnSelect = "QueryAfterStandardGrid" })*@
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.ClassmajorID):
- </th>
- <td>
- @Html.DropdownListFor(x => x.ClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value", IsEnabled = false })
- </td>
- <th>@Html.LabelFor(m => m.AfterClassmajorID):
- </th>
- <td>
- @Html.ComboGridFor(x => x.AfterClassmajorID, cgopClassmajor)
- @*@Html.DropdownListFor(x => x.AfterClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value" })*@
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.BeginTime):
- </th>
- <td>
- @Html.TextBoxFor(x => x.BeginTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- <th>@Html.LabelFor(m => m.EndTime):
- </th>
- <td>
- @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.Reason):
- </th>
- <td colspan="3">
- @*@Html.TextAreaFor(m => m.Reason, new Dictionary<string, object> { { "style", "width:540px;" }, { "disabled", "disabled" } })*@
- @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:
- }
- }
- function SelectCallback(data) {
- var inSchoolStatusID = data.InSchoolStatusID; //在校状态
- var studentStatus = data.StudentStatus; //学籍状态
- var classmajorID = data.ClassMajorID; //班级
- var standardID = data.StandardID; //标准专业Id
- $('#InSchoolStatusID').combobox('setValue', inSchoolStatusID);
- $('#StudentStatus').combobox('setValue', studentStatus);
- $('#ClassmajorID').combobox('setValue', classmajorID);
- $('#StandardID').combobox('setValue', standardID);
-
- }
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- <script src="~/Scripts/Business/DifferentDynamic/ApprovalEdit.js" type="text/javascript"></script>
- <style type="text/css">
- textarea {
- min-height: 45px;
- }
- </style>
- }
|