Beispiel #1
0
 private void TapToAddOperationalCert()
 {
     OperationalCerts.Add(new CertTypeItemViewModel("OPERATIONAL CERTIFICATES")
     {
         CreatePersonalProfileVM = this
     });
     OperationalCerts[OperationalCerts.Count - 1].CertItem.CertType   = UserProfile.PersonalProfile.Certs[5].CertType;
     OperationalCerts[OperationalCerts.Count - 1].CertItem.CertTypeId = UserProfile.PersonalProfile.Certs[5].CertTypeId;
     OperationalCerts[OperationalCerts.Count - 1].CertItem.UserId     = mCacheService.CurrentUserData.UserId;
     OperationalCerts[OperationalCerts.Count - 1].IsShowOrignalImage  = true;
     View.AddMoreOperationalCert();
 }
Beispiel #2
0
        public async void Init()
        {
            this.UserProfile = DataHelper.RetrieveFromUserPref <UserProfile>("UserProfile");
            if (UserProfile.PersonalProfile != null)
            {
                ConstructionCardItem.CreatePersonalProfileVM = this;
                TraceLicenseItem.CreatePersonalProfileVM     = this;
                IncomeInsured.CreatePersonalProfileVM        = this;
                FirstAidCertified.CreatePersonalProfileVM    = this;
                GSTRegistered.CreatePersonalProfileVM        = this;
                PublicLiablityCert.CreatePersonalProfileVM   = this;

                ConstructionCardItem.CertItem = UserProfile.PersonalProfile.Certs[0];
                TraceLicenseItem.CertItem     = UserProfile.PersonalProfile.Certs[1];
                IncomeInsured.CertItem        = UserProfile.PersonalProfile.Certs[2];
                FirstAidCertified.CertItem    = UserProfile.PersonalProfile.Certs[3];
                GSTRegistered.CertItem        = UserProfile.PersonalProfile.Certs[4];

                OperationalCerts.Add(new CertTypeItemViewModel("Operational Certificates")
                {
                    CreatePersonalProfileVM = this
                });
                OperationalCerts[OperationalCerts.Count - 1].CertItem.CertType   = UserProfile.PersonalProfile.Certs[5].CertType;
                OperationalCerts[OperationalCerts.Count - 1].CertItem.CertTypeId = UserProfile.PersonalProfile.Certs[5].CertTypeId;
                OperationalCerts[OperationalCerts.Count - 1].CertItem.UserId     = mCacheService.CurrentUserData.UserId;

                PublicLiablityCert.CertItem = UserProfile.PersonalProfile.Certs[6];

                var personalProfile = DataHelper.RetrieveFromUserPref <PersonalProfile>("PERSONAL_STEP");

                while (View == null)
                {
                    await Task.Delay(150);
                }
                if (personalProfile != null)
                {
                    ShowCompetedStep();
                }
            }
        }