Ejemplo n.º 1
0
 public OrganizationsGridModel()
 {
     OrganizationsGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = false
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "ID",
                 PrimaryKey = true,
                 Visible    = false,
                 DataType   = typeof(string),
                 Searchable = false
             },
             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";
 }
Ejemplo n.º 2
0
        public RoleGridModel()
        {
            RoleGrid = new EntityJQGrid();
            List <JQGridColumn> columns = new List <JQGridColumn>()
            {
                new JQGridColumn()
                {
                    EditActionIconsColumn   = true,
                    EditActionIconsSettings = new EditActionIconsSettings()
                    {
                        ShowEditIcon = true, ShowDeleteIcon = true
                    },
                },
                new JQGridColumn()
                {
                    DataField  = "RoleId",
                    PrimaryKey = true,
                    Visible    = false,
                    Searchable = false
                },
                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;
        }
Ejemplo n.º 3
0
 public PlayListGridModel()
 {
     PlayListGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = true
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 HeaderText = "部门",
                 DataType   = typeof(Guid),
                 Editable   = true
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "部门",
                 DataType   = typeof(string),
                 Visible    = false,
                 Searchable = false,
                 Exportable = true,
             },
             new JQGridColumn()
             {
                 DataField                = "Code",
                 HeaderText               = "编码",
                 DataType                 = typeof(string),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField                = "Name",
                 HeaderText               = "MP3文件夹名称",
                 DataType                 = typeof(string),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField                = "BeginTime",
                 HeaderText               = "开始时间",
                 DataType                 = typeof(TimeSpan),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                 },
             },
             new JQGridColumn()
             {
                 DataField                = "EndTime",
                 HeaderText               = "结束时间",
                 DataType                 = typeof(TimeSpan),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                 },
             },
             new JQGridColumn()
             {
                 DataField                = "IsEnabled",
                 HeaderText               = "是否启用",
                 DataType                 = typeof(bool),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                 },
             }
         }
     };
 }
Ejemplo n.º 4
0
        public TasteGridModel()
        {
            TasteGrid = new EntityJQGrid()
            {
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        EditActionIconsColumn   = true,
                        EditActionIconsSettings = new EditActionIconsSettings()
                        {
                            ShowEditIcon = true, ShowDeleteIcon = true
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Id",
                        DataType   = typeof(Guid),
                        PrimaryKey = true,
                        Visible    = false,
                        Searchable = false
                    },
                    new JQGridColumn()
                    {
                        DataField  = "DeptId",
                        HeaderText = "部门",
                        DataType   = typeof(Guid),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "DeptName",
                        HeaderText = "部门",
                        DataType   = typeof(string),
                        Searchable = false,
                        Visible    = false,
                        Exportable = 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  = "Comment",
                        HeaderText = "描述",
                        DataType   = typeof(string),
                        Editable   = true
                    }
                }
            };
        }
Ejemplo n.º 5
0
 public UserGridModel()
 {
     UserGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = false
                 },
             },
             new JQGridColumn
             {
                 DataField  = "UserId",
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false,
             },
             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",
                 Width      = 100,
                 HeaderText = "门店",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
             },
             new JQGridColumn
             {
                 DataField  = "LastActivityDate",
                 HeaderText = "最近活动日期",
                 Width      = 150,
                 DataType   = typeof(DateTime),
             },
             new JQGridColumn
             {
                 DataField  = "IsApproved",
                 Width      = 100,
                 HeaderText = "是否启用",
                 DataType   = typeof(bool),
                 Editable   = true,
             },
             new JQGridColumn
             {
                 DataField  = "IsLockedOut",
                 Width      = 100,
                 HeaderText = "是否锁定",
                 DataType   = typeof(bool)
             },
             new JQGridColumn
             {
                 DataField  = "LastLoginDate",
                 Width      = 150,
                 HeaderText = "最近的登录日期",
                 DataType   = typeof(DateTime),
             },
             new JQGridColumn
             {
                 DataField  = "CreateDate",
                 Width      = 150,
                 HeaderText = "创建日期",
                 DataType   = typeof(DateTime),
             }
         }
     };
 }
