예제 #1
0
        public ActionResult Index()
        {
            var docTypesViewModel = new DocTypesViewModel();
            var docTypes          = _docTypeService.GetDocTypes();

            docTypesViewModel.AddDocTypes(docTypes);
            return(View(docTypesViewModel));
        }
        public AddAutoApprovalViewModel(
            IList <Entities.DocType> docTypes, IList <Entities.SubDocType> subDocTypes, int manCoId)
        {
            DocTypesViewModel    = new DocTypesViewModel();
            SubDocTypesViewModel = new SubDocTypesViewModel(docTypes);
            ManCosViewModel      = new ManCosViewModel();

            DocTypesViewModel.AddDocTypes(docTypes);
            SubDocTypesViewModel.AddSubDocTypes(subDocTypes);
            ManCoId = manCoId;
        }
        public AddAutoApprovalViewModel(
            IList <Entities.DocType> docTypes, IList <Entities.SubDocType> subDocTypes, IList <Entities.ManCo> manCos)
        {
            DocTypesViewModel    = new DocTypesViewModel();
            SubDocTypesViewModel = new SubDocTypesViewModel(docTypes);
            ManCosViewModel      = new ManCosViewModel();

            DocTypesViewModel.AddDocTypes(docTypes);
            SubDocTypesViewModel.AddSubDocTypes(subDocTypes);
            ManCosViewModel.AddMancos(manCos);
        }
        public AddAppManCoEmailViewModel(IList <Entities.Application> applications, IList <Entities.ManCo> manCos, IList <Entities.DocType> docTypes)
        {
            Applications = new ApplicationsViewModel();
            Applications.AddApplications(applications);

            ManCos = new ManCosViewModel();
            ManCos.AddMancos(manCos);

            DocTypes = new DocTypesViewModel();
            DocTypes.AddDocTypes(docTypes);
        }
예제 #5
0
        public EditAppManCoEmailViewModel(IList <Entities.Application> applications, IList <Entities.ManCo> manCos, IList <Entities.DocType> docTypes, Entities.AppManCoEmail appManCoEmail)
        {
            Applications = new ApplicationsViewModel();
            Applications.AddApplications(applications);

            ManCos = new ManCosViewModel();
            ManCos.AddMancos(manCos);

            DocTypes = new DocTypesViewModel();
            DocTypes.AddDocTypes(docTypes);

            Id               = appManCoEmail.Id;
            DocTypeId        = appManCoEmail.DocTypeId;
            ManCoId          = appManCoEmail.ManCoId;
            ApplicationId    = appManCoEmail.ApplicationId;
            OtfEmail         = appManCoEmail.Email;
            OrigionalEmail   = appManCoEmail.Email;
            OtfAccountNumber = appManCoEmail.AccountNumber;
            //ConfirmEmail = string.Empty;
        }
예제 #6
0
 public AddSubDocTypeViewModel(IList <Entities.DocType> docTypes)
 {
     DocTypesViewModel = new DocTypesViewModel();
     DocTypesViewModel.AddDocTypes(docTypes);
 }