예제 #1
0
        private void loadSKUPicking(string orderkey, string isdiff)
        {
            //DataTable dt = checker.GetCheckLog(orderkey, dropid);
            QueryLogDelegate querydelegate = new QueryLogDelegate(checker.GetSKUPicking);

            querydelegate.BeginInvoke(orderkey, isdiff, new AsyncCallback(res =>
            {
                QueryLogDelegate query = (QueryLogDelegate)res.AsyncState;
                DataTable dt           = query.EndInvoke(res);

                this.Invoke((QueryCompleted) delegate
                {
                    this.dataGridView1.DataSource = dt;


                    dataGridView1.Columns[0].HeaderText = "分选序号";
                    dataGridView1.Columns[0].Width      = 40;
                    dataGridView1.Columns[1].HeaderText = "订单号";
                    dataGridView1.Columns[2].HeaderText = "料号";
                    dataGridView1.Columns[3].HeaderText = "订单数量";
                    dataGridView1.Columns[4].HeaderText = "复检数量";
                    dataGridView1.Columns[5].HeaderText = "复检盘数";
                    dataGridView1.Columns[6].HeaderText = "差异";
                }, dt);
            }), querydelegate);
        }
예제 #2
0
        private void loadCheckLog(string orderkey, string dropid)
        {
            //DataTable dt = checker.GetCheckLog(orderkey, dropid);
            QueryLogDelegate querydelegate = new QueryLogDelegate(checker.GetCheckLog);

            querydelegate.BeginInvoke(orderkey, dropid, new AsyncCallback(res => {
                QueryLogDelegate query = (QueryLogDelegate)res.AsyncState;
                DataTable dt           = query.EndInvoke(res);

                this.Invoke((QueryCompleted) delegate
                {
                    this.countlb.Text = string.Format("({0}) 盘", dt.Rows.Count);
                    this.checkrecordgrid.DataSource = dt;


                    checkrecordgrid.Columns[0].HeaderText = "ID";
                    checkrecordgrid.Columns[0].Width      = 40;
                    checkrecordgrid.Columns[1].HeaderText = "货主";
                    checkrecordgrid.Columns[2].HeaderText = "料号";
                    checkrecordgrid.Columns[3].HeaderText = "复检数量";
                    checkrecordgrid.Columns[4].HeaderText = "落放";
                    checkrecordgrid.Columns[6].HeaderText = "订单号";
                    checkrecordgrid.Columns[5].HeaderText = "条码信息";
                }, dt);
            }), querydelegate);
        }
예제 #3
0
        private void loadSKUPicking(string orderkey,string isdiff)
        {
            //DataTable dt = checker.GetCheckLog(orderkey, dropid);
            QueryLogDelegate querydelegate = new QueryLogDelegate(checker.GetSKUPicking);

            querydelegate.BeginInvoke(orderkey, isdiff, new AsyncCallback(res =>
            {

                QueryLogDelegate query = (QueryLogDelegate)res.AsyncState;
                DataTable dt = query.EndInvoke(res);

                this.Invoke((QueryCompleted)delegate
                {

                    
                    this.dataGridView1.DataSource = dt;


                    dataGridView1.Columns[0].HeaderText = "分选序号";
                    dataGridView1.Columns[0].Width = 40;
                    dataGridView1.Columns[1].HeaderText = "订单号";
                    dataGridView1.Columns[2].HeaderText = "料号";
                    dataGridView1.Columns[3].HeaderText = "订单数量";
                    dataGridView1.Columns[4].HeaderText = "复检数量";
                    dataGridView1.Columns[5].HeaderText = "复检盘数";
                    dataGridView1.Columns[6].HeaderText = "差异";
                
                }, dt);

            }), querydelegate);


        }
예제 #4
0
        private void loadCheckLog(string orderkey, string dropid)
        {
            //DataTable dt = checker.GetCheckLog(orderkey, dropid);
              QueryLogDelegate querydelegate = new QueryLogDelegate(checker.GetCheckLog);

            querydelegate.BeginInvoke(orderkey, dropid, new AsyncCallback(res => {

                 QueryLogDelegate query = (QueryLogDelegate)res.AsyncState;
                DataTable dt = query.EndInvoke(res);

                this.Invoke((QueryCompleted)delegate
                {

                    this.countlb.Text = string.Format("({0}) 盘", dt.Rows.Count);
                    this.checkrecordgrid.DataSource = dt;


                    checkrecordgrid.Columns[0].HeaderText = "ID";
                    checkrecordgrid.Columns[0].Width = 40;
                    checkrecordgrid.Columns[1].HeaderText = "货主";
                    checkrecordgrid.Columns[2].HeaderText = "料号";
                    checkrecordgrid.Columns[3].HeaderText = "复检数量";
                    checkrecordgrid.Columns[4].HeaderText = "落放";
                    checkrecordgrid.Columns[6].HeaderText = "订单号";
                    checkrecordgrid.Columns[5].HeaderText = "条码信息";
                }, dt);

                }),querydelegate);
            
         
        }