Exemplo n.º 1
0
 public LoginOperGridModel()
 {
     LoginOperGrid = new EntityJQGrid()
     {
         Width   = 1100,
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "vcLoginID",
                 HeaderText = "登录ID",
                 DataType   = typeof(string),
                 PrimaryKey = true,
                 Editable   = true,
                 //EditFieldAttributes = new List<JQGridEditFieldAttribute>{ new JQGridEditFieldAttribute() { Name = "disabled", Value = "disabled" } },
             },
             new JQGridColumn()
             {
                 DataField  = "vcOperName",
                 HeaderText = "操作员名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "vcDeptId",
                 HeaderText = "门店",
                 DataType   = typeof(string),
                 Editable   = true,
                 Width      = 200,
             },
             //new JQGridColumn()
             //{
             //    DataField="vcDeptName",
             //    HeaderText="门店",
             //    DataType=typeof(string),
             //    Searchable=false,
             //    Visible=false,
             //    Exportable=true,
             //    Hidedlg=true,
             //},
             new JQGridColumn()
             {
                 DataField  = "vcLimit",
                 HeaderText = "查看权限",
                 DataType   = typeof(string),
                 Editable   = true
             }
         }
     };
     LoginOperGrid.AddDialogSettings.BottomInfo          = "新增网站操作员时,密码默认为:123456";
     LoginOperGrid.ClientSideEvents.AfterAddDialogShown  = "enableFields";
     LoginOperGrid.ClientSideEvents.AfterEditDialogShown = "disableFields";
 }
Exemplo n.º 2
0
 public OrganizationsGridModel()
 {
     OrganizationsGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1100),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 Viewable = false,
                 Hidedlg  = true,
                 EditActionIconsColumn = true,
                 //EditActionIconsSettings = new EditActionIconsSettings(){ ShowEditIcon=true,ShowDeleteIcon=false},
             },
             new JQGridColumn()
             {
                 DataField  = "ID",
                 PrimaryKey = true,
                 Visible    = false,
                 DataType   = typeof(string),
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField                = "Code",
                 HeaderText               = "编码",
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
                 DataType = typeof(string)
             },
             new JQGridColumn()
             {
                 DataField                = "Name",
                 HeaderText               = "名称",
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
                 DataType = typeof(string)
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 Editable   = true,
                 DataType   = typeof(string)
             }
         },
     };
     OrganizationsGrid.SortSettings.InitialSortColumn = "Code";
 }
Exemplo n.º 3
0
 public WarehouseDeptGridModel()
 {
     WarehouseDeptGrid = new EntityJQGrid()
     {
         Width   = 1100,
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Dept",
                 HeaderText = "门店",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "门店",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Warehouse",
                 HeaderText = "配料仓",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "WarehouseName",
                 HeaderText = "配料仓",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
         }
     };
 }
Exemplo n.º 4
0
        public WarehouseInventoryGridModel()
        {
            WarehouseInventoryGrid = new EntityJQGrid()
            {
                Width   = 1100,
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        DataField  = "Id",
                        DataType   = typeof(Guid),
                        PrimaryKey = true,
                        Visible    = false,
                        Searchable = false,
                        Hidedlg    = true,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "Warehouse",
                        HeaderText = "仓库",
                        DataType   = typeof(Guid),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "WarehouseName",
                        HeaderText = "仓库",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Inventory",
                        HeaderText = "存货",
                        DataType   = typeof(Guid),
                        Editable   = true,
                        DataInit   = "InventoryColumnDataInit",
                    },
                    new JQGridColumn()
                    {
                        DataField  = "InventoryName",
                        HeaderText = "存货",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                    },
                }
            };
            WarehouseInventoryGrid.EditDialogSettings.Width = 450;
            WarehouseInventoryGrid.AddDialogSettings.Width  = 450;
        }
Exemplo n.º 5
0
 public SysParaSetGridModel()
 {
     SysParaSetGrid = new EntityJQGrid()
     {
         Width   = 1100,
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(int),
                 PrimaryKey = true,
                 Visible    = false,
             },
             new JQGridColumn()
             {
                 DataField  = "vcCommCode",
                 HeaderText = "参数值",
                 DataType   = typeof(string),
                 Editable   = true,
                 //EditFieldAttributes=new List<JQGridEditFieldAttribute>() { new JQGridEditFieldAttribute() { Name = "disabled", Value = "disabled" } },
             },
             new JQGridColumn()
             {
                 DataField  = "vcCommName",
                 HeaderText = "参数名称",
                 DataType   = typeof(string),
                 Editable   = true,
                 //EditFieldAttributes=new List<JQGridEditFieldAttribute>() { new JQGridEditFieldAttribute() { Name = "disabled", Value = "disabled" } },
             },
             new JQGridColumn()
             {
                 DataField  = "vcCommSign",
                 HeaderText = "参数类型",
                 DataType   = typeof(string),
                 Editable   = true,
                 //EditFieldAttributes=new List<JQGridEditFieldAttribute>() { new JQGridEditFieldAttribute() { Name = "disabled", Value = "disabled" } },
             },
             new JQGridColumn()
             {
                 DataField  = "vcComments",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true,
             },
         }
     };
 }
Exemplo n.º 6
0
 public PeriodGridModel()
 {
     PeriodGrid = new EntityJQGrid()
     {
         Width   = 1100,
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Hidedlg = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "BeginDate",
                 HeaderText = "开始日期",
                 DataType   = typeof(DateTime),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "EndDate",
                 HeaderText = "结束日期",
                 DataType   = typeof(DateTime),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Memo",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             },
         }
     };
 }
