| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- @using ContractService.Authorization
- @using ContractService.Configuration
- @using ContractService.Views.Shared.Modals
- @using ContractService.Views.Shared.Query
- @using ContractService.Views.Shared.SearchForm
- @using ContractService.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("dd", L("stateName")).SetSearchIcon("query_user","ddd"),
- //new SearchItem("ff", L("stateName")).SetSelectItem("<option value=\"\">000</option><option value=\"4\">111</option><option value=\"3\">222</option>").SetSearchIcon("query_user","fff"),
- 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 mb = new ModalBodyViewModel();
- var inputs = new List<Input>()
- {
- new InputHide("id"),
- new Input("stateName", L("stateName")),
- new Input("tableName", L("tableName")).SetReadonly(),
- new Input("columnName", L("columnName")).SetReadonly(),
- new Input("codeValue", L("codeValue")).SetReadonly(),
- new Input("displayValue", L("displayValue")),
- //new AjaxSelect("e", L("displayValue"),"User","UserName","q_u"),
- };
- mb.SetInputs(inputs);
- var modal = new ModalViewModel(L("state")).SetBody(mb);
- }
- @Html.Partial("Modals/_Modal", modal)
- @*@Html.Partial("Query/_User",new QuerySearchModel("q_u","e").SetOriginField("userName"))*@
- }
- @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();
- //};
- });
- //$('#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>
- }
|