Пример #1
0
 // TODO: Need to change so that you can handle 1's and 2's in column not just not 0
 public override void classifyProspect(JoinedProspect joinedProspect ,Placemark placemark)
 {
     if (joinedProspect.currentCustomerFlag != 0)
     {
         placemark.StyleUrl = new Uri("#currentCustomer", UriKind.Relative);
     }
     else if (joinedProspect.doNotContactFlag != 0)
     {
         placemark.StyleUrl = new Uri("#doNoContact", UriKind.Relative);
     }
     else if (joinedProspect.cancelledFlag != 0)
     {
         placemark.StyleUrl = new Uri("#cancelledCustomer", UriKind.Relative);
     }
 }
Пример #2
0
 // TODO: Need to change so that you can handle 1's and 2's in column not just not 0
 public override void classifyProspect(JoinedProspect joinedProspect, Placemark placemark)
 {
     if (joinedProspect.currentCustomerFlag != 0)
     {
         placemark.StyleUrl = new Uri("#currentCustomer", UriKind.Relative);
     }
     else if (joinedProspect.doNotContactFlag != 0)
     {
         placemark.StyleUrl = new Uri("#doNoContact", UriKind.Relative);
     }
     else if (joinedProspect.cancelledFlag != 0)
     {
         placemark.StyleUrl = new Uri("#cancelledCustomer", UriKind.Relative);
     }
 }
Пример #3
0
        // this adds an element to the document and adds a place marker
        public override void addElementToKmlDocument(JoinedProspect joinedProspect, Document kmlDoc)
        {
            Point point = new Point();

               point.Coordinate = new Vector(joinedProspect.CorrectedLatitude, joinedProspect.CorrectedLongitude);

               Placemark placemark = new Placemark();
               placemark.Geometry = point;
               placemark.Name = joinedProspect.firstName + " " + joinedProspect.lastName;
               placemark.Address = joinedProspect.Address;
               placemark.Description = new Description() { Text = "ClassFP: " + joinedProspect.classFP + " IncorpName: " + joinedProspect.incorpName + " Address: " + joinedProspect.Address + " <h3>HelloWorld</h3>"};
               classifyProspect(joinedProspect, placemark);

               kmlDoc.AddFeature(placemark);
        }
        private JoinedProspect FillObject(IDataReader dataReader)
        {
            JoinedProspect joinedProspect = new JoinedProspect();

             joinedProspect.incorpName = DatabaseUtil.ToString(dataReader["NAME"]);
             joinedProspect.incropNameLSAD = DatabaseUtil.ToString(dataReader["NAMELSAD"]);
             joinedProspect.classFP = DatabaseUtil.ToString(dataReader["CLASSFP"]);
            joinedProspect.Address = DatabaseUtil.ToString(dataReader["CorrectedAddressLine1"]);
            joinedProspect.doNotContactFlag = DatabaseUtil.ToInt32(dataReader["DoNotContactFlag"]);
            joinedProspect.currentCustomerFlag = DatabaseUtil.ToInt32(dataReader["CurrentCustomerFlag"]);
            joinedProspect.CorrectedLatitude = DatabaseUtil.ToDouble(dataReader["CorrectedLatitude"]);
            joinedProspect.CorrectedLongitude = DatabaseUtil.ToDouble(dataReader["CorrectedLongitude"]);
            joinedProspect.cancelledFlag = DatabaseUtil.ToInt32(dataReader["CancelledFlag"]);
            joinedProspect.firstName = DatabaseUtil.ToString(dataReader["FirstName"]);
            joinedProspect.lastName = DatabaseUtil.ToString(dataReader["LastName"]);

            return joinedProspect;
        }
Пример #5
0
        // this adds an element to the document and adds a place marker
        public override void addElementToKmlDocument(JoinedProspect joinedProspect, Document kmlDoc)
        {
            Point point = new Point();

            point.Coordinate = new Vector(joinedProspect.CorrectedLatitude, joinedProspect.CorrectedLongitude);

            Placemark placemark = new Placemark();

            placemark.Geometry    = point;
            placemark.Name        = joinedProspect.firstName + " " + joinedProspect.lastName;
            placemark.Address     = joinedProspect.Address;
            placemark.Description = new Description()
            {
                Text = "ClassFP: " + joinedProspect.classFP + " IncorpName: " + joinedProspect.incorpName + " Address: " + joinedProspect.Address + " <h3>HelloWorld</h3>"
            };
            classifyProspect(joinedProspect, placemark);


            kmlDoc.AddFeature(placemark);
        }
Пример #6
0
 public virtual void classifyProspect(JoinedProspect joinedProspect, Placemark placemark)
 {
     throw new NotImplementedException();
 }
Пример #7
0
 public virtual void addElementToKmlDocument(JoinedProspect joinedProspect, Document kmlDoc)
 {
     throw new NotImplementedException();
 }
Пример #8
0
 public virtual void classifyProspect(JoinedProspect joinedProspect, Placemark placemark)
 {
     throw new NotImplementedException();
 }
Пример #9
0
 public virtual void addElementToKmlDocument(JoinedProspect joinedProspect, Document kmlDoc)
 {
     throw new NotImplementedException();
 }