Exemplo n.º 7
0
        public RoleGridModel()
        {
            RoleGrid = new EntityJQGrid();
            List <JQGridColumn> columns = new List <JQGridColumn>()
            {
                new JQGridColumn()
                {
                    Viewable = false,
                    Hidedlg  = true,
                    EditActionIconsColumn   = true,
                    EditActionIconsSettings = new EditActionIconsSettings()
                    {
                        ShowEditIcon = true, ShowDeleteIcon = true
                    },
                },
                new JQGridColumn()
                {
                    DataField  = "RoleId",
                    PrimaryKey = true,
                    Visible    = false,
                    Searchable = false,
                    Hidedlg    = true,
                },
                new JQGridColumn()
                {
                    DataField                = "RoleName",
                    HeaderText               = "角色名",
                    DataType                 = typeof(string),
                    Editable                 = true,
                    EditDialogFieldSuffix    = "(*)",
                    EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                    {
                        new RequiredValidator()
                    }
                },
                new JQGridColumn()
                {
                    DataField                = "Description",
                    HeaderText               = "描述",
                    DataType                 = typeof(string),
                    Editable                 = true,
                    EditDialogFieldSuffix    = "(*)",
                    EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                    {
                        new RequiredValidator()
                    }
                }
            };

            RoleGrid.Columns = columns;
            RoleGrid.Width   = Unit.Pixel(1100);
        }
Exemplo n.º 8
0
        public DeptOperManageGridModel()
        {
            DeptOperManageGrid = new EntityJQGrid()
            {
                Width   = 1100,
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        EditActionIconsColumn = true,
                        Viewable = false,
                        Hidedlg  = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "vcOperID",
                        HeaderText = "客户端操作员编号",
                        DataType   = typeof(string),
                        PrimaryKey = true,
                        Editable   = true,
                        Width      = 200,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "vcOperName",
                        HeaderText = "客户端操作员名称",
                        DataType   = typeof(string),
                        Editable   = true,
                        Width      = 200,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "vcDeptId",
                        HeaderText = "门店",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    //new JQGridColumn()
                    //{
                    //    DataField="DeptName",
                    //    HeaderText="门店",
                    //    DataType=typeof(string),
                    //    Searchable=false,
                    //    Visible=false,
                    //    Exportable=true,
                    //    Hidedlg=true,
                    //},

                    new JQGridColumn()
                    {
                        DataField  = "vcLimit",
                        HeaderText = "权限",
                        DataType   = typeof(string),
                        Editable   = true
                    },
                    new JQGridColumn()
                    {
                        DataField  = "vcActiveFlag",
                        HeaderText = "激活标志",
                        DataType   = typeof(string),
                        Editable   = true
                    },
                    new JQGridColumn()
                    {
                        DataField  = "vcPwdBeginFlag",
                        HeaderText = "密码初始化标志",
                        DataType   = typeof(string),
                        Editable   = true
                    },
                    new JQGridColumn()
                    {
                        DataField  = "IsDiscount",
                        HeaderText = "是否折扣",
                        DataType   = typeof(bool),
                        Editable   = true
                    },
                }
            };
            DeptOperManageGrid.AddDialogSettings.BottomInfo          = "新增客户端操作员时,密码默认为:000000";
            DeptOperManageGrid.EditDialogSettings.BottomInfo         = "密码初始化将会把客户端操作员登录的密码初始化为:000000";
            DeptOperManageGrid.HierarchySettings.HierarchyMode       = HierarchyMode.Parent;
            DeptOperManageGrid.ClientSideEvents.SubGridRowExpanded   = "showSubGrid";
            DeptOperManageGrid.ClientSideEvents.AfterAddDialogShown  = "enableFields";
            DeptOperManageGrid.ClientSideEvents.AfterEditDialogShown = "disableFields";

            FuncGrid = new JQGrid()
            {
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        Width = 100,
                        EditActionIconsColumn   = true,
                        EditActionIconsSettings = new EditActionIconsSettings()
                        {
                            ShowEditIcon = true, ShowDeleteIcon = false
                        },
                    },
                    //new JQGridColumn()
                    //{
                    //    DataField="cnvcFuncAddress",
                    //    DataType=typeof(string),
                    //    Visible=false,
                    //    PrimaryKey=true,
                    //},
                    new JQGridColumn()
                    {
                        DataField  = "IsInRole",
                        HeaderText = "选择",
                        DataType   = typeof(bool),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "cnvcFuncName",
                        HeaderText = "功能名称",
                        DataType   = typeof(string),
                        PrimaryKey = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "cnvcFuncParentName",
                        HeaderText = "菜单名称",
                        DataType   = typeof(string),
                        //EditFieldAttributes=new List<JQGridEditFieldAttribute>() { new JQGridEditFieldAttribute() { Name = "disabled", Value = "disabled" } },
                    },
                }
            };
            FuncGrid.AutoWidth = false;
            FuncGrid.Width     = 600;
            FuncGrid.ToolBarSettings.ShowEditButton    = true;
            FuncGrid.ToolBarSettings.ShowRefreshButton = true;
            FuncGrid.ToolBarSettings.ShowSearchButton  = true;
            FuncGrid.HierarchySettings.HierarchyMode   = HierarchyMode.Child;
        }
Exemplo n.º 9
0
 public UnitOfMeasureGridModel()
 {
     UnitOfMeasuresGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1100),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Group",
                 HeaderText = "计量单位组",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "GroupName",
                 HeaderText = "计量单位组",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Rate",
                 HeaderText = "换算率",
                 DataType   = typeof(decimal),
                 Editable   = true,
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new NumberValidator(),
                 },
                 Formatter = new DigitFormatter()
             },
             new JQGridColumn()
             {
                 DataField  = "IsMain",
                 HeaderText = "是否主计量单位",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             },
             new JQGridColumn()
             {
                 DataField              = "UOMType",
                 DataType               = typeof(int),
                 Visible                = false,
                 Searchable             = false,
                 SearchToolBarOperation = SearchOperation.IsEqualTo,
                 Hidedlg                = true,
             }
         }
     };
 }
