public ActivityData(WebOutlookCrm.smmActivities.SMMACTIVITIESRow activityRow)
 {
     this.ACTIVITYNUMBER     = activityRow.ACTIVITYNUMBER;
     this.STARTDATETIME      = activityRow.STARTDATETIME;
     this.ENDDATETIME        = activityRow.ENDDATETIME;
     this.OUTLOOKENTRYID     = activityRow.OUTLOOKENTRYID;
     this.MODIFIEDDATETIME   = activityRow.MODIFIEDDATETIME;
     this.PURPOSE            = activityRow.PURPOSE;
     this.ALLDAY             = activityRow.ALLDAY;
     this.BILLINGINFORMATION = activityRow.BILLINGINFORMATION;
     this.USERMEMO           = activityRow.USERMEMO;
     this.OUTLOOKCATEGORIES  = activityRow.OUTLOOKCATEGORIES;
     this.TASKPRIORITY       = activityRow.TASKPRIORITY;
     this.LOCATION           = activityRow.LOCATION;
     this.MILEAGE            = activityRow.MILEAGE;
     this.REMINDERACTIVE     = activityRow.REMINDERACTIVE;
     this.REMINDERMINUTES    = activityRow.REMINDERMINUTES;
     this.OUTLOOKRESOURCES   = activityRow.OUTLOOKRESOURCES;
     this.RESPONSEREQUESTED  = activityRow.RESPONSEREQUESTED;
     this.SENSITIVITY        = activityRow.SENSITIVITY;
     this.ACTIVITYTIMETYPE   = activityRow.ACTIVITYTIMETYPE;
     this.CUSTNAME           = activityRow.CUSTNAME;
     this.CUSTABC            = activityRow.CUSTABC;
     this.CUSTSALESREP       = activityRow.CUSTSALESREP;
     this.DLVMODE            = activityRow.DLVMODE;
     this.NAMEALIAS          = activityRow.NAMEALIAS;
     this.CONTACTPERSONID    = activityRow.CONTACTPERSONID;
     this.CONTACTNAME        = activityRow.CONTACTNAME;
     this.CONTACTPHONE       = activityRow.CONTACTPHONE;
     this.CONTACTEMAIL       = activityRow.CONTACTEMAIL;
 }
        public static Boolean IsdifferentRecord(Outlook.AppointmentItem oAppointment, WebOutlookCrm.smmActivities.SMMACTIVITIESRow item)
        {
            Boolean differenetRec = false;

            if (oAppointment.Start != item.STARTDATETIME.ToLocalTime())
            {
                differenetRec = true;
            }
            if (oAppointment.End != item.ENDDATETIME.ToLocalTime())
            {
                differenetRec = true;
            }


            if (string.IsNullOrEmpty(oAppointment.BillingInformation))
            {
                if (string.IsNullOrEmpty(item.BILLINGINFORMATION))
                {
                }
                else
                {
                    differenetRec = true;
                }
            }
            else
            {
                if (oAppointment.BillingInformation != item.BILLINGINFORMATION)
                {
                    differenetRec = true;
                }
            }
            if (string.IsNullOrEmpty(oAppointment.Body))
            {
                if (string.IsNullOrEmpty(item.USERMEMO))
                {
                }
                else
                {
                    differenetRec = true;
                }
            }
            else
            {
                if (oAppointment.Body.ToString() != item.USERMEMO)
                {
                    differenetRec = true;
                }
            }

            if (string.IsNullOrEmpty(oAppointment.Subject))
            {
                if (string.IsNullOrEmpty(item.PURPOSE))
                {
                }
                else
                {
                    differenetRec = true;
                }
            }
            else
            {
                if (oAppointment.Subject.ToString() != item.PURPOSE.ToString())
                {
                    differenetRec = true;
                }
            }
            if (string.IsNullOrEmpty(oAppointment.Categories))
            {
                if (string.IsNullOrEmpty(item.OUTLOOKCATEGORIES))
                {
                }
                else
                {
                    differenetRec = true;
                }
            }
            else
            {
                if (oAppointment.Categories.ToString() != item.OUTLOOKCATEGORIES)
                {
                    differenetRec = true;
                }
            }
            if (string.IsNullOrEmpty(oAppointment.Location))
            {
                if (string.IsNullOrEmpty(item.LOCATION))
                {
                }
                else
                {
                    differenetRec = true;
                }
            }
            else
            {
                if (oAppointment.Location.ToString() != item.LOCATION.ToString())
                {
                    differenetRec = true;
                }
            }
            if (string.IsNullOrEmpty(oAppointment.Mileage))
            {
                if (string.IsNullOrEmpty(item.MILEAGE))
                {
                }
                else
                {
                    differenetRec = true;
                }
            }
            else
            {
                if (oAppointment.Mileage.ToString() != item.MILEAGE.ToString())
                {
                    differenetRec = true;
                }
            }

            if (oAppointment.ReminderMinutesBeforeStart != item.REMINDERMINUTES)
            {
                differenetRec = true;
            }
            if (string.IsNullOrEmpty(oAppointment.Resources))
            {
                if (string.IsNullOrEmpty(item.OUTLOOKRESOURCES))
                {
                }
                else
                {
                    differenetRec = true;
                }
            }
            else
            {
                if (oAppointment.Resources.ToString() != item.OUTLOOKRESOURCES)
                {
                    differenetRec = true;
                }
            }
            if (oAppointment.AllDayEvent != Convert.ToBoolean(item.ALLDAY))
            {
                differenetRec = true;
            }

            if (oAppointment.ReminderSet != Convert.ToBoolean(item.REMINDERACTIVE))
            {
                differenetRec = true;
            }

            if (oAppointment.ResponseRequested != Convert.ToBoolean(item.RESPONSEREQUESTED))
            {
                differenetRec = true;
            }
            if (oAppointment.Importance != OutlookMgt.TASKPRIORITYConvertIntToOutlookOlImportance(item.TASKPRIORITY))
            {
                differenetRec = true;
            }
            if (oAppointment.Sensitivity != OutlookMgt.SENSITIVITYIntToConvertOutlookOlSensitivity(item.SENSITIVITY))
            {
                differenetRec = true;
            }
            if (oAppointment.BusyStatus != OutlookMgt.ACTIVITYTIMETYPEConvertIntToOutlookOlBusyStatus(item.ACTIVITYTIMETYPE))
            {
                differenetRec = true;
            }
            return(differenetRec);
        }