1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- @model EMIS.ViewModel.ScoreManage.ScoreFormulaView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- }
- @section scripts{
- <script src="~/Scripts/Business/ScoreManage/ScoreFormulaEdit.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>
- @if (Request["isView"] != "1")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.ScoreFormulaID)
- <table cellpadding="0" cellspacing="0" id="buildingstable">
- <tr>
- <td>@Html.LabelFor(x => x.Name):</td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Name)
- </td>
- </tr>
- <tr>
- <td rowspan="3"><label>总分公式明细:</label></td>
- <td colspan="3">
- <div style="line-height: 30px; font-size: 12px; text-align: left;">@Html.ContextMenuBar("Settings")</div>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn { FieldName="ScoreFormulaDetailID" },
- new DictionaryDropdownListColumn { FieldName="ScoreType", HeaderText="分数类型", Align=AlignStyle.Center, DictionaryType = EMIS.ViewModel.DictionaryItem.CF_ScoreType },
- new CheckButtonColumn { FieldName="IsRequirePass", HeaderText="是否必须通过", Align=AlignStyle.Center },
- new TextBoxColumn { FieldName="PassScoreStr", HeaderText="必须通过成绩", Align=AlignStyle.Center },
- new TextBoxColumn { FieldName="Percentage", HeaderText="百分比", Align=AlignStyle.Center, IsRequired = true, Validator = new OnlyNumberValidator() }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ScoreFormula/ScoreFormulaDetailList?scoreFormulaID=" + Model.ScoreFormulaID),
- IsPostBack = true,
- ID = "dgScoreFormulaDetailList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|