Exemplo n.º 10
0
 public SitemapGridModel()
 {
     SitemapGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
                 PrimaryKey = true
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Title",
                 HeaderText = "标题",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Description",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Controller",
                 HeaderText = "控制器",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Action",
                 HeaderText = "方法",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "ParaId",
                 HeaderText = "参数",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Url",
                 HeaderText = "路径",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "ParentCode",
                 HeaderText = "上级编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "IsAuthorize",
                 HeaderText = "是否控制",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "IsMenu",
                 HeaderText = "是否菜单",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "IsClient",
                 HeaderText = "是否客户端",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Sort",
                 HeaderText = "排序",
                 DataType   = typeof(int),
                 Editable   = true,
             },
         }
     };
 }
Exemplo n.º 11
0
 public RoomGridModel()
 {
     RoomGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1100),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 HeaderText = "门店",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "门店",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Status",
                 HeaderText = "状态",
                 DataType   = typeof(int),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "StatusName",
                 HeaderText = "状态",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             }
         }
     };
 }
Exemplo n.º 12
0
 public RechargeDonationGridModel()
 {
     RechargeDonationGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1100),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 HeaderText = "门店",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "门店",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "BeginAmount",
                 HeaderText = "起始金额",
                 DataType   = typeof(decimal),
                 Editable   = true,
                 Formatter  = new DigitFormatter(),
             },
             new JQGridColumn()
             {
                 DataField                = "DonationRatio",
                 HeaderText               = "比例",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(%)(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                     new NumberValidator()
                 },
                 Formatter = new DigitFormatter(),
             },
             new JQGridColumn()
             {
                 DataField  = "DonationTopLimit",
                 HeaderText = "上限",
                 DataType   = typeof(decimal),
                 Editable   = true,
                 Formatter  = new DigitFormatter(),
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             }
         }
     };
 }
Exemplo n.º 13
0
 public GoodsGridModel()
 {
     GoodsGrid = new EntityJQGrid()
     {
         Width   = 1100,
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     onEdit = "beforeInlineEdit"
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "vcGoodsID",
                 HeaderText = "商品编号",
                 DataType   = typeof(string),
                 PrimaryKey = true,
             },
             new JQGridColumn()
             {
                 DataField  = "vcGoodsName",
                 HeaderText = "商品名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "vcGoodsType",
                 HeaderText = "商品类别",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "vcSpell",
                 HeaderText = "拼音简写",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "nPrice",
                 HeaderText = "单价",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "cNewFlag",
                 HeaderText = "是否推荐新品",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField    = "iIgValue",
                 HeaderText   = "兑换分值",
                 DataType     = typeof(decimal),
                 Editable     = true,
                 DefaultValue = "-1",
             },
             //new JQGridColumn()
             //{
             //    DataField="vcComments",
             //    HeaderText="是否折扣",
             //    DataType=typeof(string),
             //    Editable=true,
             //}
         }
     };
 }
Exemplo n.º 14
0
 public DeptGridModel()
 {
     DeptsGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1100),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 Viewable = false,
                 Hidedlg  = true,
                 EditActionIconsColumn = true,
                 //EditActionIconsSettings = new EditActionIconsSettings(){ ShowEditIcon=true,ShowDeleteIcon=false},
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 HeaderText               = "编码",
                 DataField                = "DeptCode",
                 Editable                 = true,
                 DataType                 = typeof(string),
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             new JQGridColumn()
             {
                 HeaderText               = "名称",
                 DataField                = "DeptName",
                 Editable                 = true,
                 DataType                 = typeof(string),
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             new JQGridColumn()
             {
                 HeaderText = "地址",
                 DataField  = "Address",
                 DataType   = typeof(string),
                 Editable   = true
             },
             new JQGridColumn()
             {
                 HeaderText = "描述",
                 DataField  = "Comment",
                 DataType   = typeof(string),
                 Editable   = true
             },
             new JQGridColumn()
             {
                 HeaderText = "是否门店单价",
                 DataField  = "IsDeptPrice",
                 DataType   = typeof(bool),
                 Editable   = true,
                 Width      = 100,
             },
             new JQGridColumn()
             {
                 HeaderText = "部门",
                 DataField  = "OrganizationId",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 HeaderText = "部门",
                 DataField  = "OrganizationName",
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
                 DataType   = typeof(string),
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 HeaderText = "门店类型",
                 DataField  = "DeptType",
                 DataType   = typeof(int),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 HeaderText = "门店类型",
                 DataField  = "DeptTypeName",
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
                 DataType   = typeof(string),
                 Hidedlg    = true,
             },
         }
     };
 }
