コード例 #1
0
ファイル: SecRackMapBL.cs プロジェクト: AjayHK1/LMS
        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
ファイル: SecRackMapBL.cs プロジェクト: AjayHK1/LMS
        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
ファイル: SecRackMapBL.cs プロジェクト: AjayHK1/LMS
        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
ファイル: SecRackMapBL.cs プロジェクト: AjayHK1/LMS
        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
ファイル: SecRackMapBL.cs プロジェクト: AjayHK1/LMS
        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);
            }
        }