123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- @model EMIS.ViewModel.ScoreManage.ResultTypeDetailView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Add";
- var item = ViewBag.ListItem;
- ComboGridOptions cgopResultType = new ComboGridOptions
- {
- TextField = "ResultsName",
- ValueField = "ResultsTypeID",
- Name = "ResultTypeDropdown",
- ID = "ResultTypeDropdown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ResultsName", HeaderText="成绩类型", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ResultsType/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
-
- }
- };
- //DropdownListOptions cgopOperator = new DropdownListOptions
- //{
- // TextField = "key",
- // ValueField = "value",
- // Name = "OperatorDropdown",
- // ID = "OperatorDropdown",
- // GridOptions = new DropdownListOptions
- // {
- // Columns = new List<DataGridColumn>()
- // {
- // //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
- // new BoundFieldColumn { FieldName="value", HeaderText="", Align=AlignStyle.Center }
- // },
- // IsCheckOnSelect = true,
- // DataSourceUrl = Url.Content("~/ResultTypeDetail/GetOperator"),
- // IsPagination = true,
- // IsShowRowNumbers = true,
- // IsSingleSelect = false,
- // }
- //};
-
- }
- @section scripts{
- <script src="~/Scripts/Business/ScoreManage/ResultTypeDetailAdd.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("Edit")</div>
- </div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="levelSettingTable">
- @Html.HiddenFor(x => x.ResultTypeDetailID)
- <tr>
- <td style ="width: 120px">@Html.LabelFor(x => x.ResultTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID))
- </td>
- <td>@Html.LabelFor(x => x.Name):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Name)
- </td>
- </tr>
- <tr>
- <td style ="width: 120px">@Html.Label("分数段"):
- </td>
- <td colspan = "3">
- @Html.TextBoxFor(x => x.MinScore, new { style = "width:70px;" })
- @Html.MinOrEqualDropDownListFor(x => x.MinScoreOperator, new DropdownListOptions { BindType = DropdownListBindType.None, ItemList = item, TextField = "Text", ValueField = "Value", Height = 50, Width = 70 })
- 总成绩
- @Html.MinOrEqualDropDownListFor(x => x.MaxScoreOperator, new DropdownListOptions { BindType = DropdownListBindType.None, ItemList = item, TextField = "Text", ValueField = "Value", Height = 50, Width = 70 })
- @Html.TextBoxFor(x => x.MaxScore, new { style = "width:70px;" })
- </td>
- </tr>
- <tr>
- <td style ="width: 120px">@Html.LabelFor(x => x.Score):
- </td>
- <td colspan = "3">
- @Html.TextBoxFor(x => x.Score)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Remark):
- </td>
- <td colspan = "3">
- @Html.TextAreaFor(x => x.Remark)
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|