Exemplo n.º 15
0
        public WRInventoryGridModel()
        {
            InventoryGrid = new EntityJQGrid()
            {
                Width   = Unit.Pixel(1600),
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        DataField  = "Id",
                        DataType   = typeof(Guid),
                        PrimaryKey = true,
                        Visible    = false,
                        Searchable = false,
                        Hidedlg    = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Code",
                        HeaderText = "编码",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Name",
                        HeaderText = "名称",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "EnglishName",
                        HeaderText = "英文名",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Category",
                        HeaderText = "存货分类",
                        DataType   = typeof(Guid),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "CategoryName",
                        HeaderText = "存货分类",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                        Hidedlg    = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "UnitOfMeasure",
                        HeaderText = "计量单位",
                        DataType   = typeof(string),
                        Editable   = true
                    },
                    new JQGridColumn()
                    {
                        DataField  = "UnitOfMeasureName",
                        HeaderText = "计量单位",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Hidedlg    = true,
                        Exportable = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "SalePrice",
                        HeaderText = "默认单价",
                        DataType   = typeof(decimal),
                        Editable   = true,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "SalePoint",
                        HeaderText = "默认积分",
                        DataType   = typeof(decimal),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "IsRecommend",
                        HeaderText = "是否推荐",
                        DataType   = typeof(bool),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ImageFileName",
                        HeaderText = "图片文件名",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Specs",
                        HeaderText = "规格型号",
                        DataType   = typeof(string),
                        Editable   = true
                    },
                    new JQGridColumn()
                    {
                        DataField  = "IsDonate",
                        HeaderText = "是否赠送商品",
                        DataType   = typeof(bool),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Comment",
                        HeaderText = "描述",
                        DataType   = typeof(string),
                        Editable   = true
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Stars",
                        HeaderText = "评分",
                        DataType   = typeof(int),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Feature",
                        HeaderText = "产品特点",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Dosage",
                        HeaderText = "产品配料",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Palette",
                        HeaderText = "建议搭配",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Printer",
                        HeaderText = "打印机",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "EnglishIntroduce",
                        HeaderText = "英文介绍",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "EnglishDosage",
                        HeaderText = "英文配料",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "IsPackage",
                        HeaderText = "是否套餐",
                        DataType   = typeof(bool),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "IsInvalid",
                        HeaderText = "是否失效",
                        DataType   = typeof(bool),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Sort",
                        HeaderText = "排序",
                        DataType   = typeof(int),
                        Editable   = true,
                        Formatter  = new IntegerFormatter(),
                    },
                    new JQGridColumn()
                    {
                        DataField              = "InvType",
                        DataType               = typeof(int),
                        Visible                = false,
                        Searchable             = false,
                        SearchToolBarOperation = SearchOperation.IsEqualTo,
                        Hidedlg                = true,
                    },
                }
            };

            InventoryGrid.ToolBarSettings.CustomButtons.Add(new JQGridToolBarButton()
            {
                Text       = "正常存货",
                ToolTip    = "正常存货",
                ButtonIcon = "ui-icon-search",
                OnClick    = "normalInv",
                Position   = ToolBarButtonPosition.Last,
            });
            InventoryGrid.ToolBarSettings.CustomButtons.Add(new JQGridToolBarButton()
            {
                Text       = "失效存货",
                ToolTip    = "失效存货",
                ButtonIcon = "ui-icon-search",
                OnClick    = "invalidInv",
                Position   = ToolBarButtonPosition.Last,
            });
            InventoryGrid.ToolBarSettings.CustomButtons.Add(new JQGridToolBarButton()
            {
                Text       = "批量删除失效图片",
                ToolTip    = "批量删除失效图片",
                ButtonIcon = "ui-icon-trash",
                OnClick    = "deleteImg",
                Position   = ToolBarButtonPosition.Last,
            });
        }
Exemplo n.º 16
0
 public CDInventoryGridModel()
 {
     InventoryGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1400),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Category",
                 HeaderText = "存货分类",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "CategoryName",
                 HeaderText = "存货分类",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
                 Exportable = true,
             },
             new JQGridColumn()
             {
                 DataField  = "UnitOfMeasure",
                 HeaderText = "计量单位",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "UnitOfMeasureName",
                 HeaderText = "计量单位",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
                 Exportable = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalePrice",
                 HeaderText = "默认单价",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalePrice0",
                 HeaderText = "大杯单价",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalePrice1",
                 HeaderText = "中杯单价",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalePrice2",
                 HeaderText = "小杯单价",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalePoint",
                 HeaderText = "默认积分",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalePoint0",
                 HeaderText = "大杯积分",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalePoint1",
                 HeaderText = "中杯积分",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalePoint2",
                 HeaderText = "小杯积分",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Specs",
                 HeaderText = "规格型号",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             //new JQGridColumn()
             //{
             //    DataField="Printer",
             //    HeaderText="打印机",
             //    DataType=typeof(string),
             //    Editable=true,
             //},
             new JQGridColumn()
             {
                 DataField  = "IsDonate",
                 HeaderText = "是否赠送商品",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "IsInvalid",
                 HeaderText = "是否失效",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField              = "InvType",
                 DataType               = typeof(int),
                 Visible                = false,
                 Searchable             = false,
                 Hidedlg                = true,
                 SearchToolBarOperation = SearchOperation.IsEqualTo,
             },
         }
     };
     InventoryGrid.ToolBarSettings.CustomButtons.Add(new JQGridToolBarButton()
     {
         Text       = "正常存货",
         ToolTip    = "正常存货",
         ButtonIcon = "ui-icon-search",
         OnClick    = "normalInv",
         Position   = ToolBarButtonPosition.Last,
     });
     InventoryGrid.ToolBarSettings.CustomButtons.Add(new JQGridToolBarButton()
     {
         Text       = "失效存货",
         ToolTip    = "失效存货",
         ButtonIcon = "ui-icon-search",
         OnClick    = "invalidInv",
         Position   = ToolBarButtonPosition.Last,
     });
 }
Exemplo n.º 17
0
 public InvPriceGridModel()
 {
     InvPriceGrid = new EntityJQGrid()
     {
         Height  = Unit.Percentage(100),
         Width   = Unit.Pixel(1200),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "批号",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "年份",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "InvId",
                 HeaderText = "存货",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "InvName",
                 HeaderText = "存货名称",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalePrice",
                 HeaderText = "单价",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalePoint",
                 HeaderText = "积分",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "IsInvalid",
                 HeaderText = "是否失效",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField              = "InvType",
                 DataType               = typeof(int),
                 Visible                = false,
                 Searchable             = false,
                 SearchToolBarOperation = SearchOperation.IsEqualTo,
                 Hidedlg                = true,
             },
         }
     };
 }
Exemplo n.º 18
0
 public CardTypeGridModel()
 {
     CardTypeGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1100),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "IsMoney",
                 HeaderText = "不允许现金消费",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "IsVirtual",
                 HeaderText = "是否虚拟卡",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "CardNoRule",
                 HeaderText = "卡号规则",
                 DataType   = typeof(string),
                 Editable   = true
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             },
         }
     };
 }
