123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- @model EMIS.ViewModel.TeachingMaterial.StockOutView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.ViewModel;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions Psop = new ComboGridOptions
- {
- TextField = "UnitName",
- ValueField = "PublishID",
- ID = "PublishDropdown",
- Name = "PublishDropdown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="UnitName", Align=AlignStyle.Center, Width=0.1 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Publisher/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- ComboGridOptions cgopuser = new ComboGridOptions
- {
- TextField = "StaffCode",
- ValueField = "StaffCode",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- var stockOutID = Request.Params["stockOutID"];
- var stockOutType = Request.Params["stockOutType"];
- Model.StockOutTypeID = 5;
- }
- @section scripts{
- <script src="~/Scripts/Business/TeachingMaterial/TeacherRetailEdit.js"></script>
- <script type="text/javascript">
- //保存数据
- function TeacherRetail_Save() {
- $("#hid_ActionsType").val("Save"); //保存
- $(document.forms[0]).submit(); //提交表单
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions { Url = "/TeacherRetail/Edit", 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;">@Html.ContextMenuBar("Edit")</div>
- </div>
- <div class="search_list">
- @Html.Hidden("hid_ActionsType")
- @Html.HiddenFor(x => x.StockOutID)
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>
- @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), TextField = "Text", ValueField = "Value" })
- <td>
- @Html.LabelFor(x => x.StockOutTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StockOutType, (x => x.StockOutTypeID), new DropdownListOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StockOutNo):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StockOutNo)
- </td>
- <td>
- @Html.Label("零售对象"):
- </td>
- <td>
- @Html.TextBoxFor(x => x.GetBookNo)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StockOutTime):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StockOutTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
- </td>
- <td>
- @Html.LabelFor(x => x.OutNumber):
- </td>
- <td>
- @Html.TextBoxFor(x => x.OutNumber, new { @readonly = "readonly" })
- </td>
- </tr>
- <tr>
- <td>
- @Html.Label("教材信息"):
- </td>
- <td colspan="3">
- @if (Model.RecordStatus != (int)CF_GeneralPurpose.IsYes)//如果已经提交、那么删除、增加按钮不显示
- {
- @Html.ContextMenuBar("Edit-TeacherRetailViewGrid")
- }
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID" },
- new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.1 },
- //new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=10 },
- //new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center, Width=0.06 },
- //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center, Width=0.06 },
- //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center, Width=0.1 },
- //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center, Width=0.03 },
- new BoundFieldColumn { FieldName="Discount", HeaderText="折扣率",Align=AlignStyle.Center, Width=0.03 },
- new BoundFieldColumn { FieldName="DiscountPrice", HeaderText="折合价",Align=AlignStyle.Center, Width=0.03 },
- new BoundFieldColumn { FieldName="OrderQty", HeaderText="数量", Align=AlignStyle.Center, Width=0.03 },
- new BoundFieldColumn { FieldName="PresentInventory", HeaderText="当前库存量", Align=AlignStyle.Center , Width=0.05 },
- new BoundFieldColumn { FieldName="IsLateName", HeaderText="是否过期", Align=AlignStyle.Center , Width=0.04 }
- },
- PageSize = 30,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/TeacherRetail/GetTMViewList?stockOutID=" + Request.Params["stockOutID"]),
- ID = "dgStockInTMSelectList",
- IsPagination = false,
- IsPostBack = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- MaxHeight = 180
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Desc):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Desc, new Dictionary<string, object> { { "style", "width: 90%;" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|