123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- @model EMIS.ViewModel.CalendarManage.DutyView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- Layout = "~/Views/Shared/_Layout.cshtml";
- ViewBag.Title = "Edit";
- ComboGridOptions cgopGeneralsuser = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UserID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="StaffCode", HeaderText="工作证号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="值班人名", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- <style type="text/css">
- #dutytable
- {
- width: 100%;
- border: 0px none;
- }
- #dutytable tr
- {
- min-height: 30px;
- }
- </style>
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @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>*@
- @if (Request["isView"] != "1")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.DutyID)
- <table cellpadding="0" cellspacing="0" id="dutytable">
- @* <tr>
- <td>@Html.LabelFor(x => x.CampusID):
- </td>
- <td>@Html.DropdownListFor(x => x.CampusID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), OnSelect = "QueryCampusDropdownList" })
- </td>
- <td>@Html.LabelFor(x => x.CollegeID):
- </td>
- <td>@Html.DropdownListFor(x => x.CollegeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), OnSelect = "QueryCollegeDropdownList" })
- </td>
- </tr>*@
- <tr>
- <td>@Html.LabelFor(x => x.UserID):
- </td>
- <td>@Html.ComboGridFor(x => x.UserID, cgopGeneralsuser)
- </td>
- <td>@Html.LabelFor(x => x.DepartmentName):
- </td>
- <td>@Html.DropdownListFor(x => x.DepartmentID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/Department/DepartmentDropdownAllBanid") })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.DutyTime):
- </td>
- <td>
- @Html.TextBoxFor(x => x.DutyTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- <td>@Html.LabelFor(x => x.TimesSegment):
- </td>
- <td>@Html.DropdownListFor(x => x.TimesSegment, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Activitie/TimesSegmentDropdownListBanid"), TextField = "Text", ValueField = "Value" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StartDate):
- </td>
- <td>@Html.TextBoxFor(x => x.StartHour, new { style = "width:65px;" }):@Html.TextBoxFor(x => x.StartMinutes, new { style = "width:65px;" })
- </td>
- <td>@Html.LabelFor(x => x.EndDate):
- </td>
- <td>@Html.TextBoxFor(x => x.EndHour, new { style = "width:65px;" }):@Html.TextBoxFor(x => x.EndMinutes, new { style = "width:65px;" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Description):
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Description, new { style = "width:90%;" })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- $(function () {
- // load();
- })
- function Duty_Save() {
- $(document.forms[0]).submit();
- }
- // function QueryCampusDropdownList(data) {
- // $("#CollegeID").combobox("select", -1);
- // $("#CollegeID").combobox("reload", "/College/CollegeDropdownListBanid?campusID=" + data.Value + "&bindType=PleaseSelect");
- // }
- // function QueryCollegeDropdownList(data) {
- // $("#DepartmentID").combobox("select", -1);
- // $("#DepartmentID").combobox("reload", "/Department/DepartmentDropdownListBanid?collegeID=" + data.Value + "&bindType=PleaseSelect");
- // }
- // function load() {
- // var campusID = $("input[name='CampusID']").val();
- // $("#CollegeID").combobox("reload", "/College/CollegeDropdownListBanid?campusID=" + campusID + "&bindType=PleaseSelect");
- // var collegeID = $("input[name='CollegeID']").val();
- // $("#DepartmentID").combobox("reload", "/Department/DepartmentDropdownListBanid?collegeID=" + collegeID + "&bindType=PleaseSelect");
- // }
- </script>
- }
|