Ejemplo n.º 1
0
        //Add Data From Linked Tables for Display
        public void EditItemForDisplay(WorkFlowItem workFlowItem)
        {
            //Add Form INfo
            FormRepository formRepository = new FormRepository();
            Form           form           = new Form();

            form = formRepository.GetForm(workFlowItem.FormId);
            if (form != null)
            {
                workFlowItem.FormName = form.FormName;
            }

            //Add PolicyGroupName
            WorkFlowGroupRepository workFlowGroupRepository = new WorkFlowGroupRepository();
            WorkFlowGroup           workFlowGroup           = new WorkFlowGroup();

            workFlowGroup = workFlowGroupRepository.GetGroup(workFlowItem.WorkFlowGroupId);
            if (workFlowGroup != null)
            {
                workFlowItem.WorkFlowGroupName = workFlowGroup.WorkFlowGroupName;
            }
        }