public ToolStripMenuItem GetOutputTsmi(ToolStripDropDownButton tsddb, OutputEnum et)
 {
     foreach (ToolStripMenuItem tsmi in tsddb.DropDownItems)
     {
         if ((OutputEnum)tsmi.Tag == et)
         {
             return(tsmi);
         }
     }
     return(new ToolStripMenuItem());
 }
Пример #2
0
 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 bool ReconfigOutputsUI()
        {
            // Outputs > Files
            bool bHasValidFileUploader = HasValidFileUploader();

            // Outputs > Text
            bool bHasValidTextUploader = HasValidTextUploader(bHasValidFileUploader);

            // Outputs > Images
            bool bHasValidImageUploader = HasValidImageUploader(bHasValidFileUploader);

            // Outputs
            foreach (ToolStripMenuItem tsmi in tsddbOutputs.DropDownItems)
            {
                OutputEnum ut = (OutputEnum)tsmi.Tag;
                switch (ut)
                {
                case OutputEnum.RemoteHost:
                    if (!bHasValidTextUploader && !bHasValidImageUploader)
                    {
                        tsmi.Checked = false;
                    }
                    break;

                case OutputEnum.SharedFolder:
                    tsmi.Enabled = Engine.ConfigUploaders.LocalhostAccountList.Count > 0;
                    if (!tsmi.Enabled)
                    {
                        tsmi.Checked = false;
                    }
                    break;
                }
            }

            return(false);
        }
Пример #4
0
 public Token()
 {
     Output = OutputEnum.FullReplace;
 }
 public ToolStripMenuItem GetOutputTsmi(ToolStripDropDownButton tsddb, OutputEnum et)
 {
     foreach (ToolStripMenuItem tsmi in tsddb.DropDownItems)
     {
         if ((OutputEnum)tsmi.Tag == et)
         {
             return tsmi;
         }
     }
     return new ToolStripMenuItem();
 }