Ejemplo n.º 6
0
        public IPadGridModel()
        {
            IPadGrid = new EntityJQGrid()
            {
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        EditActionIconsColumn   = true,
                        EditActionIconsSettings = new EditActionIconsSettings(),
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Id",
                        DataType   = typeof(Guid),
                        PrimaryKey = true,
                        Visible    = false,
                        Searchable = false
                    },

                    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                = "SN",
                        HeaderText               = "序列号",
                        DataType                 = typeof(string),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField                = "Status",
                        HeaderText               = "状态",
                        DataType                 = typeof(bool),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField  = "StatusName",
                        HeaderText = "状态",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Comment",
                        HeaderText = "描述",
                        DataType   = typeof(string),
                        Editable   = true
                    }
                }
            };
        }
Ejemplo n.º 7
0
 public ConsumePointGridModel()
 {
     ConsumePointGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = true
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 HeaderText = "部门",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "部门",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = 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,
             },
             new JQGridColumn()
             {
                 DataField                = "Amount",
                 HeaderText               = "金额",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                     new NumberValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField                = "Point",
                 HeaderText               = "积分",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                     new NumberValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             }
         }
     };
 }
Ejemplo n.º 8
0
 public DeptGridModel()
 {
     DeptsGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = false
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false
             },
             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),
             },
             new JQGridColumn()
             {
                 HeaderText = "门店类型",
                 DataField  = "DeptType",
                 DataType   = typeof(int),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 HeaderText = "门店类型",
                 DataField  = "DeptTypeName",
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
                 DataType   = typeof(string),
             },
         }
     };
 }
Ejemplo n.º 9
0
 public CardLevelGridModel()
 {
     CardLevelGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = true
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 HeaderText = "部门",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "部门",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = 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                = "Discount",
                 HeaderText               = "折扣",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(%)(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                     new NumberValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "BeginLetter",
                 HeaderText = "卡号首字母",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Point",
                 HeaderText = "积分",
                 DataType   = typeof(decimal),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             }
         }
     };
 }
Ejemplo n.º 10
0
 public UnitOfMeasureGridModel()
 {
     UnitOfMeasuresGrid = new EntityJQGrid()
     {
         AutoWidth = true,
         Height    = Unit.Percentage(100),
         Columns   = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false
             },
             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                = "Group",
                 HeaderText               = "计量单位组",
                 DataType                 = typeof(Guid),
                 Editable                 = true,
                 Visible                  = false,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "GroupName",
                 HeaderText = "计量单位组",
                 DataType   = typeof(string),
                 Editable   = false,
                 Searchable = false,
                 Width      = 100,
             },
             new JQGridColumn()
             {
                 DataField  = "Rate",
                 HeaderText = "换算率",
                 DataType   = typeof(decimal),
                 Editable   = true,
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new NumberValidator(),
                 },
                 Formatter = new NumberFormatter()
                 {
                     DecimalPlaces = 3
                 }
             },
             new JQGridColumn()
             {
                 DataField  = "IsMain",
                 HeaderText = "是否主计量单位",
                 DataType   = typeof(bool),
                 Editable   = true,
                 Width      = 100,
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             },
             new JQGridColumn()
             {
                 DataField              = "UOMType",
                 DataType               = typeof(int),
                 Visible                = false,
                 Searchable             = false,
                 SearchToolBarOperation = SearchOperation.IsEqualTo,
             }
         }
     };
 }
Ejemplo n.º 11
0
 public SitemapGridModel()
 {
     SitemapGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = true
                 },
             },
             new JQGridColumn()
             {
                 DataField                = "Code",
                 HeaderText               = "编码",
                 DataType                 = typeof(string),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
                 PrimaryKey = true
             },
             new JQGridColumn()
             {
                 DataField  = "Name",
                 HeaderText = "名称",
                 DataType   = typeof(string),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField                = "Title",
                 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()
                 },
             },
             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,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             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(bool),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                     new NumberValidator(),
                 },
             },
         }
     };
 }
