123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- @model EMIS.ViewModel.DifferentDynamic.DifferentDynamicApprovalView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- Layout = "~/Views/Shared/_Layout.cshtml";
- ViewBag.Title = "异动申请审核";
- var cgopLoginIDcharge = new ComboGridOptions
- {
- TextField = "LoginID",
- ValueField = "UserID",
- IsEnabled = false,
- 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
- }
- };
- 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 = "StandardNameStr",
- ValueField = "StandardID",
- OnSelect = "QueryAfterStandardGrid",
- Name = "StandardDictionaryDropDown",
- ID = "StandardDictionaryDropDown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardNameStr", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/ListWithoutRange"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- var listAction = ViewBag.ListAction as List<DropdownListItem>;
- var defaultAction = listAction.FirstOrDefault(x => x.Text == "请选择");
- var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
- }
- <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 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_DifferentDynamicType, m => m.DifferentDynamicType, new DropdownListOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.UserID):
- </th>
- <td>
- @Html.ComboGridFor(x => x.UserID, cgopLoginIDcharge)
- </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_DifferentDynamicReason, x => x.Reason, DropdownListBindType.PleaseSelect,
- new ComboGridOptions
- {
- OnSelect = "",
- GridOptions = new DataGridOptions
- {
- OnLoadSuccessFun = ""
- }
- }, new Dictionary<string, string> { { "disabled", "disabled" } })
- @Html.HiddenFor(m => m.Reason)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.ApplyRemark):
- </th>
- <td colspan="3">
- @Html.TextAreaFor(m => m.ApplyRemark, new Dictionary<string, object> { { "style", "width:540px;" }, { "disabled", "disabled" } })
- @Html.HiddenFor(m => m.ApplyRemark)
- </td>
- </tr>
- @* <tr>
- <th>@Html.LabelFor(m => m.Source):
- </th>
- <td colspan="3">
- @Html.TextAreaFor(m => m.Source, new Dictionary<string, object> { { "style", "width:540px;" } })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.Direction):
- </th>
- <td colspan="3">
- @Html.TextAreaFor(m => m.Direction, new Dictionary<string, object> { { "style", "width:540px;" } })
- </td>
- </tr>*@
- @* <tr>
- <th>@Html.LabelFor(m => m.Remark):
- </th>
- <td colspan="3">
- @Html.TextAreaFor(m => m.Remark, new Dictionary<string, object> { { "style", "width:540px;" } })
- </td>
- </tr>*@
- <tr>
- <td>处理动作:
- </td>
- <td colspan="3">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "ddlAction", Name = "ddlAction", ItemList = listAction, SelectedValue = defaultActionValue })
- </td>
- </tr>
- <tr>
- <td>
- <label>
- 处理意见:</label>
- </td>
- <td colspan="3">@Html.TextArea("txtComment", new Dictionary<string, object> { { "style", "width:540px;" } })
- </td>
- </tr>
- </table>
- </div>
- }
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="specialtytable">
- </table>
- </div>
- </div>
- @section scripts{
- <script src="~/Scripts/Business/DifferentDynamic/ApprovalEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
-
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- <style type="text/css">
- textarea {
- min-height: 45px;
- }
- </style>
- }
|