Esempio n. 1
0
 private void excelColumnsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (FormSettings.Display(SheetIndex, FirstRow, TCID_Column, Document_Column, Result_Column, Other_Columns).Equals(DialogResult.OK))
     {
         SheetIndex      = FormSettings.Sheet_Index;
         FirstRow        = FormSettings.First_Row;
         TCID_Column     = FormSettings.ID_Column;
         Result_Column   = FormSettings.Result_Column;
         Document_Column = FormSettings.Document_Column;
         Other_Columns.Clear();
         Other_Columns = FormSettings.Other_Columns;
         updateConfig();
         if (strBaseReport.Length > 0 && trMain != null)
         {
             openBaseReport();
         }
     }
 }
Esempio n. 2
0
        public static DialogResult Display(int sheet_index, int first_row, String ID_col, String document_col, String result_col, List <String> other_cols)
        {
            if (me == null)
            {
                me = new FormSettings();
            }
            me.numSheetIndex.Value    = sheet_index;
            me.numFirstRow.Value      = first_row;
            me.cbbIDColumn.Text       = ID_col;
            me.cbbDocumentColumn.Text = document_col;
            me.cbbResultColumn.Text   = result_col;
            String othersTemp = "";

            foreach (String other_col in other_cols)
            {
                othersTemp += other_col.Trim() + ",";
            }
            me.txtOthersColumn.Text = othersTemp.TrimEnd(',');

            return(me.ShowDialog());
        }