Пример #1
0
 public ClientVisitController()
 {
     clientBusinessLogic    = new ClientBusinessLogic();
     userBusinessLogic      = new UserBusinessLogic();
     referenceBusinessLogic = new ReferenceBusinessLogic();
     bsoBusinessLogic       = new BSOBusinessLogic();
 }
 public FundRequestProcessingController()
 {
     clientBusinessLogic      = new ClientBusinessLogic();
     userBusinessLogic        = new UserBusinessLogic();
     referenceBusinessLogic   = new ReferenceBusinessLogic();
     fundRequestBusinessLogic = new FundRequestBusinessLogic();
 }
Пример #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);
        }
Пример #4
0
        public ContentResult BaseRefs()
        {
            try
            {
                var refBL = new ReferenceBusinessLogic();

                var regions         = ReferencesProvider.GetClaimSubjectsList();
                var companies       = ReferencesProvider.GetCompanyList();
                var activeCompanies = ReferencesProvider.GetActiveCompanyList();

                return(Content(JsonConvert.SerializeObject(new { regions, companies, activeCompanies }), "application/json"));
            }
            catch (Exception ex)
            {
                return(Content(ex.Message, "application/json"));
            }
        }