void InitInplaceEditors()
        {
            //设置Demo 从数据库取值后这样设置
            //this.gridView1.SetRowCellValue(rowHandle_CommodityName, "Value","hahhahahahah");

            this.gridEditors = new GridEditorCollection();
            //
            this.gridEditors.Add(this.repositoryItemTextEdit1, "商品名称:", "");
            this.gridEditors.Add(this.repositoryItemTextEdit3, "商品编码:", FoodID);
            this.gridEditors.Add(this.repositoryItemTextEdit2, "商品价格:", 0);
            this.gridEditors.Add(this.repositoryItemTextEdit2, "折扣价格:", 0);
            this.gridEditors.Add(this.repositoryItemComboBox1, "所属类型:", "");
            this.gridEditors.Add(this.repositoryItemPictureEdit1, "菜品图片:", Properties.Resources._1);
            this.gridEditors.Add(this.repositoryItemTextEdit2, "菜品起点数:", 0);
            this.gridEditors.Add(this.repositoryItemToggleSwitch2, "是否分规格:", false);
            this.gridEditors.Add(this.repositoryItemButtonEdit1, "原料设置:", "");
            this.gridEditors.Add(this.repositoryItemToggleSwitch3, "是否是套餐:", false);
            this.gridEditors.Add(this.repositoryItemToggleSwitch1, "是否打印:", true);
            this.gridEditors.Add(this.repositoryItemToggleSwitch4, "是否称重:", false);
            this.gridEditors.Add(this.repositoryItemTextEdit1, "商品单位:", "");
            this.gridEditors.Add(this.repositoryItemToggleSwitch1, "是否不参与结算打折:", false);
            // this.gridEditors.Add(this.repositoryItemToggleSwitch1, "是否为必选菜:", true);
            this.gridEditors.Add(this.repositoryItemMemoEdit1, "商家推荐:", "");
            //
            this.gridControl1.DataSource = gridEditors;
        }
示例#2
0
 private void simpleButton3_Click(object sender, EventArgs e)
 {
     this.gridControl1.Visible = !this.gridControl1.Visible;
     if (this.gridControl1.Visible)
     {
         this.gridEditors = new GridEditorCollection();
         this.InitInplaceEditors();
         this.gridControl1.DataSource = gridEditors;
         this.simpleButton3.Text      = "<<常用设定";
     }
     else
     {
         this.simpleButton3.Text = "详细设定>>";
     }
 }
        void InitInplaceEditors()
        {
            //设置Demo 从数据库取值后这样设置
            //this.gridView1.SetRowCellValue(rowHandle_CommodityName, "Value","hahhahahahah");

            this.gridEditors = new GridEditorCollection();

            this.gridEditors.Add(this.repositoryItemRadioGroup1, "是否开启定位:", true);
            this.gridEditors.Add(this.repositoryItemRadioGroup1, "是否开启锁桌:", true);
            this.gridEditors.Add(this.repositoryItemRadioGroup1, "是否在线支付:", true);
            this.gridEditors.Add(this.repositoryItemRadioGroup1, "是否买单清桌:", true);
            this.gridEditors.Add(this.repositoryItemRadioGroup1, "未接订单提醒:", true);
            this.gridEditors.Add(this.repositoryItemRadioGroup1, "开启呼叫服务:", true);
            this.gridEditors.Add(this.repositoryItemToggleSwitch1, "关联美团外卖:", true);
            this.gridEditors.Add(this.repositoryItemToggleSwitch2, "关联饿了么外卖:", true);
            //
            this.gridControl1.DataSource = gridEditors;
        }
        void InitInplaceEditors()
        {
            this.gridEditors = new GridEditorCollection();

            this.gridEditors.Add(this.repositoryItemTextEdit1, "分类名称:", "");
            this.gridEditors.Add(this.repositoryItemTextEdit3, "分类编码:", 0);
            this.gridEditors.Add(this.repositoryItemTextEdit1, "排列顺序:", 0);
            this.gridEditors.Add(this.repositoryItemTextEdit1, "起点菜品种数:", 0);
            this.gridEditors.Add(this.repositoryItemTextEdit1, "最低消费:", 0);
            this.gridEditors.Add(this.repositoryItemToggleSwitch1, "是否有效:", false);
            if (itemcategorykey != -1)
            {
                this.gridEditors.Add(this.repositoryItemToggleSwitch1, "是否打印:", false);
                this.gridEditors.Add(this.repositoryItemToggleSwitch2, "是否打折:", false);
            }
            else
            {
                this.btn_delete.Visible = false;
            }

            this.gridControl1.DataSource = gridEditors;
            IniGrid();
        }
示例#5
0
        void InitInplaceEditors()
        {
            //设置Demo 从数据库取值后这样设置
            //this.gridView1.SetRowCellValue(rowHandle_CommodityName, "Value","hahhahahahah");

            this.gridEditors = new GridEditorCollection();
            //
            Bitmap bitmap = new Bitmap(Properties.Resources._1, new Size(100, 50));

            this.gridEditors.Add(this.repositoryItemPictureEdit1, "门店头像", bitmap);
            this.gridEditors.Add(this.repositoryItemTextEdit1, "门店名称:", "门店名称");
            this.gridEditors.Add(this.repositoryItemTextEdit1, "商铺编码:", "000003");
            this.gridEditors.Add(this.repositoryItemTextEdit1, "门店电话:", "1232232555555");
            this.gridEditors.Add(this.repositoryItemTextEdit1, "联系人:", "联系人");
            this.gridEditors.Add(this.repositoryItemTextEdit1, "银行卡号:", "62222552252252");
            this.gridEditors.Add(this.repositoryItemTextEdit1, "开户人姓名:", "奥马巴");
            this.gridEditors.Add(this.repositoryItemTextEdit1, "开户行:", "6666银行");
            this.gridEditors.Add(this.repositoryItemTextEdit1, "详细地址:", "地址啊");
            this.gridEditors.Add(this.repositoryItemButtonEdit1, "门店所在地区:", "嘿嘿");
            this.gridEditors.Add(this.repositoryItemButtonEdit2, "菜品口味:", "嘿嘿");
            this.gridEditors.Add(this.repositoryItemTextEdit1, "餐具费:", "100");
            //
            this.gridControl1.DataSource = gridEditors;
        }