12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- @using WeApp
- @using WeApp.Authorization
- @using WeApp.Configuration
- @using WeApp.Views.Shared.Modals
- @using WeApp.Views.Shared.SearchForm
- @using WeApp.Views.Shared.Table
- @{
- ViewBag.Title = L("StateTitle");
- string activeMenu = PermissionNames.PagesSystemMgStateMg; //The menu item will be active for this page.
- ViewBag.ActiveMenu = activeMenu;
-
- var table = new TableViewModel(IwbConsts.ApiAppUrl + "States/GetAll", activeMenu, new SearchFormViewModel(new List<SearchItem>()
- {
- new SearchItem("stateName", L("stateName")),
- new SearchItem("tableName", L("tableName")),
- new SearchItem("columnName", L("columnName"))
- })).SetFields(new List<FieldItem>()
- {
- new FieldItem("stateName", L("stateName")),
- new FieldItem("tableName", L("tableName")),
- new FieldItem("columnName",L("columnName")),
- new FieldItem("codeValue", L("codeValue")),
- new FieldItem("displayValue",L("displayValue")),
- });
- }
- @Html.Partial("Table/_Table", table)
- @section modal{
- <!--Main Modal-->
- @{
- var modal = new ModalViewModel(L("state"), new ModalBodyViewModel(new List<Input>()
- {
- new InputHide("id"),
- new Input("stateName", L("stateName")),
- new Input("tableName", L("tableName")),
- new Input("columnName", L("columnName")),
- new Input("codeValue", L("codeValue")),
- new Input("displayValue",L("displayValue")),
- }));
- }
- @Html.Partial("Modals/_Modal", modal)
- @*@Html.Partial("Query/_User", "1:tableName")*@
-
- }
- @section scripts
- {
- @*<script src="~/Content/Plugins/PrintPreView/print-preview.js"></script>*@
- <script type="text/javascript">
- $(function () {
- LoadTable();
- var funs = window.iwbfuns || { none: function () { console.log("No type"); } };
- funs["btnUpdate"] = function () { BtnUpdate({ disabled: "codeValue,tableName,columnName" }); };
- });
- //$('#print').printPreview({
- // printBody: ".table-box",
- // cssUrl: '../../Content/Plugins/bootstrap-3.3.7/css/bootstrap.css,../../Content/Css/Site.css'
- //});
- </script>
- <script id="formatter" type="text/javascript">
- </script>
- }
|