Esempio n. 1
0
        public static CustomList <TreeGenerator> GetAllTreeGenerator(string projectCode)
        {
            ConnectionManager          conManager = new ConnectionManager(ConnectionName.HR);
            CustomList <TreeGenerator> TreeGeneratorCollection = new CustomList <TreeGenerator>();
            String sql = "EXEC spSWebTreeGenerator '" + projectCode + "'";

            try
            {
                IDataReader reader;
                conManager.OpenDataReader(sql, out reader);
                while (reader.Read())
                {
                    TreeGenerator newTreeGenerator = new TreeGenerator();
                    newTreeGenerator.SetDataRequisition(reader);
                    TreeGeneratorCollection.Add(newTreeGenerator);
                }
                reader.Close();
                TreeGeneratorCollection.SelectSpName = "spSelectTreeGenerator";
                TreeGeneratorCollection.InsertSpName = "spInsertTreeGenerator";
                TreeGeneratorCollection.UpdateSpName = "spUpdateTreeGenerator";
                TreeGeneratorCollection.SelectSpName = "spDeleteTreeGenerator";
                return(TreeGeneratorCollection);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
Esempio n. 2
0
        public static CustomList <TreeGenerator> GetAllTreeGenerator(string location, string projectCode)
        {
            ConnectionManager          conManager = new ConnectionManager(ConnectionName.HR);
            CustomList <TreeGenerator> TreeGeneratorCollection = new CustomList <TreeGenerator>();
            String sql = "EXEC spSWebTreeGeneratorLocationWiseProjectItem '" + location + "','" + projectCode + "'";

            try
            {
                IDataReader reader;
                conManager.OpenDataReader(sql, out reader);
                while (reader.Read())
                {
                    TreeGenerator newTreeGenerator = new TreeGenerator();
                    newTreeGenerator.SetDataRequisition(reader);
                    TreeGeneratorCollection.Add(newTreeGenerator);
                }
                reader.Close();
                return(TreeGeneratorCollection);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
Esempio n. 3
0
        public static CustomList <TreeGenerator> GetAllTreeGeneratorWithAdditionalWork(string TranId)
        {
            ConnectionManager          conManager = new ConnectionManager(ConnectionName.HR);
            CustomList <TreeGenerator> TreeGeneratorCollection = new CustomList <TreeGenerator>();
            String sql = "EXEC spSWebTreeGeneratorForAdditionalItem '" + TranId + "'";

            try //spSWebTreeGeneratorForAdditionalItem
            {
                IDataReader reader;
                conManager.OpenDataReader(sql, out reader);
                while (reader.Read())
                {
                    TreeGenerator newTreeGenerator = new TreeGenerator();
                    newTreeGenerator.SetDataRequisition(reader);
                    TreeGeneratorCollection.Add(newTreeGenerator);
                }
                reader.Close();
                return(TreeGeneratorCollection);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
Esempio n. 4
0
 public static CustomList<TreeGenerator> GetAllTreeGeneratorWithAdditionalWork(string TranId)
 {
     ConnectionManager conManager = new ConnectionManager(ConnectionName.HR);
     CustomList<TreeGenerator> TreeGeneratorCollection = new CustomList<TreeGenerator>();
     String sql = "EXEC spSWebTreeGeneratorForAdditionalItem '" + TranId + "'";
     try //spSWebTreeGeneratorForAdditionalItem
     {
         IDataReader reader;
         conManager.OpenDataReader(sql, out reader);
         while (reader.Read())
         {
             TreeGenerator newTreeGenerator = new TreeGenerator();
             newTreeGenerator.SetDataRequisition(reader);
             TreeGeneratorCollection.Add(newTreeGenerator);
         }
         reader.Close();
         return TreeGeneratorCollection;
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
Esempio n. 5
0
 public static CustomList<TreeGenerator> GetAllTreeGenerator(string location, string projectCode)
 {
     ConnectionManager conManager = new ConnectionManager(ConnectionName.HR);
     CustomList<TreeGenerator> TreeGeneratorCollection = new CustomList<TreeGenerator>();
     String sql = "EXEC spSWebTreeGeneratorLocationWiseProjectItem '" + location + "','" + projectCode + "'";
     try
     {
         IDataReader reader;
         conManager.OpenDataReader(sql, out reader);
         while (reader.Read())
         {
             TreeGenerator newTreeGenerator = new TreeGenerator();
             newTreeGenerator.SetDataRequisition(reader);
             TreeGeneratorCollection.Add(newTreeGenerator);
         }
         reader.Close();
         return TreeGeneratorCollection;
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
Esempio n. 6
0
 public static CustomList<TreeGenerator> GetAllTreeGenerator(string projectCode)
 {
     ConnectionManager conManager = new ConnectionManager(ConnectionName.HR);
     CustomList<TreeGenerator> TreeGeneratorCollection = new CustomList<TreeGenerator>();
     String sql = "EXEC spSWebTreeGenerator '" + projectCode + "'";
     try
     {
         IDataReader reader;
         conManager.OpenDataReader(sql, out reader);
         while (reader.Read())
         {
             TreeGenerator newTreeGenerator = new TreeGenerator();
             newTreeGenerator.SetDataRequisition(reader);
             TreeGeneratorCollection.Add(newTreeGenerator);
         }
         reader.Close();
         TreeGeneratorCollection.SelectSpName = "spSelectTreeGenerator";
         TreeGeneratorCollection.InsertSpName = "spInsertTreeGenerator";
         TreeGeneratorCollection.UpdateSpName = "spUpdateTreeGenerator";
         TreeGeneratorCollection.SelectSpName = "spDeleteTreeGenerator";
         return TreeGeneratorCollection;
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }