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); } }
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); } }
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); } }
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); } }
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); } }