| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- @using ShwasherSys.Views.Shared.New.Table
- @{
- List<SelectListItem> storeHouses = ViewBag.StoreHouses;
- var tableProductionOrder = new TableViewModel("/api/services/app/Query/QueryProductionOrderDtoByProNo", null, null, "tableProductionOrder")
- .SetFields(new List<FieldItem>()
- {
- new FieldItem("productionOrderNo", "排产单号"),
- new FieldItem("partNo", "零件号"),
- new FieldItem("semiProductName", "名称"),
- new FieldItem("model", "规格"),
- new FieldItem("quantity", "排产数量(千件)"),
- new FieldItem("productionOrderStatus","生产状态",formatter:"ProductionOrderStatusFormatter"),
- new FieldItem("material", "材质"),
- new FieldItem("surfaceColor", "表色"),
- new FieldItem("rigidity", "硬度"),
- new FieldItem("semiProductNo", "半成品编码"),
- }).SetPageArray(10);
- var tableProductStore = new TableViewModel("/api/services/app/Query/QueryViewCurrentProductStoreHouseByProNo", null, null, "tableProductStore")
- .SetFields(new List<FieldItem>()
- {
- new FieldItem("productionOrderNo", "排产单号"),
- new FieldItem("productNo", "成品编码"),
- new FieldItem("productName", "名称"),
- new FieldItem("model", "规格"),
- new FieldItem("quantity", "当前库存数量(千件)"),
- new FieldItem("freezeQuantity", "被冻结数量"),
- new FieldItem("actualQuantity", "可用数量"),
- new FieldItem("storeLocationNo","库位"),
- new FieldItem("material", "材质"),
- new FieldItem("surfaceColor", "表色"),
- new FieldItem("rigidity", "硬度"),
- }).SetPageArray(10);
- var tableSemiStore = new TableViewModel("/api/services/app/Query/QueryViewCurrentSemiStoreHouseByProNo", null, null, "tableSemiStore")
- .SetFields(new List<FieldItem>()
- {
- new FieldItem("productionOrderNo", "排产单号"),
- new FieldItem("semiProductNo", "半成品编码"),
- new FieldItem("semiProductName", "半成品名称"),
- new FieldItem("model", "规格"),
- new FieldItem("actualQuantity", "当前库存数量(千件)"),
- new FieldItem("storeHouseId", "仓库",formatter:"StoreHouseIdFormatter"),
- new FieldItem("freezeQuantity", "被冻结数量"),
- new FieldItem("storeLocationNo","库位"),
- new FieldItem("material", "材质"),
- new FieldItem("surfaceColor", "表色"),
- new FieldItem("rigidity", "硬度"),
- new FieldItem("partNo", "零件号"),
- }).SetPageArray(10);
- }
- <section>
- <div class="modal fade" id="modal_queryProductionStore" role="dialog" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-dialog-centered" role="document">
- <div class="modal-content" style="width: 880px;">
- @Html.Partial("Modals/_ModalHeader", new ShwasherSys.Models.Modal.ModalHeaderViewModel("产品生产库存查询", ""))
- <div class="modal-body container-fluid" style="padding: 0; padding-top: 15px; min-height: 600px;">
- <form class="pr-3 pl-3 form-horizontal" style="padding: 0 10px">
- <div class="form-group-sm row">
- <div class="col-md-12">
- <div class="tool-rc-group">
- </div>
- </div>
- </div>
- <div class="form-group-sm row">
- <div class="col-xs-12" style="padding: 0 5px;">
- <div class="nav-tabs-custom" style="margin-bottom: 5px;">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#productionOrder_tab" data-toggle="tab">排产单</a></li>
- <li><a href="#finishStore_tab" data-toggle="tab">成品库存</a></li>
- <li><a href="#semiStore_tab" data-toggle="tab">半成品库存</a></li>
- </ul>
- <div class="tab-content form-box">
- <div class="tab-pane active" id="productionOrder_tab" style="width: 100%;">
- @Html.Partial("New/Table/_Table", tableProductionOrder)
- </div>
- <div class="tab-pane" id="finishStore_tab" style="width: 100%; height: 70px;">
- @Html.Partial("New/Table/_Table", tableProductStore)
- </div>
- <div class="tab-pane" id="semiStore_tab" style="width: 100%; height: 70px;">
- @Html.Partial("New/Table/_Table", tableSemiStore)
- </div>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- @*@Html.Partial("Modals/_ModalFooter", "0")*@
- </div>
- </div>
- </div>
- </section>
- <script src="~/Views/OrderInfo/js/OrderMg.js"></script>
- <script>
- function StoreHouseIdFormatter(v,r) {
- var name = $("#hide-StoreHouses option[value='" + v + "']").text();
- return '<span class="label label-primary">' + name + '</span>';
- }
- </script>
- <section style="display: none">
- @Html.DropDownList("hide-StoreHouses", storeHouses)
- </section>
|