private SynchronizationGroup(String ___name)
 {     
     SISSubscriptionKey _key = new SISSubscriptionKey();
     _key.ClientId = GetRemoteId();
     string domainName = CRMMobileDesaDB.GetSynchronizationProfile().DomainName;
     if(domainName == null || domainName.Length == 0)
     {
         domainName = Sybase.Mobile.Application.GetInstance().ApplicationSettings.GetStringProperty(Sybase.Mobile.ConnectionPropertyType.DomainName);
     }
     if(domainName == null || domainName.Length == 0)
     {
         domainName = "default";
     }
     _key.Domain = domainName;
     _key.Package = CRMMobileDesaDB.GetPackageName();
     _key.SyncGroup = ___name;
     __sisSubscription = SISSubscription.Find(_key);
     if(__sisSubscription == null)
     {
         __sisSubscription = new SISSubscription();
         __sisSubscription.Domain = _key.Domain;
         __sisSubscription.Package = _key.Package;
         __sisSubscription.SyncGroup = _key.SyncGroup;
         __sisSubscription.ClientId = _key.ClientId;
         __sisSubscription.Username = CRMMobileDesaDB.GetSyncUsername();
         __sisSubscription.DeviceId = com.sybase.afx.util.PidUtil.GetId();
     }
 }
Beispiel #2
0
        private SynchronizationGroup(String ___name)
        {
            SISSubscriptionKey _key = new SISSubscriptionKey();

            _key.ClientId = GetRemoteId();
            string domainName = CRMMobileDesaDB.GetSynchronizationProfile().DomainName;

            if (domainName == null || domainName.Length == 0)
            {
                domainName = Sybase.Mobile.Application.GetInstance().ApplicationSettings.GetStringProperty(Sybase.Mobile.ConnectionPropertyType.DomainName);
            }
            if (domainName == null || domainName.Length == 0)
            {
                domainName = "default";
            }
            _key.Domain       = domainName;
            _key.Package      = CRMMobileDesaDB.GetPackageName();
            _key.SyncGroup    = ___name;
            __sisSubscription = SISSubscription.Find(_key);
            if (__sisSubscription == null)
            {
                __sisSubscription           = new SISSubscription();
                __sisSubscription.Domain    = _key.Domain;
                __sisSubscription.Package   = _key.Package;
                __sisSubscription.SyncGroup = _key.SyncGroup;
                __sisSubscription.ClientId  = _key.ClientId;
                __sisSubscription.Username  = CRMMobileDesaDB.GetSyncUsername();
                __sisSubscription.DeviceId  = com.sybase.afx.util.PidUtil.GetId();
            }
        }