@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() { 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 } }; }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@*
值班安排信息
*@ @if (Request["isView"] != "1") {
@Html.ContextMenuBar("Edit")
}
@Html.HiddenFor(x => x.DutyID) @* *@
@Html.LabelFor(x => x.CampusID): @Html.DropdownListFor(x => x.CampusID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), OnSelect = "QueryCampusDropdownList" }) @Html.LabelFor(x => x.CollegeID): @Html.DropdownListFor(x => x.CollegeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), OnSelect = "QueryCollegeDropdownList" })
@Html.LabelFor(x => x.UserID): @Html.ComboGridFor(x => x.UserID, cgopGeneralsuser) @Html.LabelFor(x => x.DepartmentName): @Html.DropdownListFor(x => x.DepartmentID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/Department/DepartmentDropdownAllBanid") })
@Html.LabelFor(x => x.DutyTime): @Html.TextBoxFor(x => x.DutyTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.TimesSegment): @Html.DropdownListFor(x => x.TimesSegment, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Activitie/TimesSegmentDropdownListBanid"), TextField = "Text", ValueField = "Value" })
@Html.LabelFor(x => x.StartDate): @Html.TextBoxFor(x => x.StartHour, new { style = "width:65px;" }):@Html.TextBoxFor(x => x.StartMinutes, new { style = "width:65px;" }) @Html.LabelFor(x => x.EndDate): @Html.TextBoxFor(x => x.EndHour, new { style = "width:65px;" }):@Html.TextBoxFor(x => x.EndMinutes, new { style = "width:65px;" })
@Html.LabelFor(x => x.Description): @Html.TextAreaFor(x => x.Description, new { style = "width:90%;" })
}
@section scripts{ }