Exemple #1
0
 private void tabControlStock_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.tabControlStock.SelectedIndex == 0)
     {
         if (m_GoodsTypeTree.GoodsTypeTree.SelectedNode != null)
         {
             LoadData(Foundation.GetStockGoods(m_GoodsTypeTree.GoodsTypeTree.SelectedNode.Text));
         }
     }
     else if (this.tabControlStock.SelectedIndex == 1)
     {
         if (m_GoodsTypeTree.GoodsTypeTree.SelectedNode != null)
         {
             LoadData(Foundation.GetStockGoodsTypeData(m_GoodsTypeTree.GoodsTypeTree.SelectedNode.Tag.ToString()));
         }
         else
         {
             m_GoodsTypeTree.GoodsTypeTree.SelectedNode = m_GoodsTypeTree.GoodsTypeTree.Nodes[0];
         }
     }
     else if (this.tabControlStock.SelectedIndex == 2)
     {
         if (m_ProviderTree.ProviderTree.SelectedNode != null)
         {
             LoadData(Foundation.GetStockGoodsProviderData(m_ProviderTree.ProviderTree.SelectedNode.Tag.ToString()));
         }
         else
         {
             m_ProviderTree.ProviderTree.SelectedNode = m_ProviderTree.ProviderTree.Nodes[0];
         }
     }
 }
Exemple #2
0
 private void frmGoods_Load(object sender, EventArgs e)
 {
     LoadData(Foundation.GetStockGoods(Foundation.AllGoodsName, false));
 }
Exemple #3
0
 void m_Goodstree_AfterSelectGoods(object sender, SelectGoodsEventArgs e)
 {
     m_Goodsname = e.GoodsName;
     LoadData(Foundation.GetStockGoods(m_Goodsname));
 }