Ejemplo n.º 1
0
        /// <summary>
        /// 根据当前包装机,的整体包序,和条烟流水号获取数据显示到
        /// </summary>
        /// <param name="packageIndex"></param>
        /// <param name="CinNum"></param>
        /// <param name="flag">标志, 0:安装包序查询, 1:任务号查询 ;默认0</param>
        void BindBillInfo(int packageIndex = 0, int flag = 0)
        {
            List <TobaccoInfo> list = new List <TobaccoInfo>();

            if (flag == 0)
            {
                list = br.GetTobaccoInfoss(packageIndex, cs.Height);
            }
            else if (flag == 1)
            {
                list = br.GetTobaccoInfos(packageIndex, cs.Height);
            }
            if (list.Any())
            {
                cs.UpdateValue(list);
                var firstList = list.FirstOrDefault();
                var task      = FmOrderInofFun.QueryTaskList("", firstList.BillCode, GlobalPara.PackageNo).FirstOrDefault();
                if (task != null)
                {
                    lblcutcode.Text  = "任务流水号:" + firstList.PacktaskNum;
                    lbllinename.Text = "线路名称:" + task.REGIONCODE;
                    lblcutname.Text  = "客户名称:" + task.CUSTOMERNAME;
                    lblcuscode.Text  = "客户编码:" + task.CUSTOMERCODE;
                    lblcutcount.Text = "客户包数:" + firstList.PackgeSeq + "/" + firstList.OrderPackageQty;
                    lblallcount.Text = "总 包 号:" + firstList.GlobalIndex + "/" + br.Length;
                    //lblRcOUNT.Text = "车组包数:"+"/";
                }
            }
            LabBind();
        }
Ejemplo n.º 2
0
        private void btn_Query_Click(object sender, EventArgs e)
        {
            task = null;
            task = new EFModle.Model.TaskList();
            DGV_OrderInfo.DataSource = null;
            DGV_OrderInfo.DataSource = FmOrderInofFun.QueryTaskList(comboBox_QueryCriteria.SelectedValue.ToString(), textBox_QueryText.Text, packageno);

            DGV_OrderInfo.ColumnHeadersVisible  = true;
            DGV_OrderInfo.Columns[0].HeaderText = "任务号";
            DGV_OrderInfo.Columns[0].Width      = 70;
            DGV_OrderInfo.Columns[1].HeaderText = "客户名称";
            DGV_OrderInfo.Columns[1].Width      = 280;
            DGV_OrderInfo.Columns[2].HeaderText = "专卖证号";
            DGV_OrderInfo.Columns[2].Width      = 105;
            DGV_OrderInfo.Columns[3].HeaderText = "车组号";
            DGV_OrderInfo.Columns[3].Width      = 70;
            DGV_OrderInfo.Columns[4].HeaderText = "户 序";
            DGV_OrderInfo.Columns[4].Width      = 60;
            DGV_OrderInfo.Columns[5].HeaderText = "订单总包数";
            DGV_OrderInfo.Columns[5].Width      = 95;
            DGV_OrderInfo.Columns[6].HeaderText = "订单总烟量";
            DGV_OrderInfo.Columns[6].Width      = 95;
            DGV_OrderInfo.Columns[7].Visible    = false;
            DGV_OrderInfo.Columns[8].Visible    = false;
            DGV_OrderInfo.ClearSelection();
        }