Edit.cshtml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @model EMIS.ViewModel.TeachingMaterial.SupplierDiscountSetView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "UnitName",
  9. ValueField = "PublishID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new LinkButtonColumn { FieldName="PublishID", HeaderText="出版社ID", Align=AlignStyle.Center, IsHidden = true },
  15. new BoundFieldColumn { FieldName="UnitName", HeaderText="供应名称", Align=AlignStyle.Center }
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/Publisher/SupplierList"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false
  22. }
  23. };
  24. }
  25. @section scripts{
  26. <script src="~/Scripts/Business/TeachingMaterial/StockInSetEdit.js" type="text/javascript"></script>
  27. }
  28. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  29. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  30. {
  31. <div class="p_title">
  32. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  33. </div>
  34. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  35. </div>
  36. <div class="search_list">
  37. @Html.HiddenFor(x => x.SupplierDiscountSetID)
  38. <table cellpadding="0" cellspacing="0" id="supplierDiscountSetTable">
  39. <tr>
  40. <td>@Html.LabelFor(x => x.UnitName):
  41. </td>
  42. <td>
  43. @Html.ComboGridFor(x => x.PublishID, cgop)
  44. </td>
  45. <td>@Html.LabelFor(x => x.Discount):
  46. </td>
  47. <td>
  48. @Html.TextBoxFor(x => x.Discount)
  49. </td>
  50. </tr>
  51. <tr>
  52. <td>@Html.LabelFor(x => x.IsDefault):
  53. </td>
  54. <td colspan = "3">
  55. @Html.CheckBoxFor(x => x.IsDefault)
  56. </td>
  57. </tr>
  58. </table>
  59. </div>
  60. }
  61. </div>