Exemple #1
0
        private string GetApproveLog(string workflowInstanceID)
        {
            var alList = _alService.GetApproveLogByWorkflowInstanceID(workflowInstanceID);

            alList.ForEach(item =>
            {
                var tsUser = _employeeAppService.GetEmployeeByCode(item.CurrentOperator);
                item.CurrentOperatorName = tsUser.EmployeeName + "(" + tsUser.EmployeeCode + ")";
            });
            return(Common.CommonHelper.GetApproveLogTreeHtml(alList));
        }
Exemple #2
0
        private ActionResult GetAllApproveLog(string timesheetIdList)
        {
            List <ApproveLogForComment> alfc = new List <ApproveLogForComment>();
            var tsIdList = timesheetIdList.Split(',');
            List <Timesheet.Timesheet> tsList = new List <Timesheet.Timesheet>();

            foreach (var tsId in tsIdList)
            {
                tsList.Add(_tsService.GetTimesheetsByID(int.Parse(tsId.Trim())));
            }
            string workflowInstanceID = string.Empty;
            var    list = _alService.GetApproveLogByWorkflowInstanceID(workflowInstanceID);

            return(View(list));
        }