Exemplo n.º 19
0
 public UserGridModel()
 {
     UserGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1400),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 Viewable = false,
                 Hidedlg  = true,
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = false
                 },
             },
             new JQGridColumn
             {
                 DataField  = "UserId",
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn
             {
                 DataField  = "UserName",
                 Width      = 100,
                 HeaderText = "用户名",
                 DataType   = typeof(string)
             },
             new JQGridColumn
             {
                 DataField                = "FullName",
                 Editable                 = true,
                 Width                    = 100,
                 HeaderText               = "姓名",
                 DataType                 = typeof(string),
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 }
             },
             new JQGridColumn
             {
                 DataField                = "DeptId",
                 DataType                 = typeof(Guid),
                 EditDialogFieldSuffix    = "(*)",
                 Editable                 = true,
                 HeaderText               = "门店",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             new JQGridColumn
             {
                 DataField  = "DeptName",
                 HeaderText = "门店",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn
             {
                 DataField  = "IsApproved",
                 HeaderText = "是否启用",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn
             {
                 DataField  = "IsLockedOut",
                 HeaderText = "是否锁定",
                 DataType   = typeof(bool)
             },
             new JQGridColumn()
             {
                 DataField  = "AuthorityType",
                 HeaderText = "权限类型",
                 DataType   = typeof(int),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "AuthorityTypeName",
                 HeaderText = "权限类型",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn
             {
                 DataField  = "LastActivityDate",
                 HeaderText = "最近活动日期",
                 DataType   = typeof(DateTime),
             },
             new JQGridColumn
             {
                 DataField  = "LastLoginDate",
                 HeaderText = "最近的登录日期",
                 DataType   = typeof(DateTime),
             },
             new JQGridColumn
             {
                 DataField  = "CreateDate",
                 HeaderText = "创建日期",
                 DataType   = typeof(DateTime),
             }
         }
     };
 }
Exemplo n.º 20
0
 public MonthBalanceGridModel()
 {
     MonthBalanceGrid = new EntityJQGrid()
     {
         Width   = 1300,
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Viewable   = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "MBDate",
                 HeaderText = "单据日期",
                 DataType   = typeof(DateTime),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Period",
                 HeaderText = "周期",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "PeriodCode",
                 HeaderText = "周期",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "WhId",
                 HeaderText = "仓库",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "WhName",
                 HeaderText = "仓库",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Salesman",
                 HeaderText = "经手人",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "SalesmanName",
                 HeaderText = "经手人",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
             },
             new JQGridColumn()
             {
                 DataField  = "IsVerify",
                 HeaderText = "审核",
                 DataType   = typeof(bool),
             },
             new JQGridColumn()
             {
                 DataField  = "Memo",
                 HeaderText = "备注",
                 DataType   = typeof(string),
                 Editable   = true,
                 Searchable = true,
             },
         }
     };
     MonthBalanceGrid.ToolBarSettings.CustomButtons = new List <JQGridToolBarButton>()
     {
         new JQGridToolBarButton()
         {
             Position   = ToolBarButtonPosition.Last,
             ToolTip    = "审核",
             Text       = "<span class='ui-pg-button-text'>审核</span>",
             OnClick    = "customButtonClicked",
             ButtonIcon = "ui-icon-check"
         },
         new JQGridToolBarButton()
         {
             Position   = ToolBarButtonPosition.Last,
             ToolTip    = "弃审",
             Text       = "<span class='ui-pg-button-text'>弃审</span>",
             OnClick    = "customButtonClicked2",
             ButtonIcon = "ui-icon-close"
         }
     };
 }
Exemplo n.º 21
0
 public CardLevelGridModel()
 {
     CardLevelGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1100),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 HeaderText = "门店",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "门店",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField                = "Discount",
                 HeaderText               = "折扣",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(%)(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                     new NumberValidator()
                 },
                 Formatter = new DigitFormatter(),
             },
             new JQGridColumn()
             {
                 DataField  = "BeginLetter",
                 HeaderText = "卡号首字母",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Point",
                 HeaderText = "积分",
                 DataType   = typeof(decimal),
                 Editable   = true,
                 Formatter  = new DigitFormatter(),
             },
             new JQGridColumn()
             {
                 DataField  = "IsDefault",
                 HeaderText = "是否默认",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             }
         }
     };
 }
