Пример #1
0
 public PforceRXFile(Privacy p)
 {
     this.IND_ID         = p.NucleusKey;
     this.CONSENT_EMAIL  = p.EMAIL;
     this.CONSENT_MOBILE = p.MOBILE;
     this.CONSENT_STATUS = p.CONSENT_USE;
     //added unsubscribe condition as part of APACCR-287 by venkat
     if (p.Unsubscribe == true || p.status == Commons.Status.PrivacyStatus.DELETED || p.status == Commons.Status.PrivacyStatus.ERASED)
     {
         this.CONSENT_STATUS = false;
     }
     this.CONSENT_SOURCE = string.IsNullOrEmpty(p.CONSENT_SOURCE) ? @"서면동의서" : p.CONSENT_SOURCE;
     this.CONSENT_DATE   = p.CONSENTDATE;
     this.COUNTRY_CD     = string.IsNullOrEmpty(p.COUNTRY_CD) ? @"KR" : p.COUNTRY_CD;
     this.EXTRACT_DATE   = DateTime.UtcNow;
 }
Пример #2
0
        public N360File(Privacy p, int periodyear)
        {
            this.SOURCE = string.IsNullOrEmpty(p.SOURCE)?"PCMS":p.SOURCE;
            this.ACTION = string.IsNullOrEmpty(p.NucleusKey) ? "I" : "U";
            if (p.status == PrivacyStatus.ERASED)
            {
                this.ACTION = "U";
            }
            if (p.status == PrivacyStatus.DELETED)
            {
                this.ACTION = "D";
            }

            this.WKP_ID          = p.WKP_ID;
            this.WKP_EXT_ID      = p.WKP_EXT_ID;
            this.IND_ID          = p.pcmsid;
            this.IND_EXT_ID      = p.IND_EXT_ID;
            this.ACT_STATUS      = p.ACT_STATUS;
            this.WKP_NAME        = p.WKP_NAME;
            this.WKP_TEL         = p.WKP_TEL;
            this.ZIP             = p.ZIP;
            this.PROVINCE        = p.PROVINCE;
            this.CITY            = p.CITY;
            this.DONG            = p.DONG;
            this.STREET          = p.STREET;
            this.FULL_ADDR       = p.FULL_ADDR;
            this.IND_SP          = p.IND_SP;
            this.TITLE           = p.TITLE;
            this.IND_FULL_NAME   = p.IND_FULL_NAME;
            this.EMAIL           = p.EMAIL;
            this.MOBILE          = p.MOBILE;
            this.CONSENT_DATE    = p.CONSENTDATE;
            this.CONSENT_SOURCE  = p.CONSENT_SOURCE;
            this.CONSENT_VERSION = p.CONSENTVERSION;
            this.PCMSID          = p.pcmsid;

            this.CONSENT_STATUS = "Opt-In";
            if (p.status == PrivacyStatus.DELETED || p.status == PrivacyStatus.ERASED)
            {
                this.CONSENT_STATUS = "Opt-Out";
            }
            else if (p.IsExpired(periodyear))
            {
                this.CONSENT_STATUS = "Opt-Out";
            }
        }