@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "TMPoolListSelector"; 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.PositionCondition("TeachingMaterial",null)
@Html.Hidden("hidIsSelectMax", Request["IsSelectMax"], new Dictionary { { "data-condition", "dgTMPoolList" } })
@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="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=10 }, //new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center, Width=0.06 }, //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center, Width=0.06 }, //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center, Width=0.03 }, new TextBoxColumn { FieldName="Discount", HeaderText="折扣率", Align=AlignStyle.Center, IsRequired=true, Validator=new OnlyDiscountValidator(), OnChangedFunc = "DiscountChange", Width=0.03}, new TextBoxColumn { FieldName="DiscountPrice", HeaderText="折合价",Align=AlignStyle.Center, IsRequired=true, Width=0.03, EnableFieldName="IsEnable" }, new BoundFieldColumn { FieldName="PresentInventory", HeaderText="当前库存量", Align=AlignStyle.Center , Width=0.05 }, new TextBoxColumn { FieldName="OrderQty", HeaderText="数量", Align=AlignStyle.Center, IsRequired=true, Validator=new OnlyNumberValidator(), Width=0.03 }, new BoundFieldColumn { FieldName="IsLateName", HeaderText="是否过期", Align=AlignStyle.Center , Width=0.04 } }, PageSize =50, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/StockOut/GetTeachingMaterialForRefund"), ID = "dgTMPoolList", IsPagination = true, IsPostBack = true, IsShowRowNumbers = true, IsSingleSelect = false })