Exemplo n.º 22
0
        public STInventoryGridModel()
        {
            InventoryGrid = new EntityJQGrid()
            {
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        DataField  = "Id",
                        DataType   = typeof(Guid),
                        PrimaryKey = true,
                        Visible    = false,
                        Searchable = false,
                        Hidedlg    = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Code",
                        HeaderText = "编码",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 1,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Name",
                        HeaderText = "名称",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 2,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Category",
                        HeaderText = "存货分类",
                        DataType   = typeof(Guid),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 3,
                        Visible = false,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "CategoryName",
                        HeaderText = "存货分类",
                        DataType   = typeof(string),
                        Editable   = false,
                        Searchable = false,
                        Exportable = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "MeasurementUnitGroup",
                        HeaderText = "计量单位组",
                        DataType   = typeof(Guid),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 4,
                        Visible = false,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "MeasurementUnitGroupName",
                        HeaderText = "计量单位组",
                        DataType   = typeof(string),
                        Editable   = false,
                        Searchable = false,
                        Exportable = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "MainUnit",
                        HeaderText = "主计量单位",
                        DataType   = typeof(Guid),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 5,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "MainUnitName",
                        HeaderText = "主计量单位",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                        Hidedlg    = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "StockUnit",
                        HeaderText = "库存单位",
                        DataType   = typeof(Guid),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 6,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "StockUnitName",
                        HeaderText = "库存单位",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                        Hidedlg    = true,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "Specs",
                        HeaderText = "规格型号",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 7,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "IsInvalid",
                        HeaderText = "是否失效",
                        DataType   = typeof(bool),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 8,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "Comment",
                        HeaderText = "描述",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 9,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "IsSale",
                        HeaderText = "是否零售",
                        DataType   = typeof(bool),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 10,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ImageFileName",
                        HeaderText = "图片文件名",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 1,
                        EditDialogRowPosition    = 11,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "HighStock",
                        HeaderText = "最高库存",
                        DataType   = typeof(decimal),
                        Editable   = true,
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new NumberValidator()
                        },
                        Formatter = new DigitFormatter(),
                        EditDialogColumnPosition = 2,
                        EditDialogRowPosition    = 1,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "LowStock",
                        HeaderText = "最低库存",
                        DataType   = typeof(decimal),
                        Editable   = true,
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new NumberValidator()
                        },
                        Formatter = new DigitFormatter(),
                        EditDialogColumnPosition = 2,
                        EditDialogRowPosition    = 2,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "SecurityStock",
                        HeaderText = "安全库存",
                        DataType   = typeof(decimal),
                        Editable   = true,
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new NumberValidator()
                        },
                        Formatter = new DigitFormatter(),
                        EditDialogColumnPosition = 2,
                        EditDialogRowPosition    = 3,
                    },

                    //new JQGridColumn()
                    //{
                    //    DataField="LastCheckDate",
                    //    HeaderText="上次盘点日期",
                    //    DataType=typeof(DateTime),
                    //    Editable=true,
                    //    EditDialogColumnPosition=2,
                    //    EditDialogRowPosition=4,
                    //},
                    //new JQGridColumn()
                    //{
                    //    DataField="CheckCycle",
                    //    HeaderText="盘点周期单位",
                    //    DataType=typeof(int),
                    //    Editable=true,
                    //    EditDialogColumnPosition=2,
                    //    EditDialogRowPosition=5,
                    //},
                    //new JQGridColumn()
                    //{
                    //    DataField="CheckCycleName",
                    //    HeaderText="盘点周期单位",
                    //    DataType=typeof(string),
                    //    Visible=false,
                    //    Searchable=false,
                    //    Exportable=true,
                    //    Hidedlg=true,
                    //},
                    //new JQGridColumn()
                    //{
                    //    DataField="SomeDay",
                    //    HeaderText="每天/周/月第()天",
                    //    DataType=typeof(int),
                    //    Editable=true,
                    //    EditClientSideValidators = new List<JQGridEditClientSideValidator>(){new NumberValidator()},
                    //    EditDialogColumnPosition=2,
                    //    EditDialogRowPosition=6,
                    //},
                    new JQGridColumn()
                    {
                        DataField  = "EarlyWarningDay",
                        HeaderText = "预警天数",
                        DataType   = typeof(int),
                        Editable   = true,
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new NumberValidator()
                        },
                        EditDialogColumnPosition = 2,
                        EditDialogRowPosition    = 4,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ShelfLife",
                        HeaderText = "保质期",
                        DataType   = typeof(int),
                        Editable   = true,
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new NumberValidator()
                        },
                        EditDialogColumnPosition = 2,
                        EditDialogRowPosition    = 5,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ShelfLifeType",
                        HeaderText = "保质期单位",
                        DataType   = typeof(int),
                        Editable   = true,
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new NumberValidator()
                        },
                        EditDialogColumnPosition = 2,
                        EditDialogRowPosition    = 6,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ShelfLifeTypeName",
                        HeaderText = "保质期单位",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                        Hidedlg    = true,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "UnitOfMeasure",
                        HeaderText = "销售单位",
                        DataType   = typeof(Guid),
                        Editable   = true,
                        EditDialogColumnPosition = 3,
                        EditDialogRowPosition    = 1,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "UnitOfMeasureName",
                        HeaderText = "销售单位",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                        Hidedlg    = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "SalePrice",
                        HeaderText = "零售单价",
                        DataType   = typeof(decimal),
                        Editable   = true,
                        EditDialogColumnPosition = 3,
                        EditDialogRowPosition    = 2,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "SalePoint",
                        HeaderText = "零售积分",
                        DataType   = typeof(decimal),
                        Editable   = true,
                        EditDialogColumnPosition = 3,
                        EditDialogRowPosition    = 3,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Printer",
                        HeaderText = "打印机",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 3,
                        EditDialogRowPosition    = 4,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "IsDonate",
                        HeaderText = "是否赠送商品",
                        DataType   = typeof(bool),
                        Editable   = true,
                        EditDialogColumnPosition = 3,
                        EditDialogRowPosition    = 5,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "IsPackage",
                        HeaderText = "是否套餐",
                        DataType   = typeof(bool),
                        Editable   = true,
                        EditDialogColumnPosition = 3,
                        EditDialogRowPosition    = 6,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "IsRecommend",
                        HeaderText = "是否推荐",
                        DataType   = typeof(bool),
                        Editable   = true,
                        EditDialogColumnPosition = 4,
                        EditDialogRowPosition    = 1,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "Sort",
                        HeaderText = "排序",
                        DataType   = typeof(int),
                        Editable   = true,
                        Formatter  = new IntegerFormatter(),
                        EditDialogColumnPosition = 4,
                        EditDialogRowPosition    = 2,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Stars",
                        HeaderText = "评分",
                        DataType   = typeof(int),
                        Editable   = true,
                        EditDialogColumnPosition = 4,
                        EditDialogRowPosition    = 3,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Feature",
                        HeaderText = "产品特点",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 4,
                        EditDialogRowPosition    = 4,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Dosage",
                        HeaderText = "产品配料",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 4,
                        EditDialogRowPosition    = 5,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Palette",
                        HeaderText = "建议搭配",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 4,
                        EditDialogRowPosition    = 6,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "EnglishName",
                        HeaderText = "英文名",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 4,
                        EditDialogRowPosition    = 7,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "EnglishIntroduce",
                        HeaderText = "英文介绍",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 4,
                        EditDialogRowPosition    = 8,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "EnglishDosage",
                        HeaderText = "英文配料",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 4,
                        EditDialogRowPosition    = 9,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "Karat",
                        HeaderText = "含量",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 5,
                        EditDialogRowPosition    = 1,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "MetalWeight",
                        HeaderText = "金属重量",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 5,
                        EditDialogRowPosition    = 2,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Jewelweight",
                        HeaderText = "宝石重量",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 5,
                        EditDialogRowPosition    = 3,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "TotalWeight",
                        HeaderText = "总重量",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 5,
                        EditDialogRowPosition    = 4,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "QTY",
                        HeaderText = "数量",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 5,
                        EditDialogRowPosition    = 5,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "OrderNo",
                        HeaderText = "订货号",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 5,
                        EditDialogRowPosition    = 6,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "VendorSpec",
                        HeaderText = "供应商型号",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 5,
                        EditDialogRowPosition    = 7,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Length",
                        HeaderText = "长度",
                        DataType   = typeof(string),
                        Editable   = true,
                        EditDialogColumnPosition = 5,
                        EditDialogRowPosition    = 8,
                    },
                    new JQGridColumn()
                    {
                        DataField              = "InvType",
                        DataType               = typeof(int),
                        Visible                = false,
                        Searchable             = false,
                        Hidedlg                = true,
                        SearchToolBarOperation = SearchOperation.IsEqualTo,
                    },
                }
            };

            InventoryGrid.ToolBarSettings.CustomButtons.Add(new JQGridToolBarButton()
            {
                Text       = "<span class='ui-pg-button-text'>正常存货</span>",
                ToolTip    = "正常存货",
                ButtonIcon = "ui-icon-search",
                OnClick    = "normalInv",
                Position   = ToolBarButtonPosition.Last,
            });
            InventoryGrid.ToolBarSettings.CustomButtons.Add(new JQGridToolBarButton()
            {
                Text       = "<span class='ui-pg-button-text'>失效存货</span>",
                ToolTip    = "失效存货",
                ButtonIcon = "ui-icon-search",
                OnClick    = "invalidInv",
                Position   = ToolBarButtonPosition.Last,
            });

            InventoryGrid.ToolBarSettings.CustomButtons.Add(new JQGridToolBarButton()
            {
                Text       = "<span class='ui-pg-button-text'>批量删除失效图片</span>",
                ToolTip    = "批量删除失效图片",
                ButtonIcon = "ui-icon-trash",
                OnClick    = "deleteImg",
                Position   = ToolBarButtonPosition.Last,
            });
            //InventoryGrid.ToolBarSettings.CustomButtons.Add(new JQGridToolBarButton()
            //{
            //    Text = "<span class='ui-pg-button-text'>导入EXCEL</span>",
            //    ToolTip = "导入EXCEL",
            //    ButtonIcon = "ui-icon-extlink",
            //    OnClick = "LoadExcel",
            //    Position = ToolBarButtonPosition.Last,
            //});
        }
