123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- @model EMIS.ViewModel.DegreeManage.DegreeManage.DegreeApplyView
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "Approve";
- var isEdit = (Request["degreeApplyID"] ?? "") == "";
- //学生信息
- ComboGridOptions cgopStudent = new ComboGridOptions
- {
- TextField = "LoginID",
- ValueField = "UserID",
- IsEnabled = isEdit,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.25, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.15, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //班级信息
- ComboGridOptions cgopClassmajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassmajorID",
- Name = "ClassmajorComboGrid",
- IsEnabled = isEdit,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.3, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classmajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //院系所
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- ID = "CollegeDropdown",
- Name = "CollegeDropdown",
- IsEnabled = isEdit,
- 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.2 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
-
- //学位公式
- ComboGridOptions cgopDegreeConditionPackage = new ComboGridOptions
- {
- TextField = "Title",
- ValueField = "DegreeConditionPackageID",
- ID = "DegreeConditionPackageDropdown",
- Name = "DegreeConditionPackageDropdown",
- IsEnabled = isEdit,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Title", HeaderText="学位公式", Align=AlignStyle.Center, Width=150 },
- new BoundFieldColumn { FieldName="StudentTypeName", HeaderText="学生类别", Align=AlignStyle.Center, Width=60 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/DegreeConditionPackage/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
-
- }
- @{
- var listAction = ViewBag.ListAction as List<DropdownListItem>;
- var defaultAction = listAction.FirstOrDefault(x => true);
- var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
- }
- @section scripts{
- <script src="~/Scripts/Business/DegreeManage/DegreeManage/DegreeApproveSubmit.js" type="text/javascript"></script>
- }
- <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 style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- @Html.ContextMenuBar("Approve")
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.DegreeApplyID)
- <table cellpadding="0" cellspacing="0" id="chargedelaytable">
- <tr>
- <td>
- @Html.LabelFor(x => x.StudentNo):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserID, cgopStudent)
- </td>
- <td>
- @Html.LabelFor(x => x.UserName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.UserName, new TextBoxOptions() { IsEnabled = isEdit })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SexName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, x => x.SexID, new DropdownListOptions() { IsEnabled = isEdit })
- </td>
- <td>
- @Html.LabelFor(x => x.InSchoolStatusName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, x => x.InSchoolStatusID, new DropdownListOptions() { IsEnabled = isEdit })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ClassName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ClassID, cgopClassmajor)
- </td>
- <td>
- @Html.LabelFor(x => x.CollegeName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
- </td>
- </tr>
- <tr>
- <td style="color: red">
- @Html.LabelFor(x => x.ApplySchoolyearCode):
- </td>
- <td>
- @Html.DropdownListFor((x => x.ApplySchoolyearID), new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- TextField = "Text",
- ValueField = "Value",
- IsEnabled = isEdit,
- ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
- })
- </td>
- <td style="color: red">
- @Html.LabelFor(x => x.GraduatingSemesterCode):
- </td>
- <td>
- @Html.DropdownListFor((x => x.GraduatingSemesterID), new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- TextField = "Text",
- ValueField = "Value",
- IsEnabled = isEdit,
- ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
- })
- </td>
- </tr>
- <tr>
- <td style="color: red">
- @Html.LabelFor(x => x.GraduationTypeName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_GraduationType, x => x.GraduationTypeID, new DropdownListOptions() { IsEnabled = isEdit })
- </td>
- <td style="color: red">
- @Html.LabelFor(x => x.Title):
- </td>
- <td>
- @Html.ComboGridFor(x => x.DegreeConditionPackageID, cgopDegreeConditionPackage)
- </td>
- </tr>
- <tr>
- <td style="color: red">
- @Html.LabelFor(x => x.DegreeBatchName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_DegreeBatch, x => x.DegreeBatchID, new DropdownListOptions() { IsEnabled = isEdit })
- </td>
- <td style="color: red">
- @Html.LabelFor(x => x.DegreeResultName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_DegreeResult, x => x.DegreeResult, new DropdownListOptions() { IsEnabled = isEdit })
- </td>
- @*<td style="color: red">
- @Html.LabelFor(x => x.ApprovalResult):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ApprovalResult, new TextBoxOptions() { IsEnabled = isEdit })
- </td>*@
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 25px" },
- { "disabled", "true" }
- })
- </td>
- </tr>
- <tr>
- <td style="color: red;">
- @Html.LabelFor(x => x.Action):
- </td>
- <td colspan="3">
- @Html.DropdownList(new DropdownListOptions
- {
- BindType = DropdownListBindType.None,
- ID = "ddlAction",
- Name = "ddlAction",
- ItemList = listAction,
- SelectedValue = defaultActionValue
- })
- </td>
- </tr>
- <tr>
- <td>
- 处理意见:
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Comment, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 50px" }
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|