Exemplo n.º 1
0
        public ActionResult PrintCareTracking(int careTrackingID)
        {
            CareTrackingVM         viewModel  = new CareTrackingVM();
            CareTrackingRepository repository = new CareTrackingRepository();

            CareTrackingDTO careTrackingDTO = repository.GetCareTrackingByID(careTrackingID);



            viewModel.ID                 = careTrackingDTO.CareTrackingID;
            viewModel.CareDate           = careTrackingDTO.CareDate;
            viewModel.BusinessCenterID   = careTrackingDTO.BusinessCenterID;
            viewModel.BusinessCenterDesc = careTrackingDTO.BusinessCenterName;
            viewModel.MachineGroupID     = careTrackingDTO.MachineGroupID;
            viewModel.MachineGroupDesc   = careTrackingDTO.MachineGroupName;
            viewModel.MachineID          = careTrackingDTO.MachineID;
            viewModel.MachineDesc        = careTrackingDTO.MachineName;
            viewModel.CareDescription    = careTrackingDTO.CareDescription;
            viewModel.CareType           = careTrackingDTO.CareType;
            viewModel.CareTypeDesc       = careTrackingDTO.CareTypeDesc;
            viewModel.PlanedCareType     = careTrackingDTO.PlanedCareType;
            viewModel.PlanedCareTypeDesc = careTrackingDTO.PlanedCareTypeDesc;
            viewModel.CareTeamType       = careTrackingDTO.CareTeamType;
            viewModel.CareTeamTypeDesc   = careTrackingDTO.CareTeamTypeDesc;
            //viewModel.ResultTypeDesc = careTrackingDTO.ResultTypeDesc;
            //viewModel.ResultDescription = careTrackingDTO.ResultDescription;

            viewModel.RCareTrackingDetailList = repository.GetCareTrackingDetailsByCTID(careTrackingDTO.CareTrackingID);


            return(View(viewModel));
        }
Exemplo n.º 2
0
        public ActionResult CareTrackingDetailIndex(int careTrackingID)
        {
            CareTrackingRepository       repository             = new CareTrackingRepository();
            List <CareTrackingDetailDTO> careTrackingDetailDTOs = repository.GetCareTrackingDetailsByCTID(careTrackingID);
            CareTrackingVM viewModel = new CareTrackingVM();

            viewModel.ID = careTrackingID;
            viewModel.RCareTrackingDetailList = careTrackingDetailDTOs;
            return(View(viewModel));
        }