public TableData( int reportIid, string reportFile, ReportTypeEnum reportType, PrintStatusEnum printStatus, int printPathIid, int numCopy, bool sendMessage, bool graph, SortDirectionEnum groupDirection1, SortDirectionEnum groupDirection2, SortDirectionEnum groupDirection3, string groupHeader1, string groupHeader2, string groupHeader3, string groupTable1, string groupTable2, string groupTable3, SortDirectionEnum sortDirection1, SortDirectionEnum sortDirection2, SortDirectionEnum sortDirection3, string sortHeader1, string sortHeader2, string sortHeader3, string sortTable1, string sortTable2, string sortTable3, int bulletinNumber, string batchName, int batchUser, int batchPathId, int emailId, OutputEnum outputType, int dirPathId, string CompletedReportFile, CopyStatusEnum copyStatus, EmailStatusEnum emailStatus, RunStatusEnum runStatus, int eMailType) { ReportIid = reportIid; ReportFile = reportFile; ReportType = reportType; PrintStatus = printStatus; PrintPathIid = printPathIid; NumCopy = numCopy; SendMessage = sendMessage; Graph = graph; GroupDirection1 = groupDirection1; GroupDirection2 = groupDirection2; GroupDirection3 = groupDirection3; GroupHeader1 = groupHeader1; GroupHeader2 = groupHeader2; GroupHeader3 = groupHeader3; GroupTable1 = groupTable1; GroupTable2 = groupTable2; GroupTable3 = groupTable3; SortDirection1 = sortDirection1; SortDirection2 = sortDirection2; SortDirection3 = sortDirection3; SortHeader1 = sortHeader1; SortHeader2 = sortHeader2; SortHeader3 = sortHeader3; SortTable1 = sortTable1; SortTable2 = sortTable2; SortTable3 = sortTable3; BulletinNumber = bulletinNumber; BatchName = batchName; BatchUser = batchUser; BatchPathId = batchPathId; EmailId = emailId; OutputType = outputType; DirPathId = dirPathId; this.CompletedReportFile = CompletedReportFile; CopyStatus = copyStatus; EmailStatus = emailStatus; RunStatus = runStatus; EmailType = eMailType; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) { return(""); } PrintStatusEnum status = (PrintStatusEnum)value; switch (status) { case PrintStatusEnum.NotPrint: return(NotPrintColor); case PrintStatusEnum.Success: return(SuccessColor); case PrintStatusEnum.Fail: return(FailColor); default: return(NotPrintColor); } }