123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- @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<DataGridColumn>()
- {
- // 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<DataGridColumn>()
- {
- // 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<DataGridColumn>()
- {
- //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<DataGridColumn>()
- {
- //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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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{
- <script src="~/Scripts/Business/SupervisionManage/ProjectRecordEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var isUpdate = "@ViewBag.IsUpdate";
- var evaluation = "@ViewBag.Evaluation";
- </script>
- }
- @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- @(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.ContextMenuBar("Edit"))
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.ProjectRecordID)
- @Html.HiddenFor(x => x.IsChangeAttachment)
- <table cellpadding="0" cellspacing="0" id="educationMissionClassChecktable">
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID)</td>
- <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() })</td>
- <td>@Html.LabelFor(x => x.SupervisionTypeID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.SUP_SupervisionType, x => x.SupervisionTypeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "SupervisionTypeSelect" })</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SupervisionCollegeID):</td>
- <td>@Html.DropdownListFor((x => x.SupervisionCollegeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SupervisionCollege/Dropdown"), SelectedValue = Model.SupervisionCollegeID })</td>
- <td>@Html.Label("督导对象"):</td>
- <td>@Html.TextBoxFor(x => x.OtherTarget) @Html.ComboGridFor(x => x.UserID, teacher)<div id = "userred" style = "color:Red;display:inline"> *</div></td>
-
- </tr>
- <tr>
- <td id = "coursetd">@Html.LabelFor(x => x.CoursematerialID):</td>
- <td id = "coursetd2">@Html.ComboGridFor(x => x.CoursematerialID, course)<div id = "coursered" style = "color:Red;display:inline"> *</div></td>
- <td colspan = "2" id = "coursenull"></td>
- <td>@Html.LabelFor(x => x.ProjectDate):</td>
- <td>@Html.TextBoxFor(x => x.ProjectDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnSelect = "ProjectDateChange" })</td>
-
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Weekday):</td>
- <td>@Html.WeekdayDropDownListFor(x => x.Weekday, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect})</td>
- <td>@Html.LabelFor(x => x.CoursesTimeID):</td>
- <td>@Html.ComboGridFor(x => x.CoursesTimeID, time)</td>
- </tr>
- <tr>
-
- <td>@Html.LabelFor(x => x.Location):</td>
- <td colspan="3">@Html.TextBoxFor(x => x.Location)</td>
- </tr>
- <tr>
- <td>
- <label>督导组成员:</label>
- </td>
- <td colspan="3">
- @(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.ContextMenuBar("Edit-Staff"))
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.TotalScore):</td>
- <td>@Html.TextBoxFor(x => x.TotalScore)<div id = "totalScorered" style = "color:Red;display:inline"> *</div></td>
- <td colspan = "2"></td>
- </tr>
- <tr>
- <td>
- <label>@Html.LabelFor(x => x.Content):<div style = "color:Red">(字数需大于100)</div></label>
- </td>
- <td colspan="3">
- @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 700, Height = 520 })
- @*@Html.TextAreaFor(x => x.Content, new { style = "width: 98%;" })*@
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Advise):<div style = "color:Red">(字数需大于60)</div>
- </td>
- <td colspan="3">
- @Html.RichTextFor(x => x.Advise, new RichTextOptions { Width = 700, Height = 520 })
- @*@Html.TextAreaFor(x => x.Advise, new { style = "width: 80%;" })*@
- <div class="sv" style = "display:inline;float:right; line-height:inherit">@(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.Button(new ButtonOptions { OnClick = "ProjectRecord_SeletcAdvise()", Icon = ButtonIcon.Search, Text = "快速添加" }))</div>
- </td>
- </tr>
- <tr>
- <td>
- <label>附件</label>
- </td>
- <td colspan="3">
- @Html.Uploader(new uploaderOption { IsEnabled = (Request["isShow"] != "1"), Name = "ProjectRecordAttachment", MainTableID = Model.ProjectRecordID })
- </td>
- </tr>
- </table>
- </div>
- }
|