Beispiel #1
0
 private void tabControlGoods_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.tabControlGoods.SelectedIndex == 0)
     {
         if (m_Datetime.tvDatetime.SelectedNode != null)
         {
             LoadData(Foundation.GetDatetimeData(this.m_strDatetime));
         }
     }
     else if (this.tabControlGoods.SelectedIndex == 1)
     {
         if (m_GoodsTypeTree.GoodsTypeTree.SelectedNode != null)
         {
             LoadData(Foundation.GetGoodsTypeData(m_GoodsTypeTree.GoodsTypeTree.SelectedNode.Tag.ToString()));
         }
         else
         {
             m_GoodsTypeTree.GoodsTypeTree.SelectedNode = m_GoodsTypeTree.GoodsTypeTree.Nodes[0];
         }
     }
     else if (this.tabControlGoods.SelectedIndex == 2)
     {
         if (m_ProviderTree.ProviderTree.SelectedNode != null)
         {
             LoadData(Foundation.GetProviderData(m_ProviderTree.ProviderTree.SelectedNode.Tag.ToString()));
         }
         else
         {
             m_ProviderTree.ProviderTree.SelectedNode = m_ProviderTree.ProviderTree.Nodes[0];
         }
     }
 }
Beispiel #2
0
        void m_Datetime_DatetimeChanged(object sender, DatetimeTreeEventArgs e)
        {
            this.MenuAdd.Enabled = e.dateTimeType == DatetimeType.Day;
            m_strDatetime        = e.DatatimeString;

            LoadData(Foundation.GetDatetimeData(m_strDatetime));
        }