| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- @using ShwasherSys.Authorization.Permissions
- @using ShwasherSys.Models.Layout
- @using ShwasherSys.Models.Modal
- @{
- /**/
- ViewBag.ActiveMenu = PermissionNames.PagesBasicInfoOutFactory; //The menu item will be active for this page.
- ViewBag.Title = "外协加工厂商维护";
- // List<SelectListItem> classification = ViewBag.Classification;
- //var regionInfo = ViewBag.RegionInfo;
- }
- <div class="table-box mr-4 iwb-bootstrap-table">
- @Html.Action("ToolMenu", "Layout", new { pageName = ViewBag.ActiveMenu })
- <table id="table"
- data-url="/api/services/app/OutFactory/GetAll"
- data-striped="true" data-id-field="id" data-unique-id="id"
- data-method="post"
- data-side-pagination="server"
- data-content-type="application/x-www-form-urlencoded; charset=UTF-8"
- data-cache="false"
- data-pagination="true" data-page-size="30" data-page-number="1" data-page-list="[30,50,100,200]" data-pagination-detail-h-align="right" data-pagination-h-align="left"
- data-query-params="QueryParams"
- data-response-handler="ResponseHandler"
- data-click-to-select="true"
- data-single-select="true">
- <thead>
- <tr class="row" id="header">
- <th data-field="state" data-checkbox="true"></th>
- <th data-align="center" data-field="id">编号</th>
- <th data-align="center" data-field="outFactoryName">厂商名称</th>
- <th data-align="center" data-field="linkMan">联系人</th>
- <th data-align="center" data-field="telephone">电话</th>
- <th data-align="center" data-field="address">地址</th>
- <th data-align="center" data-field="fax">传真</th>
- <th data-align="center" data-field="email">邮箱</th>
- </tr>
- </thead>
- </table>
- </div>
- @section modal{
- <section>
- <!--Main Modal-->
- <div class="modal fade" id="modal" role="dialog" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-dialog-centered" role="document">
- <div class="modal-content">
- @Html.Partial("Modals/_ModalHeader", new ModalHeaderViewModel("办公场所"))
- @{
- var inputs = new List<InputViewModel>
- {
- new InputViewModel("id", displayName: "编号"),
- new InputViewModel("outFactoryName", displayName: "厂商名称"),
- new InputViewModel("linkMan", displayName: "联系人").SetNotRequired(),
- new InputViewModel("telephone", displayName: "电话"),
- new InputViewModel("address", displayName: "详细地址"),
- new InputViewModel("email", displayName: "邮箱").SetNotRequired(),
- new InputViewModel("zip", displayName: "邮编").SetNotRequired(),
- new InputViewModel("fax", displayName: "传真").SetNotRequired(),
- new InputViewModel("webSite", displayName: "网址").SetNotRequired(),
- };
- //var specials = new List<SpecialInputModel>();
- }
- @Html.Partial("Modals/_ModalBody", new ModalBodyViewModel(inputs))
- @Html.Partial("Modals/_ModalFooter", "0")
- </div>
- </div>
- </div>
- </section>
- }
- @section scripts
- {
- <script src="~/Content/Plugins/select2/js/select2tree.js"></script>
- @*<script src="~/Content/Plugins/kindeditor/kindeditor-all.js"></script>
- <script src="~/Content/Plugins/kindeditor/lang/zh-CN.js"></script>*@
- <script type="text/javascript">
- $(function () {
- //show完毕前执行
- LoadTable();
- var funs = window.funs || { none: function () { console.log("No type"); } };
- //funs["btnUpdate"] = function () { BtnUpdate({ readonly: "id" }); };
- });
- //function BtnCreate(url) {
- // console.log("Create");
- // abp.ajax({
- // contentType: 'application/x-www-form-urlencoded',
- // url: "/api/services/app/Regions/GetRegionSelectStrs",
- // success: function(res) {
- // $("#regionID").empty().html(res);
- // //var url = $($this).data("url") + "";
- // OpenModal({
- // modaltitle: window.opCreate,
- // //data: { ParentNo: "0" },
- // url: url,
- // select2tree: "regionID"
- // });
- // }
- // });
- //}
- //function BtnUpdate(url) {
- // console.log("Update");
- // var row = $("#table").bootstrapTable("getSelections")[0];
- // if (row) {
- // abp.ajax({
- // contentType: 'application/x-www-form-urlencoded',
- // url: "/api/services/app/Regions/GetRegionSelectStrs",
- // success: function(res) {
- // $("#regionID").empty().html(res);
- // //var url = $($this).data("url") + "";
- // OpenModal({
- // modaltitle: window.opUpdate,
- // data: row,
- // url: url,
- // readonly: "id",
- // select2tree: "regionID"
- // });
- // }
- // });
- // } else {
- // abp.message.warn(abp.localization.localize("ChooseOneToOp"));
- // }
- //}
- </script>
- }
|