123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- @model EMIS.ViewModel.ExaminationApply.ExaminationSubjectView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions ExaminationSubject = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationSubjectID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试类别", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="科目名称", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
- 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 style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- </div>
- <div class="search_list popupWindowContent">
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td>@Html.LabelFor(x => x.Name):
- </td>
- <td>@Html.TextBoxFor(x => x.Name)
- </td>
- <td>@Html.LabelFor(x => x.ExaminationFormsID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EX_ExaminationForm, x => x.ExaminationFormsID)
- </td>
- @*@Html.DropdownListFor((x => x.PreposeSubjectID), new DropdownListOptions { ID = "PreposeSubjectDropdown", Name = "PreposeSubjectDropdown", BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropDownList?examinationSubjectID=" + @ViewBag.ID),OnLoadSuccess="" })*@
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.PLEASE_SELECT";
- var ID = "@ViewBag.ID";
- function ExaminationSubjects_Save() {
- $(document.forms[0]).submit();
- }
- function reload() {
- //$("#PreposeSubjectDropdown").combogridX("clear");
- $("#PreposeSubjectID").combogridX("reload", eval("({'QueryParamsDatas':'ExaminationTypeDropdown|*|" + $("#ExaminationTypeDropdown").combobox("getValue") + "|@@|SchoolYearDropdown|*|" + $("#SchoolyearID").combobox("getValue") + "|@@|ExaminationSubjectDropdown|*|" + ID + "|@@|'})"));
- // $("#PreposeSubjectDropdown").combobox("clear");
- // $("#PreposeSubjectDropdown").combobox("reload", "/ExaminationSubject/DropDownList?examinationTypeID=" + $("#ExaminationTypeDropdown").combobox("getValue")) ;
- }
- </script>
- }
|