123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- @model EMIS.ViewModel.DifferentDynamic.DifferentDynamicView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- Layout = "~/Views/Shared/_Layout.cshtml";
- ViewBag.Title = "异动申请编辑";
- var isView = true;
- var textAreaHtmlAttributes = new Dictionary<string, object> { { "style", "width:500px;" } };
- if (isView)
- {
- textAreaHtmlAttributes.Add("disabled", "disabled");
- }
- var cgopLoginIDcharge = 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.Content("~/Students/List") + "?inSchoolStatusIDs=1&inSchoolStatusIDs=3&inSchoolStatusIDs=4&inSchoolStatusIDs=5",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Html.BeginForm())
- {
- <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("Edit")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(m => m.EntityID)
- <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 = !isView })
- </td>
- <th>@Html.LabelFor(m => m.DifferentDynamicType):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_DifferentDynamicType, m => m.DifferentDynamicType, new DropdownListOptions { IsEnabled = !isView })
- </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", IsEnabled = !isView })
- </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), new DropdownListOptions { IsEnabled = !isView })
- </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), new DropdownListOptions { IsEnabled = !isView })
- </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.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.AfterStandardID, new DropdownListOptions { IsEnabled = !isView })
- </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.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.ReasonName):
- </th>
- <td colspan="3">
- @Html.TextAreaFor(m => m.ReasonName, textAreaHtmlAttributes)
- </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>
|