Beispiel #1
0
 public ProSelect()
 {
     InitializeComponent();
     for (int i = 0; i < 18; i++)
     {
         pis[i] = new uc.ucProInfo();
         pnlPro.Controls.Add(pis[i]);
     }
 }
Beispiel #2
0
        void g_OnAddItem(ProInfo t, Rectangle position, Control gridcontainer)
        {
            uc.ucProInfo pi = new uc.ucProInfo();
            pi.Left = position.Left;
            pi.Top = position.Top;
            pi.Size = position.Size;

            pi.ProInfo = t;
            pi.OnSelectPro += new uc.ucProInfo.SelectPro(pi_OnSelectPro);
            gridcontainer.Controls.Add(pi);
        }
Beispiel #3
0
        public ProStore()
        {
            InitializeComponent();
            for (int i = 0; i < 18; i++)
            {
                pis[i] = new uc.ucProInfo();

                pnlPro.Controls.Add(pis[i]);
            }
            DALProInfo dpi = new DALProInfo();
            List<string> cates = dpi.GetProCatesByAreaID(GlobalValue.GShop.AreaInfo.AreaID).ToList();
            GlobalFun.LoadProCate(cates, tabControl1);
            DALShopStore dss = new DALShopStore();
            ss = dss.GetShopStoreByShopID(GlobalValue.GShop.ShopID);
            ShowByCateAndPageNo(tabControl1.TabPages[0]);
        }
Beispiel #4
0
        public AskBill()
        {
            InitializeComponent();

            Program.mainfrm.proselect.OnProSelectQty += new ProSelect.ProSelectQty(proselect_OnProSelectQty);

            for (int i = 0; i < 18; i++)
            {
                pis[i] = new uc.ucProInfo();

                pnlPro.Controls.Add(pis[i]);
            }

            DALShopAskData dpa = new DALShopAskData();
            IList<string> cates = dpa.AskCates(GlobalValue.GShop.ShopID);
            GlobalFun.LoadProCate(cates, tabControl1);

            DALShopAskData dsa = new DALShopAskData();
            sa = dsa.GetAskDataByShopID(GlobalValue.GShop.ShopID);
            if (tabControl1.TabPages.Count != 0)
            {
                ShowByCateAndPageNo(tabControl1.TabPages[0],false);
            }
        }
Beispiel #5
0
        void g_OnAddItem(Shop_SellDetail t, Rectangle position, Control gridcontainer)
        {
            uc.ucProInfo pi = new uc.ucProInfo();
            pi.Left = position.Left;
            pi.Top = position.Top;
            pi.Size = position.Size;
            pi.LeftField = "单价:" + t.Price.ToString("0.00");
            pi.RightField = "数量:" + t.Amount.ToString("0.00");
            pi.ProInfo = t.Pro;
            pi.Tag = t;
            pi.OnSelectPro += new uc.ucProInfo.SelectPro(pi_OnSelectPro);

            gridcontainer.Controls.Add(pi);
        }