Пример #1
0
        public DataTable LoadGridDetails()
        {
            try
            {
                sectnDA = new SecRackMapDA();
                return(sectnDA.LoadGridDetailsFromDB());
            }

            catch (Exception ex)
            {
                string errorMessage = ErrorHandling.Class1.CreateErrorMessage(ex);
                ErrorHandling.Class1.LogFileWrite(errorMessage);
                return(dt = null);
            }
        }
Пример #2
0
        public int UpdateSecRacMapRecords(SectionRackMapMaster SecRacMap)
        {
            try
            {
                sectnDA = new SecRackMapDA();
                return(sectnDA.UpdateSectionRackMapDetailsToDB(SecRacMap));
            }

            catch (Exception ex)
            {
                string errorMessage = ErrorHandling.Class1.CreateErrorMessage(ex);
                ErrorHandling.Class1.LogFileWrite(errorMessage);
                return(-1);
            }
        }
Пример #3
0
        public int DeleteSectionRackMapDetails(int secRackId)
        {
            try
            {
                sectnDA = new SecRackMapDA();
                return(sectnDA.DeleteSectionRackMapDetailsFromDB(secRackId));
            }

            catch (Exception ex)
            {
                string errorMessage = ErrorHandling.Class1.CreateErrorMessage(ex);
                ErrorHandling.Class1.LogFileWrite(errorMessage);
                return(-1);
            }
        }
Пример #4
0
        public int LoadSecRackMapId()
        {
            try
            {
                sectnDA = new SecRackMapDA();
                return(sectnDA.LoadSecRackMapIdFromDB());
            }

            catch (Exception ex)
            {
                string errorMessage = ErrorHandling.Class1.CreateErrorMessage(ex);
                ErrorHandling.Class1.LogFileWrite(errorMessage);
                return(-1);
            }
        }
Пример #5
0
        public string RetrieveRackName(int rackId)
        {
            string rackName = "";

            try
            {
                sectnDA = new SecRackMapDA();
                return(sectnDA.RetrieveRackNameFromDB(rackId));
            }
            catch (Exception ex)
            {
                string errorMessage = ErrorHandling.Class1.CreateErrorMessage(ex);
                ErrorHandling.Class1.LogFileWrite(errorMessage);
                return(rackName);
            }
        }