Ejemplo n.º 12
0
        public STInventoryGridModel()
        {
            InventoryGrid = new EntityJQGrid()
            {
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        DataField  = "Id",
                        DataType   = typeof(Guid),
                        PrimaryKey = true,
                        Visible    = false,
                        Searchable = false
                    },
                    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                = "Category",
                        HeaderText               = "存货分类",
                        DataType                 = typeof(Guid),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "*",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField  = "CategoryName",
                        HeaderText = "存货分类",
                        DataType   = typeof(string),
                        Editable   = false,
                        Searchable = false,
                        Exportable = true,
                    },
                    new JQGridColumn()
                    {
                        DataField                = "MeasurementUnitGroup",
                        HeaderText               = "计量单位组",
                        DataType                 = typeof(Guid),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "(必填)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField  = "MeasurementUnitGroupName",
                        HeaderText = "计量单位组",
                        DataType   = typeof(string),
                        Editable   = false,
                        Searchable = false,
                        Exportable = true,
                    },
                    new JQGridColumn()
                    {
                        DataField                = "MainUnit",
                        HeaderText               = "主计量单位",
                        DataType                 = typeof(Guid),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "*",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField  = "MainUnitName",
                        HeaderText = "主计量单位",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "StockUnit",
                        HeaderText = "库存单位",
                        DataType   = typeof(Guid),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "StockUnitName",
                        HeaderText = "库存单位",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "Specs",
                        HeaderText = "规格型号",
                        DataType   = typeof(string),
                        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  = "IsSale",
                        HeaderText = "是否零售",
                        DataType   = typeof(bool),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ImageFileName",
                        HeaderText = "图片文件名",
                        DataType   = typeof(string),
                        Editable   = true,
                        Width      = 100,
                    },

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

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

                    new JQGridColumn()
                    {
                        DataField  = "UnitOfMeasure",
                        HeaderText = "销售单位",
                        DataType   = typeof(Guid),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "UnitOfMeasureName",
                        HeaderText = "销售单位",
                        DataType   = typeof(string),
                        Visible    = false,
                        Searchable = false,
                        Exportable = true,
                    },
                    new JQGridColumn()
                    {
                        DataField                = "SalePrice",
                        HeaderText               = "零售单价",
                        DataType                 = typeof(decimal),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "*",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator(),
                            new NumberValidator(),
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField                = "SalePoint",
                        HeaderText               = "零售积分",
                        DataType                 = typeof(decimal),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "*",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator(),
                            new NumberValidator(),
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Printer",
                        HeaderText = "打印机",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "IsDonate",
                        HeaderText = "是否赠送商品",
                        DataType   = typeof(bool),
                        Editable   = true,
                    },

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

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

                    new JQGridColumn()
                    {
                        DataField  = "Sort",
                        HeaderText = "排序",
                        DataType   = typeof(int),
                        Editable   = true,
                        Formatter  = new IntegerFormatter(),
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Stars",
                        HeaderText = "评分",
                        DataType   = typeof(int),
                        Editable   = true,
                        Formatter  = new CustomFormatter()
                        {
                            FormatFunction   = "FormatRanking",
                            UnFormatFunction = "UnFormatRanking"
                        },
                        EditType = EditType.Custom,
                        EditTypeCustomCreateElement = "createStarsEditElement",
                        EditTypeCustomGetValue      = "getStarsElementValue",
                        Width = 150,
                    },
                    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  = "EnglishName",
                        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  = "Karat",
                        HeaderText = "含量",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "MetalWeight",
                        HeaderText = "金属重量",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Jewelweight",
                        HeaderText = "宝石重量",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "TotalWeight",
                        HeaderText = "总重量",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "QTY",
                        HeaderText = "数量",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "OrderNo",
                        HeaderText = "订货号",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "VendorSpec",
                        HeaderText = "供应商型号",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Length",
                        HeaderText = "长度",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField              = "InvType",
                        DataType               = typeof(int),
                        Visible                = false,
                        Searchable             = false,
                        SearchToolBarOperation = SearchOperation.IsEqualTo,
                    },
                }
            };
            InventoryGrid.ToolBarSettings.CustomButtons.Add(new JQGridToolBarButton()
            {
                Text       = "编辑",
                ToolTip    = "编辑",
                ButtonIcon = "ui-icon-search",
                OnClick    = "invGridToForm",
                Position   = ToolBarButtonPosition.Last,
            });
            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,
            });
        }
Ejemplo n.º 13
0
        public WRInventoryGridModel()
        {
            InventoryGrid = new EntityJQGrid()
            {
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        DataField  = "Id",
                        DataType   = typeof(Guid),
                        PrimaryKey = true,
                        Visible    = false,
                        Searchable = false,
                    },
                    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  = "EnglishName",
                        HeaderText = "英文名",
                        DataType   = typeof(string),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField                = "Category",
                        HeaderText               = "存货分类",
                        DataType                 = typeof(Guid),
                        Editable                 = true,
                        Visible                  = false,
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField  = "CategoryName",
                        HeaderText = "存货分类",
                        DataType   = typeof(string),
                        Editable   = false,
                        Searchable = false,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "UnitOfMeasure",
                        HeaderText = "计量单位",
                        DataType   = typeof(string),
                        Visible    = false,
                        Editable   = true
                    },
                    new JQGridColumn()
                    {
                        DataField  = "UnitOfMeasureName",
                        HeaderText = "计量单位",
                        DataType   = typeof(string),
                        Editable   = false,

                        Searchable = false,
                    },
                    new JQGridColumn()
                    {
                        DataField                = "SalePrice",
                        HeaderText               = "默认单价",
                        DataType                 = typeof(decimal),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },

                    new JQGridColumn()
                    {
                        DataField                = "SalePoint",
                        HeaderText               = "默认积分",
                        DataType                 = typeof(decimal),
                        Editable                 = true,
                        EditDialogFieldSuffix    = "(*)",
                        EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                        {
                            new RequiredValidator()
                        },
                    },
                    new JQGridColumn()
                    {
                        DataField  = "IsRecommend",
                        HeaderText = "是否推荐",
                        DataType   = typeof(bool),
                        Editable   = true,
                    },
                    new JQGridColumn()
                    {
                        DataField  = "ImageFileName",
                        HeaderText = "图片文件名",
                        DataType   = typeof(string),
                        Editable   = true,
                        Width      = 100,
                    },
                    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,
                        Formatter  = new CustomFormatter()
                        {
                            FormatFunction   = "FormatRanking",
                            UnFormatFunction = "UnFormatRanking"
                        },
                        EditType = EditType.Custom,
                        EditTypeCustomCreateElement = "createStarsEditElement",
                        EditTypeCustomGetValue      = "getStarsElementValue",
                        Width = 300
                    },
                    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,
                    },
                }
            };

            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,
            });
        }
Ejemplo n.º 14
0
 public CDInventoryGridModel()
 {
     InventoryGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false
             },
             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                = "Category",
                 HeaderText               = "存货分类",
                 DataType                 = typeof(Guid),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
                 Visible = false,
             },
             new JQGridColumn()
             {
                 DataField  = "CategoryName",
                 HeaderText = "存货分类",
                 DataType   = typeof(string),
                 Editable   = false,
                 Searchable = false
             },
             new JQGridColumn()
             {
                 DataField  = "UnitOfMeasure",
                 HeaderText = "计量单位",
                 DataType   = typeof(Guid),
                 Editable   = true,
                 Visible    = false,
             },
             new JQGridColumn()
             {
                 DataField  = "UnitOfMeasureName",
                 HeaderText = "计量单位",
                 DataType   = typeof(string),
                 Editable   = false,
                 Searchable = false
             },
             new JQGridColumn()
             {
                 DataField                = "SalePrice",
                 HeaderText               = "默认单价",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             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,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             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,
                 Width      = 90,
             },
             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,
                 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,
     });
 }
Ejemplo n.º 15
0
 public InvPriceGridModel()
 {
     InvPriceGrid = new EntityJQGrid()
     {
         Height  = Unit.Percentage(100),
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = true
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false
             },
             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                = "InvId",
                 HeaderText               = "存货",
                 DataType                 = typeof(Guid),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             //new JQGridColumn()
             //{
             //    DataField="InvCode",
             //    HeaderText="存货编码",
             //    DataType=typeof(string),
             //    Editable=false,
             //    Searchable=false
             //},
             new JQGridColumn()
             {
                 DataField  = "InvName",
                 HeaderText = "存货名称",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
             },
             new JQGridColumn()
             {
                 DataField                = "SalePrice",
                 HeaderText               = "单价",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField                = "SalePoint",
                 HeaderText               = "积分",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             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,
             },
         }
     };
 }
Ejemplo n.º 16
0
 public MeasurementUnitGroupGridModel()
 {
     MeasurementUnitGroupGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false
             },
             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                = "Category",
                 HeaderText               = "类别",
                 DataType                 = typeof(int),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "CategoryName",
                 HeaderText = "类别",
                 DataType   = typeof(string),
                 Editable   = false,
                 Searchable = false,
                 Exportable = true,
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             },
         }
     };
 }
Ejemplo n.º 17
0
 public RechargeDonationGridModel()
 {
     RechargeDonationGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = true
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false
             },
             new JQGridColumn()
             {
                 DataField  = "DeptId",
                 HeaderText = "部门",
                 DataType   = typeof(Guid),
                 Editable   = true,
             },
             new JQGridColumn()
             {
                 DataField  = "DeptName",
                 HeaderText = "部门",
                 DataType   = typeof(string),
                 Searchable = false,
                 Visible    = false,
                 Exportable = true,
             },
             new JQGridColumn()
             {
                 DataField                = "BeginAmount",
                 HeaderText               = "起始金额",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                     new NumberValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField                = "DonationRatio",
                 HeaderText               = "比例",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(%)(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                     new NumberValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField                = "DonationTopLimit",
                 HeaderText               = "上限",
                 DataType                 = typeof(decimal),
                 Editable                 = true,
                 EditDialogFieldSuffix    = "(*)",
                 EditClientSideValidators = new List <JQGridEditClientSideValidator>()
                 {
                     new RequiredValidator(),
                     new NumberValidator()
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "Comment",
                 HeaderText = "描述",
                 DataType   = typeof(string),
                 Editable   = true
             }
         }
     };
 }
Ejemplo n.º 18
0
 public KeyManageGridModel()
 {
     KeyManageGrid = new EntityJQGrid()
     {
         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,
             }
         }
     };
 }
Ejemplo n.º 19
0
 public CardTypeGridModel()
 {
     CardTypeGrid = new EntityJQGrid()
     {
         Columns = new List <JQGridColumn>()
         {
             new JQGridColumn()
             {
                 EditActionIconsColumn   = true,
                 EditActionIconsSettings = new EditActionIconsSettings()
                 {
                     ShowEditIcon = true, ShowDeleteIcon = true
                 },
             },
             new JQGridColumn()
             {
                 DataField  = "Id",
                 DataType   = typeof(Guid),
                 PrimaryKey = true,
                 Visible    = false,
                 Searchable = false
             },
             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  = "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
             },
         }
     };
 }
Ejemplo n.º 20
0
        public InventoryCategoryGridModel()
        {
            InventoryCategoryGrid = new EntityJQGrid()
            {
                Columns = new List <JQGridColumn>()
                {
                    new JQGridColumn()
                    {
                        EditActionIconsColumn   = true,
                        EditActionIconsSettings = new EditActionIconsSettings(),
                    },
                    new JQGridColumn()
                    {
                        DataField  = "Id",
                        DataType   = typeof(Guid),
                        PrimaryKey = true,
                        Visible    = false,
                        Searchable = false
                    },
                    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  = "Comment",
                        HeaderText = "描述",
                        DataType   = typeof(string),
                        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,
                    },

                    new JQGridColumn()
                    {
                        DataField  = "IsDiscount",
                        HeaderText = "是否折扣",
                        DataType   = typeof(bool),
                        Editable   = 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,
                    },
                    new JQGridColumn()
                    {
                        DataField              = "CategoryType",
                        DataType               = typeof(int),
                        Visible                = false,
                        Searchable             = false,
                        SearchToolBarOperation = SearchOperation.IsEqualTo,
                    },
                }
            };
        }