public ucPurchas(SystemUser _SystemUser) { InitializeComponent(); m_SystemUser = _SystemUser; m_Datetime = new ucDateTime(); m_Datetime.Dock = DockStyle.Fill; m_Datetime.DatetimeChanged += new EventHandler <DatetimeTreeEventArgs>(m_Datetime_DatetimeChanged); m_GoodsTypeTree = new ucGoodsTypeTree(); m_GoodsTypeTree.LoadGoodsType(); m_GoodsTypeTree.Dock = DockStyle.Fill; m_GoodsTypeTree.GoodsTypeTree.AfterSelect += new TreeViewEventHandler(GoodsTypeTree_AfterSelect); m_ProviderTree = new ucProviderTree(); m_ProviderTree.LoadProvider(); m_ProviderTree.Dock = DockStyle.Fill; m_ProviderTree.ProviderTree.AfterSelect += new TreeViewEventHandler(ProviderTree_AfterSelect); this.lvPurchas.ListDecimalColumnIndex.AddRange(new int[] { 0, 7, 8, 9, 10 }); this.tabControlGoods.TabPages[0].Controls.Add(m_Datetime); this.tabControlGoods.TabPages[1].Controls.Add(m_GoodsTypeTree); this.tabControlGoods.TabPages[2].Controls.Add(m_ProviderTree); }
public frmGoods() { InitializeComponent(); m_GoodsTypeTree = new ucGoodsTypeTree(); m_GoodsTypeTree.LoadGoodsType(); m_GoodsTypeTree.Dock = DockStyle.Fill; m_GoodsTypeTree.GoodsTypeTree.AfterSelect += new TreeViewEventHandler(GoodsTypeTree_AfterSelect); m_ProviderTree = new ucProviderTree(); m_ProviderTree.LoadProvider(); m_ProviderTree.Dock = DockStyle.Fill; m_ProviderTree.ProviderTree.AfterSelect += new TreeViewEventHandler(ProviderTree_AfterSelect); this.lvStockGoods.ListDecimalColumnIndex.AddRange(new int[] { 0, 5, 6 }); this.tabControl1Goods.TabPages[0].Controls.Add(m_GoodsTypeTree); this.tabControl1Goods.TabPages[1].Controls.Add(m_ProviderTree); }
public ucStock(SystemUser _SystemUser) { InitializeComponent(); m_SystemUser = _SystemUser; m_Goodstree = new ucStockGoodstree(); m_Goodstree.Dock = DockStyle.Fill; m_Goodstree.AfterSelectGoods += new EventHandler <SelectGoodsEventArgs>(m_Goodstree_AfterSelectGoods); m_GoodsTypeTree = new ucGoodsTypeTree(); m_GoodsTypeTree.LoadGoodsType(); m_GoodsTypeTree.Dock = DockStyle.Fill; m_GoodsTypeTree.GoodsTypeTree.AfterSelect += new TreeViewEventHandler(GoodsTypeTree_AfterSelect); m_ProviderTree = new ucProviderTree(); m_ProviderTree.LoadProvider(); m_ProviderTree.Dock = DockStyle.Fill; m_ProviderTree.ProviderTree.AfterSelect += new TreeViewEventHandler(ProviderTree_AfterSelect); this.lvStock.ListDecimalColumnIndex.AddRange(new int[] { 0, 7, 8, 9, 10 }); this.tabControlStock.TabPages[0].Controls.Add(m_Goodstree); this.tabControlStock.TabPages[1].Controls.Add(m_GoodsTypeTree); this.tabControlStock.TabPages[2].Controls.Add(m_ProviderTree); }
public ucSell(SystemUser _SystemUser) { InitializeComponent(); m_SystemUser = _SystemUser; m_LatelySell = new ucLatelySell(_SystemUser); m_LatelySell.Dock = DockStyle.Fill; m_LatelySell.LatelySellTree.AfterSelect += new TreeViewEventHandler(LatelySellTree_AfterSelect); m_Datetime = new ucDateTime(); m_Datetime.Dock = DockStyle.Fill; m_Datetime.DatetimeChanged += new EventHandler <DatetimeTreeEventArgs>(m_Datetime_DatetimeChanged); m_GoodsTypeTree = new ucGoodsTypeTree(); m_GoodsTypeTree.LoadGoodsType(); m_GoodsTypeTree.Dock = DockStyle.Fill; m_GoodsTypeTree.GoodsTypeTree.AfterSelect += new TreeViewEventHandler(GoodsTypeTree_AfterSelect); m_ProviderTree = new ucProviderTree(); m_ProviderTree.LoadProvider(); m_ProviderTree.Dock = DockStyle.Fill; m_ProviderTree.ProviderTree.AfterSelect += new TreeViewEventHandler(ProviderTree_AfterSelect); this.lvSell.ListDecimalColumnIndex.AddRange(new int[] { 0, 7, 8, 9, 10, 11 }); this.tabControlSell.TabPages[0].Controls.Add(m_LatelySell); this.tabControlSell.TabPages[1].Controls.Add(m_Datetime); this.tabControlSell.TabPages[2].Controls.Add(m_GoodsTypeTree); this.tabControlSell.TabPages[3].Controls.Add(m_ProviderTree); if (!m_SystemUser.ShowProfit) { this.labelProfit.Width = this.labelProfit_.Width = 0; this.lvSell.Columns[11].Width = 0; } }