123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- @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.ExaminationTypeID):
- </td>
- <td>@Html.DropdownListFor((x => x.ExaminationTypeID), new DropdownListOptions { ID = "ExaminationTypeDropdown", Name = "ExaminationTypeDropdown", BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList"), OnSelect = "reload()", OnLoadSuccess="" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ExaminationFormID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EX_ExaminationForm, x => x.ExaminationFormID)
- </td>
- <td>@Html.LabelFor(x => x.PreposeSubjectID):
- </td>
- <td>@Html.ComboGridFor(x => x.PreposeSubjectID, ExaminationSubject)
- @*@Html.DropdownListFor((x => x.PreposeSubjectID), new DropdownListOptions { ID = "PreposeSubjectDropdown", Name = "PreposeSubjectDropdown", BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropDownList?examinationSubjectID=" + @ViewBag.ID),OnLoadSuccess="" })*@
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.PreposeScoreLimit):
- </td>
- <td>@Html.TextBoxFor(x => x.PreposeScoreLimit, new TextBoxOptions() { })
- </td>
- <td>@Html.LabelFor(x => x.Cost):
- </td>
- <td>@Html.TextBoxFor(x => x.Cost, new TextBoxOptions() { })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Remark, new { style = "width: 90%;" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ExaminationDate):
- </td>
- <td>@Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- <td>@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect="reload()", ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.PLEASE_SELECT";
- var ID="@ViewBag.ID";
- function ExaminationSubject_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>
- }
|