@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions Psop = new ComboGridOptions { TextField = "UnitName", ValueField = "PublishID", ID = "PublishDropdown", Name = "PublishDropdown", OnSelect = "QueryPublishDropdownList", GridOptions = new DataGridOptions { Columns = new List() { // new BoundFieldColumn { FieldName="UnitCode", HeaderText="单位编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UnitName", HeaderText="出版单位", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Publisher/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions Csop = 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 } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition() @Html.Hidden("ExcelType")
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "QuerySchoolYearDropdownList",SelectedValue = @ViewBag.SchoolYearID }, new Dictionary { { "data-condition", "dgTeachersOrderList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList" }, new Dictionary { { "data-condition", "dgTeachersOrderList" } })
  • 课程名称:
  • @Html.ComboGrid(Csop, new Dictionary { { "data-condition", "dgTeachersOrderList" } })
  • 出版单位:
  • @Html.ComboGrid(Psop, new Dictionary { { "data-condition", "dgTeachersOrderList" } })
  • 审核状态:
  • @Html.DropdownList(new DropdownListOptions { Name = "StatusDropdown", ID = "StatusDropdown", BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ET_TeachersOrder).Name), OnSelect = "QueryStatusDropdownList" }, new Dictionary { { "data-condition", "dgTeachersOrderList" } })
教师征订申请列表
@Html.ContextMenuBar("List")
@Html.Hidden("hid_ApprovalStatusName") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachersOrderID"}, new LinkButtonColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center,Handle="TeachersOrderDetail",Width=0.06 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center,Width=0.08 }, //new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center}, new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center,Width=0.1 }, //new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center,Width=0.1 }, //new BoundFieldColumn { FieldName="CoursematerialLevelName", HeaderText="课程级别", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="CoursematerialTypeName", HeaderText="课程科类", Align=AlignStyle.Center,OverflowLength=6,Width=0.02 }, new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center,Width=0.08 }, //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间" }, //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="OrderQty", HeaderText="征订数量", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="OrderUserName", HeaderText="征订人", Align=AlignStyle.Center,Width=0.06 }, new BoundFieldColumn { FieldName="OrderDate", HeaderText="征订日期", Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay,Width=0.05 }, //new BoundFieldColumn { FieldName="OrderDesc", HeaderText="征订说明", Align=AlignStyle.Center ,OverflowLength=6,Width=0.1}, new ApproveStatusColumn { FieldName="ApproveStatusName", TableName="ET_TeachersOrder", IDFieldName="TeachersOrderID", HeaderText="审批状态", Align=AlignStyle.Center ,Width=0.04}, //new BoundFieldColumn { FieldName="ApprovalStatus", HeaderText="审批状态", Align=AlignStyle.Center, IsHidden = true }, //new LinkButtonColumn { FieldName="ApproveStatusName", HeaderText="审核状态", Align=AlignStyle.Center, Handle="ShoAuditStatusView"} }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachersOrder/List"), ID = "dgTeachersOrderList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })