Exemplo n.º 1
0
        public GoodsList()
        {
            InitializeComponent();
            GlobalData.InitForm(this);
            LoadDataGrid();
            //
            try
            {
                bll    = new BLL.Goods();
                bllcls = new BLL.GoodsCls();
                //显示第一个分类
                var lst    = bllcls.GetListForMenu();
                var alllst = new List <Model.goods_cls>();
                alllst.Add(new Model.goods_cls {
                    cls_no = "", cls_name = "全部"
                });
                alllst.AddRange(lst);
                comboBox1.DataSource = alllst;

                themeLst = bll.GetThemeList();
                var alllst2 = new List <body.theme>();
                alllst2.Add(new body.theme {
                    theme_code = "0", theme_name = "全部"
                });
                alllst2.AddRange(themeLst);
                comboBox2.DataSource = alllst2;

                this.btn_first_Click(btn_first, null);
            }
            catch (Exception ex)
            {
                Program.frmMsg(ex.Message);
            }
        }
Exemplo n.º 2
0
 public GoodsClsList()
 {
     InitializeComponent();
     GlobalData.InitForm(this);
     //
     LoadDataGrid();
     bll = new BLL.GoodsCls();
     this.btn_first_Click(btn_first, null);
 }
        public frmGoodsClsChange(string cls_id, Model.goods_cls item)
        {
            InitializeComponent();
            //
            control.FormEsc.Bind(this);
            control.ClickActive.addActive(pnl_ok);
            control.ClickActive.addActive(pnl_cancel);

            bll = new BLL.GoodsCls();


            //
            this.cls_id = cls_id;
            if (item != null)
            {
                lbl_cls_no.Text   = item.cls_no;
                lbl_cls_name.Text = item.cls_name;
                if (item.is_show_mall == "1")
                {
                    checkBox1.Checked = true;
                }
            }
        }