1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- @model EMIS.ViewModel.TeachingMaterial.SupplierDiscountSetView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions cgop = new ComboGridOptions
- {
- TextField = "UnitName",
- ValueField = "PublishID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="PublishID", HeaderText="出版社ID", Align=AlignStyle.Center, IsHidden = true },
- new BoundFieldColumn { FieldName="UnitName", HeaderText="供应名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Publisher/SupplierList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/TeachingMaterial/StockInSetEdit.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">
- @Html.HiddenFor(x => x.SupplierDiscountSetID)
- <table cellpadding="0" cellspacing="0" id="supplierDiscountSetTable">
- <tr>
- <td>@Html.LabelFor(x => x.UnitName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.PublishID, cgop)
- </td>
- <td>@Html.LabelFor(x => x.Discount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Discount)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.IsDefault):
- </td>
- <td colspan = "3">
- @Html.CheckBoxFor(x => x.IsDefault)
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|