public FormGetTableMeta()
 {
     InitializeComponent();
     this.getTableMetaControl1.eventGetTableInfo += new DelegateGetTableInfo(getTableMetaControl1_eventGetTableInfo);
     new DgvFilterPopup.DgvFilterManager(this.dataGridView1);
     CDataGridViewUtils.CopyPasteDataGridView(this.dataGridView1);
 }
示例#2
0
        public GetTableMetaControl()
        {
            InitializeComponent();
            tablelist = new List <TableInfo>();
            TitleList = new List <string>();

            new DgvFilterPopup.DgvFilterManager(this.dataGridView1);
            new DgvFilterPopup.DgvFilterManager(this.dataGridView2);
            CDataGridViewUtils.CopyPasteDataGridView(this.dataGridView1);
            CDataGridViewUtils.CopyPasteDataGridView(this.dataGridView2);
        }
 public ReadTableControl()
 {
     InitializeComponent();
     rowNum.Text = "500";
     tablelist   = new List <TableInfo>();
     this.cbx_systemlist.DataSource = null;
     this.cbx_systemlist.DataSource = ConfigFileTool.SAPGlobalSettings.GetSAPClientList();
     cbx_systemlist.Text            = ConfigFileTool.SAPGlobalSettings.GetDefaultSapCient();
     new DgvFilterPopup.DgvFilterManager(this.dataGridView1);
     new DgvFilterPopup.DgvFilterManager(this.dataGridView2);
     CDataGridViewUtils.CopyPasteDataGridView(this.dataGridView1);
     CDataGridViewUtils.CopyPasteDataGridView(this.dataGridView2);
 }
示例#4
0
        public FormCopyTable()
        {
            InitializeComponent();
            conditionList = new List <string>();
            textBoxSourceSystem.Items.Clear();
            textBoxTargetSystem.Items.Clear();
            SAPINT.SAPLogonConfigList.SystemNameList.ForEach(item => { textBoxSourceSystem.Items.Add(item); });
            SAPINT.SAPLogonConfigList.SystemNameList.ForEach(item => { textBoxTargetSystem.Items.Add(item); });
            //textBoxSourceSystem.DataSource = SAPINT.SAPConfigList.SystemNameList;
            //textBoxTargetSystem.DataSource = SAPINT.SAPConfigList.SystemNameList;

            dt = new DataTable();
            dt.Columns.Add(new DataColumn()
            {
                ColumnName = "FIELD", DataType = typeof(String)
            });
            this.dgvPreviewTable.DataSource = dt;

            CDataGridViewUtils.CopyPasteDataGridView(this.dgvPreviewTable);
        }
示例#5
0
        private void dgvConditioin_KeyDown(object sender, KeyEventArgs e)
        {
            try
            {
                if (e.Modifiers == Keys.Control)
                {
                    switch (e.KeyCode)
                    {
                    case Keys.C:
                        CDataGridViewUtils.CopyToClipboard(dgvConditioin);
                        break;

                    case Keys.V:
                        // PasteClipboardValue(dgvBatchInput  ,false);
                        CDataGridViewUtils.Paste(dgvConditioin, "", 0, false);
                        break;
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Copy/paste operation failed. " + ex.Message, "Copy/Paste", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }