Пример #1
0
        public FormTableReadMeta()
        {
            InitializeComponent();
            this.cbx_systemlist.DataSource = ConfigFileTool.SAPGlobalSettings.GetSAPClientList();
            this.cbx_systemlist.Text       = ConfigFileTool.SAPGlobalSettings.GetDefaultSapCient();

            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);
        }
Пример #2
0
        public FormFunctionMetaEx()
        {
            InitializeComponent();
            new DgvFilterPopup.DgvFilterManager(this.dgvDetail);
            new DgvFilterPopup.DgvFilterManager(this.dgvTableContent);
            this.cbx_SystemList.DataSource = ConfigFileTool.SAPGlobalSettings.GetSAPClientList();
            this.cbx_SystemList.Text       = ConfigFileTool.SAPGlobalSettings.GetDefaultSapCient();

            CDataGridViewUtils.CopyPasteDataGridView(this.dgvTableContent);
            CDataGridViewUtils.CopyPasteDataGridView(this.dgvImport);
            CDataGridViewUtils.CopyPasteDataGridView(this.dgvExport);
            CDataGridViewUtils.CopyPasteDataGridView(this.dgvChanging);
            CDataGridViewUtils.CopyPasteDataGridView(this.dgvException);
            CDataGridViewUtils.CopyPasteDataGridView(this.dgvTables);
            CDataGridViewUtils.CopyPasteDataGridView(this.dgvDetail);
        }
Пример #3
0
        public FormRestClient()
        {
            InitializeComponent();
            m_FormFieldsReq = new DataTable();
            m_FormFieldsReq.Columns.Add("Name", typeof(string));
            m_FormFieldsReq.Columns.Add("Value", typeof(string));

            this.dgvFormFieldsReq.DataSource = m_FormFieldsReq;

            m_FormFieldsRes = new DataTable();
            m_FormFieldsRes.Columns.Add("Name", typeof(string));
            m_FormFieldsRes.Columns.Add("Value", typeof(string));

            m_HeaderReq = new DataTable();
            m_HeaderReq.Columns.Add("Name", typeof(string));
            m_HeaderReq.Columns.Add("Value", typeof(string));

            m_HeaderRes = new DataTable();
            m_HeaderRes.Columns.Add("Name", typeof(string));
            m_HeaderRes.Columns.Add("Value", typeof(string));

            this.dgvHeadersRes.DataSource    = m_HeaderReq;
            this.dgvHeadersReq.DataSource    = m_HeaderReq;
            this.dgvFormFieldsReq.DataSource = m_FormFieldsReq;

            this.cbxAcceptType.Items.Add("application/x-www-form-urlencoded");
            this.cbxAcceptType.Items.Add("multipart/form-data request");
            this.cbxAcceptType.Items.Add("application/json");
            this.cbxAcceptType.Items.Add("application/javascript");
            this.cbxAcceptType.Items.Add("application/xml");
            this.cbxAcceptType.Items.Add("text/html");
            this.cbxAcceptType.Items.Add("text/plain");
            this.cbxAcceptType.Items.Add("text/xml");
            this.cbxAcceptType.Text = "text/xml";

            this.cbxCharSet.Items.Add("UTF-8");
            this.cbxCharSet.Text = "UTF-8";

            this.radioBtnGET.Checked          = true;
            dgvFormFieldsReq.CellDoubleClick += dgvFormFieldsReq_CellDoubleClick;

            CDataGridViewUtils.CopyPasteDataGridView(this.dgvFormFieldsReq);
            CDataGridViewUtils.CopyPasteDataGridView(this.dgvHeadersReq);
            CDataGridViewUtils.CopyPasteDataGridView(this.dgvHeadersRes);
        }
Пример #4
0
 private void btnUnSelect2_Click(object sender, EventArgs e)
 {
     CDataGridViewUtils.SelectRows(dataGridView2);
 }
Пример #5
0
        private void InitControls()
        {
            rowNum.Text = "50";

            Tablelist = new List <TableInfo>();

            this.cbx_systemlist.DataSource = null;
            this.cbx_systemlist.DataSource = ConfigFileTool.SAPGlobalSettings.GetSAPClientList();
            this.cbx_systemlist.Text       = ConfigFileTool.SAPGlobalSettings.GetDefaultSapCient();

            new DgvFilterPopup.DgvFilterManager(this.dataGridView1);
            new DgvFilterPopup.DgvFilterManager(this.dataGridView2);

            CDataGridViewUtils.CopyPasteDataGridView(this.dataGridView1);
            CDataGridViewUtils.CopyPasteDataGridView(this.dataGridView2);


            dataGridView1.CellValueChanged += dataGridView1_CellValueChanged;
            dataGridView2.CellValueChanged += dataGridView2_CellValueChanged;
            //
            this.listBox1.DoubleClick  += listBox1_DoubleClick;
            this.listBox1.KeyDown      += listBox1_KeyDown;
            this.listBox1.SelectionMode = SelectionMode.MultiExtended;

            if (File.Exists(m_filepath))
            {
                RestoreFields_And_Condition();
            }
            this.FormClosed += FormTableRead_FormClosed;

            this.txtTableName.TextChanged += txtTableName_TextChanged;
            this.txtDelimiter.Items.AddRange(new object[] {
                "",
                "\t",
                "★",
                "☆",
                "♀",
                "卐",
                "※",
                "◆",
                "◇",
                "◣",
                "◢",
                "◥",
                "▲",
                "▼",
                "△",
                "▽",
                "⊿",
                "◤",
                "◥",
                "▆",
                "▇",
                "█",
                "█",
                "■",
                "▓",
                "〓",
                "≡",
                "╝",
                "╚",
                "╔",
                "╗",
                "╬",
                "═",
                "╓",
                "╩",
                "┠",
                "┯",
                "┷",
                "┏",
                "┓",
                "┗",
                "┛",
                "┳",
                "⊥",
                "﹃",
                "﹄",
                "┐",
                "└",
                "┘",
                "∟",
                "「",
                "」",
                "↑",
                "↓",
                "→",
                "←",
                "↘",
                "↙",
                "♀",
                "♂",
                "┇",
                "┅",
                "﹉",
                "﹊",
                "﹍",
                "﹎",
                "╭"
            });
        }