@model EMIS.ViewModel.SupervisionManage.ProjectRecordView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "CollegeDropdown", ID = "CollegeDropdown", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopCollegefalse = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "", Name = "CollegeDropdown", ID = "CollegeDropdown", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions teacher = new ComboGridOptions { TextField = "Name", ValueField = "UserID", OnSelect = "", ID = "StaffDropdown", Name = "StaffDropdown", GridOptions = new DataGridOptions { Columns = new List() { //new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/ListWithNoDataRange"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = true } }; ComboGridOptions teacherfalse = new ComboGridOptions { TextField = "Name", ValueField = "UserID", OnSelect = "", ID = "StaffDropdown", Name = "StaffDropdown", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { //new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = true } }; ComboGridOptions time = new ComboGridOptions { TextField = "Times", ValueField = "CoursesTimeID", Name = "TimeComboGrid", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CoursesTime/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions timefalse = new ComboGridOptions { TextField = "Times", ValueField = "CoursesTimeID", Name = "TimeComboGrid", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CoursesTime/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions course = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", SelectedValue = Model.CoursematerialID, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ } @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.ContextMenuBar("Edit"))
@Html.HiddenFor(x => x.ProjectRecordID) @Html.HiddenFor(x => x.IsChangeAttachment)
@Html.LabelFor(x => x.SchoolyearID) @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }) @Html.LabelFor(x => x.SupervisionTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.SUP_SupervisionType, x => x.SupervisionTypeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "SupervisionTypeSelect" })
@Html.LabelFor(x => x.SupervisionCollegeID): @Html.DropdownListFor((x => x.SupervisionCollegeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SupervisionCollege/Dropdown"), SelectedValue = Model.SupervisionCollegeID }) @Html.Label("督导对象"): @Html.TextBoxFor(x => x.OtherTarget) @Html.ComboGridFor(x => x.UserID, teacher)
*
@Html.LabelFor(x => x.CoursematerialID): @Html.ComboGridFor(x => x.CoursematerialID, course)
*
@Html.LabelFor(x => x.ProjectDate): @Html.TextBoxFor(x => x.ProjectDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnSelect = "ProjectDateChange" })
@Html.LabelFor(x => x.Weekday): @Html.WeekdayDropDownListFor(x => x.Weekday, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect}) @Html.LabelFor(x => x.CoursesTimeID): @Html.ComboGridFor(x => x.CoursesTimeID, time)
@Html.LabelFor(x => x.Location): @Html.TextBoxFor(x => x.Location)
@(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.ContextMenuBar("Edit-Staff")) @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" }, new LinkButtonColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center , Handle="edit" }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeID", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center ,IsHidden=true }, new BoundFieldColumn { FieldName="DepartmentID", HeaderText="教研室", Align=AlignStyle.Center,IsHidden=true }, new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ProjectRecord/TeacherList?projectRecordID=" + Model.ProjectRecordID), IsPostBack = true, ID = "dgTeacherList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
@Html.LabelFor(x => x.TotalScore): @Html.TextBoxFor(x => x.TotalScore)
*
@Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 700, Height = 520 }) @*@Html.TextAreaFor(x => x.Content, new { style = "width: 98%;" })*@
@Html.LabelFor(x => x.Advise):
(字数需大于60)
@Html.RichTextFor(x => x.Advise, new RichTextOptions { Width = 700, Height = 520 }) @*@Html.TextAreaFor(x => x.Advise, new { style = "width: 80%;" })*@
@(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.Button(new ButtonOptions { OnClick = "ProjectRecord_SeletcAdvise()", Icon = ButtonIcon.Search, Text = "快速添加" }))
@Html.Uploader(new uploaderOption { IsEnabled = (Request["isShow"] != "1"), Name = "ProjectRecordAttachment", MainTableID = Model.ProjectRecordID })
}