Exemplo n.º 23
0
 public VendorGridModel()
 {
     VendorGrid = new EntityJQGrid()
     {
         Width   = 1100,
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField              = "VendorType",
                 DataType               = typeof(int),
                 Visible                = false,
                 Searchable             = false,
                 Hidedlg                = true,
                 SearchToolBarOperation = SearchOperation.IsEqualTo,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Tel",
                 HeaderText = "电话",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Fax",
                 HeaderText = "传真",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Phone",
                 HeaderText = "手机",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Zip",
                 HeaderText = "邮编",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Linkman",
                 HeaderText = "联系人",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Address",
                 HeaderText = "地址",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Email",
                 HeaderText = "Email",
                 DataType   = typeof(string),
                 Editable   = true,
             },
         }
     };
 }
Exemplo n.º 24
0
        public InventoryCategoryGridModel()
        {
            InventoryCategoryGrid = new EntityJQGrid()
            {
                Width   = Unit.Pixel(1100),
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        Viewable = false,
                        Hidedlg  = true,
                        EditActionIconsColumn   = true,
                        EditActionIconsSettings = new EditActionIconsSettings(),
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Id",
                        DataType   = typeof(Guid),
                        PrimaryKey = true,
                        Visible    = false,
                        Searchable = false,
                        Hidedlg    = true,
                    },
                    new JQGridColumn()
                    {
                        DataField                = "Code",
                        HeaderText               = "编码",
                        DataType                 = typeof(string),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField                = "Name",
                        HeaderText               = "名称",
                        DataType                 = typeof(string),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },

                    new JQGridColumn()
                    {
                        DataField  = "IsDiscount",
                        HeaderText = "是否折扣",
                        DataType   = typeof(bool),
                        Editable   = true,
                    },
                    //new JQGridColumn()
                    //{
                    //    DataField="ProductType",
                    //    HeaderText="产品类型",
                    //    DataType=typeof(int),
                    //    Editable=true,
                    //    EditDialogFieldSuffix="(*)",
                    //    EditClientSideValidators = new List<JQGridEditClientSideValidator>()
                    //    {
                    //        new RequiredValidator()
                    //    },
                    //},
                    //new JQGridColumn()
                    //{
                    //    DataField="ProductTypeName",
                    //    HeaderText="产品类型",
                    //    DataType=typeof(string),
                    //    Visible=false,
                    //    Searchable=false,
                    //    Exportable=true,
                    //    Hidedlg=true,
                    //},
                    new JQGridColumn()
                    {
                        DataField  = "SectionType",
                        HeaderText = "位置",
                        DataType   = typeof(int),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "SectionTypeName",
                        HeaderText = "位置",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                        Hidedlg    = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Comment",
                        HeaderText = "描述",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField              = "CategoryType",
                        DataType               = typeof(int),
                        Visible                = false,
                        Searchable             = false,
                        SearchToolBarOperation = SearchOperation.IsEqualTo,
                        Hidedlg                = true,
                    },
                }
            };
        }
