@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "TMPoolListSelector"; var supplierID = ViewBag.SupplierID; var dbdiscount = ViewBag.Discount; ComboGridOptions TMCode = new ComboGridOptions { TextField = "TeachingMaterialCode", ValueField = "TeachingMaterialPoolID", ID = "TeachingMaterialCodeDropdown", Name = "TeachingMaterialCodeDropdown", OnSelect = "QueryTeachingMaterialDropdownList", GridOptions = new DataGridOptions { Columns = new List() { //new BoundFieldColumn { FieldName="TeachingMaterialName",HeaderText="教材名称", Align=AlignStyle.Center, Width=0.3 }, new BoundFieldColumn { FieldName="TeachingMaterialCode",HeaderText="教材编号", Align=AlignStyle.Center, Width=0.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions TMName = new ComboGridOptions { TextField = "TeachingMaterialName", ValueField = "TeachingMaterialPoolID", ID = "TeachingMaterialDropdown", Name = "TeachingMaterialDropdown", OnSelect = "QueryTeachingMaterialDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="TeachingMaterialName",HeaderText="教材名称", Align=AlignStyle.Center, Width=0.3 } // new BoundFieldColumn { FieldName="TeachingMaterialCode",HeaderText="教材编号", Align=AlignStyle.Center, Width=0.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Hidden("SchoolyearID", Request["SchoolyearID"], new Dictionary { { "data-condition", "dgTMPoolList" }, { "id", "SchoolyearID" } }) @Html.Hidden("SupplierID", Request["SupplierID"], new Dictionary { { "data-condition", "dgTMPoolList" }, { "id", "SupplierID" } })
    @*
  • 教材编号:
  • @Html.ComboGrid(TMCode, new Dictionary { { "data-condition", "dgTMPoolList" } })
  • 教材名称:
  • @Html.ComboGrid(TMName, new Dictionary { { "data-condition", "dgTMPoolList" } })
  • *@
  • @Html.PositionCondition("TeachingMaterial",null)
  • 设置折扣:
  • @Html.TextBox("SetDiscount")
  • 设置数量:
  • @Html.TextBox("SerQty")
  •        
  • 设置
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID" }, new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程编号", Align=AlignStyle.Center, Width=0.06 }, //new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1}, //new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center, Width=0.02 }, new TextBoxColumn { FieldName="OrderQty", HeaderText="数量", Align=AlignStyle.Center, IsRequired=true, Validator=new OnlyNumberValidator(), Width=0.02 ,OnChangedFunc="checkInventoryQty" }, new TextBoxColumn { FieldName="Discount", HeaderText="折扣率", Align=AlignStyle.Center, IsRequired=true, Validator=new OnlyDiscountValidator(), Width=0.03 ,OnChangedFunc="checkInventoryDiscount" }, new TextBoxColumn { FieldName="DiscountPrice", HeaderText="折合价", Align=AlignStyle.Center, IsRequired=true, Validator=new OnlyDiscountValidator(), Width=0.03 ,EnableFieldName="IsEnable" }, new TextBoxColumn { FieldName="MaYang", HeaderText="码洋", Align=AlignStyle.Center, IsRequired=true, Width=0.03 ,EnableFieldName="IsEnable" }, new TextBoxColumn { FieldName="ZongJia", HeaderText="总价", Align=AlignStyle.Center, IsRequired=true, Width=0.03 ,EnableFieldName="IsEnable" }, new BoundFieldColumn { FieldName="IsLateName", HeaderText="是否过期", Align=AlignStyle.Center, Width=0.04 } }, PageSize = 30, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/StockIn/GetStockInByTMList"), ID = "dgTMPoolList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsPostBack = true })