Ejemplo 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);
            }
        }