Example #1
0
        private void btnOptbl_Click(object sender, EventArgs e)
        {
            FrmOpOrder frmoo = new FrmOpOrder();

            //  frmoo.Flag = textOrder.Text;
            if (frmoo.ShowDialog() == DialogResult.OK)
            {
                textOrder.Text = frmoo.Flag;

                // DataClass.MySQLFunction.BindDatagridView(textOrder.Text.Trim());
                dataBatch.DataSource = DataClass.MySQLFunction.BindDatagridView(textOrder.Text.Trim()).Tables[0];
            }
            textSize.Text = DataClass.MySQLFunction.GetDateSize();
        }
Example #2
0
        private void btnOpOrder_Click(object sender, EventArgs e)
        {
            FrmOpOrder      frmoo = new FrmOpOrder();
            List <OderInfo> lst   = new List <OderInfo>();

            if (frmoo.ShowDialog() == DialogResult.OK)
            {
                textOrder.Text = frmoo.Flag;
                try
                {
                    dataBatch.DataSource = DataClass.MySQLFunction.BindData(textOrder.Text.Trim()).Tables[0];
                    lst = DataClass.MySQLFunction.ReadOrderData(textOrder.Text);
                    //多条记录
                    this.od       = lst[0];
                    od.isLoad     = true;
                    textSize.Text = DataClass.MySQLFunction.GetDateSize();
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
        }