示例#1
0
 public static ClientVisit.SaveData GetClientVisitSaveDataForNewUser()
 {
     ClientVisit.SaveData clientVisit = new ClientVisit.SaveData();
     clientVisit.TemporaryPolicyDate     = DateTime.Now.AddYears(-1);
     clientVisit.TemporaryPolicyNumber   = null;
     clientVisit.ScenarioId              = referenceBll.GetReferencesList(Constants.ScenarioRef).FirstOrDefault().Id;
     clientVisit.DeliveryCenterId        = referenceBll.GetReferencesList(Constants.DeliveryCenterRef).FirstOrDefault().Id;
     clientVisit.LivingAddress           = AddressGenerator.GetAddressSaveData(null);
     clientVisit.RegistrationAddress     = AddressGenerator.GetAddressSaveData(null);
     clientVisit.RegistrationAddressDate = DateTime.Now.AddYears(-2);
     clientVisit.NewClientInfo           = GetClientVersionSaveData("Иван", "Иванович", "Иванов", "1");
     clientVisit.OldClientInfo           = GetClientVersionSaveData("Петр", "Петрович", "Петров", "1");
     clientVisit.OldDocument             = DocumentGenerator.GetDocumentSaveData(null);
     clientVisit.NewDocument             = DocumentGenerator.GetDocumentSaveData(null);
     clientVisit.NewPolicy          = PolicyGenerator.GetPolicyInfoSaveData(null);
     clientVisit.OldPolicy          = PolicyGenerator.GetPolicyInfoSaveData(null);
     clientVisit.NewForeignDocument = DocumentGenerator.GetDocumentSaveData(null);
     clientVisit.OldForeignDocument = DocumentGenerator.GetDocumentSaveData(null);
     clientVisit.RegistratorId      = 1;
     clientVisit.Representative     = new Representative.SaveData();
     clientVisit.Phone               = "(954)223-11-23";
     clientVisit.ArchivationDate     = DateTime.Now;
     clientVisit.AttachmentDate      = DateTime.Now;
     clientVisit.AttachmentTypeId    = null;
     clientVisit.DeregistrationDate  = DateTime.Now;
     clientVisit.GOZNAKTypeId        = referenceBll.GetReferencesList(Constants.GOZNAKTypeRef).FirstOrDefault().Id;
     clientVisit.DeliveryPointId     = referenceBll.GetReferencesList(Constants.DeliveryPointRef).FirstOrDefault().Id;
     clientVisit.CarrierId           = referenceBll.GetReferencesList(Constants.CarriersRef).FirstOrDefault().Id;
     clientVisit.ApplicationMethodId = referenceBll.GetReferencesList(Constants.ApplicationMethodRef).FirstOrDefault().Id;
     return(clientVisit);
 }
示例#2
0
 public static PolicyInfo.SaveData GetPolicyInfoSaveData(long?id)
 {
     PolicyInfo.SaveData data = new PolicyInfo.SaveData();
     data.Id                  = id;
     data.EndDate             = DateTime.Now;
     data.Series              = "1233";
     data.Number              = "0000123123";
     data.UnifiedPolicyNumber = "123123123123";
     data.StartDate           = DateTime.Now;
     data.PolicyTypeId        = bll.GetReferencesList(Constants.PolicyTypeRef).FirstOrDefault().Id;
     return(data);
 }
示例#3
0
        public static Document.SaveData GetDocumentSaveData(long?id)
        {
            Document.SaveData data = new Document.SaveData();
            data.Id              = id;
            data.IsIssueCase     = true;
            data.IssueDate       = DateTime.Now.AddYears(-3);
            data.ExpirationDate  = DateTime.Now.AddYears(1);
            data.IssueDepartment = "УФМС";
            data.Series          = "1234";
            data.Number          = "121234";
            ReferenceBusinessLogic bll = new ReferenceBusinessLogic();

            //Паспорт гражданина РФ
            data.DocumentTypeId = bll.GetReferencesList(Constants.DocumentTypeRef).Where(a => a.Code == "14").FirstOrDefault().Id;
            return(data);
        }