@using Bowin.Web.Controls.Mvc; @model EMIS.ViewModel.TeachingMaterial.TeachersOrderView @using EMIS.Web.Controls; @{ ViewBag.Title = "Add"; Guid schoolyear = ViewData["SchoolyearID"] == null ? Guid.Empty : new Guid(ViewData["SchoolyearID"].ToString()); ComboGridOptions Psop = new ComboGridOptions { TextField = "UnitName", ValueField = "PublishID", ID = "PublishDropdown", Name = "PublishDropdown", OnSelect = "QueryPublishDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="UnitName", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Publisher/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions CsopName = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", ID = "CourseDropdown", Name = "CourseDropdown", OnSelect = "QueryCourseDropdownList", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), 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 }, // new BoundFieldColumn { FieldName="TeachingMaterialCode",HeaderText="教材编号", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; string orderJsonStr = ViewData["orderJsonStr"] as string; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { Url = "/TeachersOrder/TeachersSave", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) { @Html.Hidden("hid_orderJsonStr")
@*
征订申请信息
*@
@Html.ContextMenuBar("Edit")
@Html.Label("学年学期"): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), TextField = "Text", ValueField = "Value" }, new Dictionary { { "data-condition", "dgTeachingMaterialPoolList" } })
@Html.LabelFor(x => x.OrderDesc): @Html.TextAreaFor(x => x.OrderDesc, new Dictionary { { "style", "width: 390px;" } })
@Html.Label("查询信息"):
  • 教材名称:
  • @Html.ComboGrid(TMName, new Dictionary { { "data-condition", "dgTeachingMaterialPoolList" } })
  • 课程名称:
  • @Html.ComboGrid(CsopName, new Dictionary { { "data-condition", "dgTeachingMaterialPoolList" } })
@Html.Label("信息列表"): @Html.ContextMenuBar("Edit-RoleViewGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID" }, new TextBoxColumn { FieldName="OrderQty", HeaderText="征订数量", Align=AlignStyle.Center, IsRequired=true, Validator=new OnlyNumberValidator(), Width = 0.08}, new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center, Width = 0.08 }, new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center,OverflowLength=28, Width = 0.16 }, new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center,OverflowLength=28, Width = 0.16 }, new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center, Width = 0.14 }, new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center, Width = 0.1}, new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center,OverflowLength=28, Width = 0.14 }, new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center,OverflowLength=28, Width = 0.12 }, new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center, Width = 0.08 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachersOrder/GetTeachingMaterialPoolList"), IsPostBack = true, ID = "dgTeachingMaterialPoolList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}