Пример #1
0
        public BRCls_Location()
        {
            oDBLocationController = new DBCls_Locations();
            LocationID = "";

            ObjectStatus = (int)LocationStatus.New;
        }
Пример #2
0
 public BRCls_Location(String[] ArrLocation)
 {
     oDBLocationController = new DBCls_Locations();
     FillInLocation(ArrLocation);
     ObjectStatus = (int)LocationStatus.NotModified;
 }
Пример #3
0
 public BRCls_Location(String pLocationID)
 {
     oDBLocationController = new DBCls_Locations();
     GetLocationByID(pLocationID);
     ObjectStatus = (int)LocationStatus.NotModified;
 }
Пример #4
0
 public bool LoadLocationFromXML(String pXML)
 {
     try
     {
         oDBLocationController = new DBCls_Locations();
         FillLocationWithXML(pXML);
         ValidateStatus();
     }
     catch (Exception ex)
     {
         return false;
     }
     return true;
 }
Пример #5
0
 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;
 }