public BRCls_Location() { oDBLocationController = new DBCls_Locations(); LocationID = ""; ObjectStatus = (int)LocationStatus.New; }
public BRCls_Location(String[] ArrLocation) { oDBLocationController = new DBCls_Locations(); FillInLocation(ArrLocation); ObjectStatus = (int)LocationStatus.NotModified; }
public BRCls_Location(String pLocationID) { oDBLocationController = new DBCls_Locations(); GetLocationByID(pLocationID); ObjectStatus = (int)LocationStatus.NotModified; }
public bool LoadLocationFromXML(String pXML) { try { oDBLocationController = new DBCls_Locations(); FillLocationWithXML(pXML); ValidateStatus(); } catch (Exception ex) { return false; } return true; }
public bool GetLocationByID(String pLocationID) { try { oDBLocationController = new DBCls_Locations(); String[,] ArrLocation = oDBLocationController.SearchLocation(pLocationID); if (ArrLocation != null) { LocationID = ArrLocation[0, (int)LocationCriteria.cLOCATIONID]; LocationName = ArrLocation[0, (int)LocationCriteria.cLOCATIONNAME]; LocationDescription = ArrLocation[0, (int)LocationCriteria.cLOCATIONDESCRIPTION]; LocationAddress = ArrLocation[0, (int)LocationCriteria.cLOCATIONADDRESS]; LocationLatitude = ArrLocation[0, (int)LocationCriteria.cLOCATIONLATITUDE]; LocationLongitude = ArrLocation[0, (int)LocationCriteria.cLOCATIONLONGITUDE]; } } catch (Exception ex) { return false; } return true; }