Exemplo n.º 25
0
 public WarehouseGridModel()
 {
     WarehouseGrid = new EntityJQGrid()
     {
         Width   = 1100,
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Dept",
                 HeaderText = "门店",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "门店",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Principal",
                 HeaderText = "负责人",
                 DataType   = typeof(string),
                 Editable   = true
             },
             new JQGridColumn()
             {
                 DataField  = "Tele",
                 HeaderText = "电话",
                 DataType   = typeof(string),
                 Editable   = true
             },
             new JQGridColumn()
             {
                 DataField  = "Address",
                 HeaderText = "地址",
                 DataType   = typeof(string),
                 Editable   = true
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             },
         }
     };
 }
Exemplo n.º 26
0
 public PlayListGridModel()
 {
     PlayListGrid = new EntityJQGrid()
     {
         Width   = 1100,
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 HeaderText = "门店",
                 DataType   = typeof(Guid),
                 Editable   = true
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "门店",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "MP3文件名",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "BeginTime",
                 HeaderText = "开始时间",
                 DataType   = typeof(TimeSpan),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "EndTime",
                 HeaderText = "结束时间",
                 DataType   = typeof(TimeSpan),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "IsEnabled",
                 HeaderText = "是否启用",
                 DataType   = typeof(bool),
                 Editable   = true,
             }
         }
     };
 }
Exemplo n.º 27
0
        public BillOfMaterialsGridModel()
        {
            BillOfMaterialsGrid = new EntityJQGrid()
            {
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        DataField  = "Id",
                        DataType   = typeof(Guid),
                        Visible    = false,
                        PrimaryKey = true,
                        Searchable = false
                    },
                    new JQGridColumn()
                    {
                        DataField  = "PartInvId",
                        DataType   = typeof(Guid),
                        Visible    = false,
                        Searchable = false,
                        Editable   = true,
                        HeaderText = "主件",
                    },
                    new JQGridColumn()
                    {
                        DataField                = "PartInvCode",
                        HeaderText               = "主件存货编码",
                        DataType                 = typeof(string),
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField                = "PartInvName",
                        HeaderText               = "主件存货名称",
                        DataType                 = typeof(Guid),
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField  = "PartSpecs",
                        HeaderText = "主件规格型号",
                        DataType   = typeof(string),
                        Searchable = false,
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "PartGroupName",
                        HeaderText = "主件计量单位组",
                        DataType   = typeof(string),
                        Searchable = false
                    },
                    new JQGridColumn()
                    {
                        DataField  = "PartStockUnitName",
                        HeaderText = "主件计量单位",
                        DataType   = typeof(string),
                        Searchable = false,
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField                = "BaseQtyD",
                        HeaderText               = "主件基础用量",
                        DataType                 = typeof(Decimal),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator(),
                            new NumberValidator()
                        },
                        Searchable = false,
                        Formatter  = new DigitFormatter(),
                    },

                    //子件

                    new JQGridColumn()
                    {
                        DataField  = "ComponentInvId",
                        DataType   = typeof(Guid),
                        Searchable = false,
                        Visible    = false,
                        Editable   = true,
                        HeaderText = "子件",
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ComponentInvCode",
                        HeaderText = "子件存货编码",
                        DataType   = typeof(string),
                    },

                    new JQGridColumn()
                    {
                        DataField  = "ComponentInvName",
                        HeaderText = "子件存货名称",
                        DataType   = typeof(string),
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ComponentSpecs",
                        HeaderText = "子件规格型号",
                        DataType   = typeof(string),
                        Searchable = false,
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ComponentGroupName",
                        HeaderText = "子件计量单位组",
                        DataType   = typeof(string),
                        Searchable = false
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ComponentStockUnitName",
                        HeaderText = "子件计量单位",
                        DataType   = typeof(string),
                        Searchable = false,
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField                = "BaseQtyN",
                        HeaderText               = "子件用量",
                        DataType                 = typeof(decimal),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator(),
                            new NumberValidator()
                        },
                        Searchable = false,
                        Formatter  = new DigitFormatter(),
                    },
                }
            };
        }
Exemplo n.º 28
0
 public KeyManageGridModel()
 {
     KeyManageGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1100),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = false
                 },
             },
             new JQGridColumn()
             {
                 PrimaryKey = true,
                 DataField  = "HardwareID",
                 HeaderText = "硬件序列号",
                 DataType   = typeof(string),
                 Width      = 250,
             },
             new JQGridColumn()
             {
                 DataField  = "CardNo",
                 HeaderText = "ekey编号",
                 DataType   = typeof(string),
                 Width      = 100,
             },
             new JQGridColumn()
             {
                 DataField  = "CreateDate",
                 HeaderText = "启用日期",
                 DataType   = typeof(string),
                 Editable   = false,
                 Width      = 150,
             },
             new JQGridColumn()
             {
                 DataField  = "IsUse",
                 HeaderText = "是否启用",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "UserId",
                 HeaderText = "用户",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "FullName",
                 HeaderText = "用户",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
             }
         }
     };
 }
Exemplo n.º 29
0
 public ConsumePointGridModel()
 {
     ConsumePointGrid = new EntityJQGrid()
     {
         Width   = Unit.Pixel(1100),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 HeaderText = "门店",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "门店",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Category",
                 HeaderText = "分类",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "CategoryName",
                 HeaderText = "分类",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Amount",
                 HeaderText = "金额",
                 DataType   = typeof(decimal),
                 Editable   = true,
                 Formatter  = new DigitFormatter(),
             },
             new JQGridColumn()
             {
                 DataField  = "Point",
                 HeaderText = "积分",
                 DataType   = typeof(decimal),
                 Editable   = true,
                 Formatter  = new DigitFormatter(),
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             }
         }
     };
 }
Exemplo n.º 30
0
 public MeasurementUnitGroupGridModel()
 {
     MeasurementUnitGroupGrid = new EntityJQGrid()
     {
         Width   = 1100,
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn = true,
                 Viewable = false,
                 Hidedlg  = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Code",
                 HeaderText = "编码",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Category",
                 HeaderText = "类别",
                 DataType   = typeof(int),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "CategoryName",
                 HeaderText = "类别",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
                 Hidedlg    = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             },
         }
     };
 }