예제 #1
0
        /// <summary>
        /// Read in plants and  related intakes
        /// Tables DRWPLANT, DRWPLANTINTAKE are filled.
        /// </summary>
        /// <param name="DataBaseFileName"></param>
        public void ReadPlantData()
        {
            DRWPLANTTableAdapter DTA = new DRWPLANTTableAdapter();

            DTA.Connection.ConnectionString = ConnectionString;
            DTA.Fill(DRWPLANT);
            DTA.Dispose();

            DRWPLANTINTAKETableAdapter DTIA = new DRWPLANTINTAKETableAdapter();

            DTIA.Connection.ConnectionString = ConnectionString;
            DTIA.Fill(DRWPLANTINTAKE);
            DTIA.Dispose();

            DRWPLANTCOMPANYTYPETableAdapter dca = new DRWPLANTCOMPANYTYPETableAdapter();

            dca.Connection.ConnectionString = ConnectionString;
            dca.Fill(DRWPLANTCOMPANYTYPE);
            dca.Dispose();
        }
예제 #2
0
    /// <summary>
    /// Read in plants and  related intakes
    /// Tables DRWPLANT, DRWPLANTINTAKE are filled.
    /// </summary>
    /// <param name="DataBaseFileName"></param>
    public void ReadPlantData()
    {
      DRWPLANTTableAdapter DTA = new DRWPLANTTableAdapter();
      DTA.Connection.ConnectionString = ConnectionString;
      DTA.Fill(DRWPLANT);
      DTA.Dispose();

      DRWPLANTINTAKETableAdapter DTIA = new DRWPLANTINTAKETableAdapter();
      DTIA.Connection.ConnectionString = ConnectionString;
      DTIA.Fill(DRWPLANTINTAKE);
      DTIA.Dispose();

      DRWPLANTCOMPANYTYPETableAdapter dca = new DRWPLANTCOMPANYTYPETableAdapter();
      dca.Connection.ConnectionString = ConnectionString;
      dca.Fill(DRWPLANTCOMPANYTYPE);
      dca.Dispose();

    }