コード例 #1
0
        public SPR_report_UserControl()
        {
            this.InitializeComponent();
            if (Utility.Is_DWRIN_admin())
            {
                this.upload_button.Visible = true;
            }

            UltraGrid_helper.InitGrid(this.main_ultraGrid);

            UltraTextEditor_setting setting_pending = new UltraTextEditor_setting();

            setting_pending.AddButton("Approve", "OK");
            setting_pending.AddButton("Reject", "Cancel");
            setting_pending.AddButton("ViewData");
            this.pending_textEditor = UltraTextEditor_helper.CreateTextEditorButtons(setting_pending);
            this.pending_textEditor.EditorButtonClick += this.ActionButtonEvent_textEditor;

            UltraTextEditor_setting setting_appr = new UltraTextEditor_setting();

            setting_appr.AddButton("Restore", "Restore");
            setting_appr.AddButton("ViewData");
            this.appr_textEditor = UltraTextEditor_helper.CreateTextEditorButtons(setting_appr);
            this.appr_textEditor.EditorButtonClick += this.ActionButtonEvent_textEditor;

            UltraTextEditor_setting setting_reject = new UltraTextEditor_setting();

            setting_reject.AddButton("Restore", "Restore");
            setting_reject.AddButton("ViewData");
            this.rej_textEditor = UltraTextEditor_helper.CreateTextEditorButtons(setting_reject);
            this.rej_textEditor.EditorButtonClick += this.ActionButtonEvent_textEditor;
        }
コード例 #2
0
ファイル: DailyJobs_form.cs プロジェクト: huangss0/GTS0
        public DailyJobs_form()
        {
            this.InitializeComponent();

            this.sourceDT = this.Get_dailyJobs_dt();
            UltraGrid_helper.SetDataSource(this.main_ultraGrid, this.sourceDT);
            UltraGrid_helper.InitGrid(this.main_ultraGrid);

            this.main_ultraGrid.DisplayLayout.Bands[0].Columns["ID"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
            this.main_ultraGrid.DisplayLayout.Bands[0].Columns["ID"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
        }
コード例 #3
0
ファイル: MainForm_init.cs プロジェクト: huangss0/GTS0
        public MainForm()
        {
            this.InitializeComponent();

            UltraGrid_helper.SetDataSource(this.main_ultraGrid, this.tsk_vc.sourceDT);
            UltraGrid_helper.InitGrid(this.main_ultraGrid, false, false);
            UltraGrid_helper.Set_readOnly_columns(this.main_ultraGrid, false, 0);
            UltraGrid_helper.SetMaxWidth(this.main_ultraGrid, 250);

            this.main_ultraGrid.DisplayLayout.Bands[0].Columns["TaskDetailID"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
            this.main_ultraGrid.DisplayLayout.Bands[0].Columns["TaskDetailID"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
            this.main_ultraGrid.DisplayLayout.Bands[0].SortedColumns.Add("TaskDetailID", false);
        }
コード例 #4
0
        public Form_DividendSelector()
        {
            this.InitializeComponent();

            this.sourctDT.Columns.Add("DividendIndex", typeof(int));
            this.sourctDT.Columns.Add("CUSIP");
            this.sourctDT.Columns.Add("RecordDate", typeof(DateTime));
            this.sourctDT.Columns.Add("Depository");
            this.sourctDT.Columns.Add("Issue");

            this.main_ultraGrid.DataSource = this.sourctDT;

            this.main_ultraGrid.DisplayLayout.Bands[0].Columns["DividendIndex"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
            this.main_ultraGrid.DisplayLayout.Bands[0].Columns["DividendIndex"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;

            UltraGrid_helper.InitGrid(this.main_ultraGrid);
        }
コード例 #5
0
 public XBRL_UserControl()
 {
     this.InitializeComponent();
     UltraGrid_helper.InitGrid(this.main_ultraGrid, true, true);
     this.Prepare_actionColumn();
 }