Пример #1
0
        public OpenOrds(string accno, string passwd)
        {
            InitializeComponent();

            table = new DataTable();
            dataGridView1.DataSource = table;

            string[] name       = Enum.GetNames(typeof(ColumnName));
            string[] headertext = Enum.GetNames(typeof(ColumnText));

            for (int i = 0; i < name.Length; i++)
            {
                table.Columns.Add(name[i]);
                dataGridView1.Columns[i].HeaderText = headertext[i];
            }

            Dictionary <string, string> InputDataTable = new Dictionary <string, string>();

            InputDataTable.Add("accno", accno);
            InputDataTable.Add("passwd", passwd);
            InputDataTable.Add("chegb", "2");
            InputDataTable.Add("sortgb", "1");
            t0434 myt0434 = new t0434(InputDataTable);

            myt0434.CallBackMethod += ReceveData;
            myt0434.CallBackMsg    += ReceveMsg;
            myt0434.QueryExcute();
        }
Пример #2
0
        private void 조회()
        {
            Real해제();

            Dictionary <string, string> InputDataTable = new Dictionary <string, string>();

            InputDataTable.Add("accno", cmb_AccNum.SelectedItem.ToString().Trim());
            InputDataTable.Add("passwd", txt_Pass.Text.Trim());
            InputDataTable.Add("chegb", "0");
            InputDataTable.Add("sortgb", "1");
            t0434 myt0434 = new t0434(InputDataTable);

            myt0434.CallBackMethod += ReceveData;
            myt0434.CallBackMsg    += ReceveMsg;
            Thread trd = new Thread(new ThreadStart(myt0434.QueryExcute));

            trd.Start();
        }