Exemplo n.º 1
0
 private void UpdateClientData(ClientVersion.SaveData saveData, List <FundResponseFields> fields)
 {
     if (fields.Contains(FundResponseFields.Lastname))
     {
         saveData.Lastname = Lastname;
     }
     if (fields.Contains(FundResponseFields.Firstname))
     {
         saveData.Firstname = Firstname;
     }
     if (fields.Contains(FundResponseFields.Secondname))
     {
         saveData.Secondname = Secondname;
     }
     if (fields.Contains(FundResponseFields.Birthday))
     {
         saveData.Birthday = Birthday;
     }
     if (fields.Contains(FundResponseFields.Sex))
     {
         saveData.Sex = Sex.Length > 0 ? Sex[0] : new char?();
     }
     if (fields.Contains(FundResponseFields.Citizenship))
     {
         saveData.Citizenship = Citizenship.Id != 0 ? Citizenship.Id : new long?();
     }
     if (fields.Contains(FundResponseFields.Snils))
     {
         saveData.SNILS = Snils;
     }
 }
Exemplo n.º 2
0
            public SaveData()
            {
                OldClientInfo = new ClientVersion.SaveData();
                NewClientInfo = new ClientVersion.SaveData();

                NewDocument        = new Document.SaveData();
                OldDocument        = new Document.SaveData();
                NewForeignDocument = new Document.SaveData();
                OldForeignDocument = new Document.SaveData();

                LivingAddress       = new Address.SaveData();
                RegistrationAddress = new Address.SaveData();

                OldPolicy      = new PolicyInfo.SaveData();
                NewPolicy      = new PolicyInfo.SaveData();
                Representative = new Representative.SaveData();
            }