示例#1
0
        public ActionResult Index()
        {
            var manCosViewModel = new ManCosViewModel();
            var manCos          = _manCoService.GetManCos();

            manCosViewModel.AddMancos(manCos);
            return(View(manCosViewModel));
        }
        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);
        }
示例#4
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;
        }