コード例 #1
0
ファイル: Stockin3.cs プロジェクト: FlashChenZhi/ykk_sz_gm
        private void ClearAll()
        {
            bucketNoBox.Clear();
            bucketWeightBox.Clear();
            ticketNoBox.Clear();
            itemCodeBox.Clear();
            itemName1Box.Clear();
            itemName2Box.Clear();
            itemName3Box.Clear();
            colorCodeBox.Clear();
            planCountBox.Clear();
            planWeightBox.Clear();
            unitWeightBox.Clear();
            itemWeightErrorBox.Clear();
            itemWeightRangeLimitFromBox.Clear();
            itemWeightRangeLimitToBox.Clear();
            itemWeightBox.Clear();
            itemCountBox.Value = itemCountBox.Minimum;
            fixedWeightBox.Clear();
            plasticBagStatusBox.Clear();

            touCyaKu = null;
            zaiKo    = null;
            zKey     = null;
            bucket   = null;

            itemCountBox.ReadOnly = true;
        }
コード例 #2
0
ファイル: StockBack.cs プロジェクト: FlashChenZhi/ykk_sz_gm
        private void DoMckey()
        {
            _hanso = DbAccess.GetHanSo(_mckey);
            if (_hanso == null)
            {
                msgBox.Text = "没有搬送数据";
                return;
            }

            if (_hanso.SAGYOKBN == "5")
            {
                setStatusBox("盘库");
            }

            _bucket = DbAccess.GetBucket(_hanso.BUCKET_NO);
            if (_bucket == null)
            {
                setStatusBox("空箱未登录");
                return;
            }

            List <FNSIJIEntity> sijis = DbAccess.GetSiJis(_mckey);

            if (sijis != null && sijis.Count > 0)
            {
                _zKey                = DbAccess.GetManagedZKey(sijis[0].ZAIKEY);
                bucketNoBox.Text     = _bucket.BUCKET_NO;
                bucketWeightBox.Text = _bucket.PACKING_WEIGHT.ToString();

                ticketNoBox.Text = sijis[0].TICKET_NO;
                //colorCodeBox.Text = sijis[0].COLOR_CODE;

                itemCodeBox.Text  = _zKey.ZAIKEY;
                itemNameBox1.Text = _zKey.ZKNAME1;
                itemNameBox2.Text = _zKey.ZKNAME2;
                itemNameBox3.Text = _zKey.ZKNAME3;

                FNZAIKOEntity zaiKo = DbAccess.GetZaiKoByTicketNo(sijis[0].TICKET_NO);
                if (zaiKo == null)
                {
                    msgBox.Text = "没有库存数据";
                    return;
                }
                unitWeightBox.Text         = (zaiKo.REAL_UNIT_WEIGHT * 1000).ToString();
                sectionBox.Text            = zaiKo.MADE_SECTION;
                lineBox.Text               = zaiKo.MADE_LINE;
                colorCodeBox.Text          = zaiKo.COLOR_CODE;
                planCountBox.Text          = zaiKo.ZAIKOSU.ToString();
                planWeightBox.Text         = (zaiKo.ZAIKOSU * zaiKo.REAL_UNIT_WEIGHT).ToString();// zaiKo.PLAN_WEIGHT.ToString();
                plasticBagStatusBox.Text   = zaiKo.BAG_FLAG == "1" ? "有" : "无";
                chkUsingPlasticBag.Checked = zaiKo.BAG_FLAG == "1";
                fixedWeightBox.Text        = (GlobalAccess.FixedWeight * 1000).ToString();
                setStatusBox("正常");
            }
            else
            {
                msgBox.Text = "无数据";
                return;
            }
        }
コード例 #3
0
ファイル: StockBack.cs プロジェクト: FlashChenZhi/ykk_sz_gm
 private void bucketMaintenanceBtn_Click(object sender, EventArgs e)
 {
     if (!matchMckey())
     {
         this.Close();
     }
     else
     {
         try
         {
             if (!string.IsNullOrEmpty(bucketNoBox.Text))
             {
                 msgBox.Text = string.Empty;
                 BucketMaintenance frm = new BucketMaintenance(bucketNoBox.Text);
                 if (frm.ShowDialog(this) == DialogResult.OK)
                 {
                     FMBUCKETEntity bucket = DbAccess.GetBucket(bucketNoBox.Text);
                     bucketWeightBox.Text = bucket.PACKING_WEIGHT.ToString();
                 }
             }
             else
             {
                 msgBox.Text = "请输入BucketNo";
             }
         }
         catch (Exception ex)
         {
             msgBox.Text = ex.Message;
         }
     }
 }
コード例 #4
0
ファイル: Stockin2.cs プロジェクト: FlashChenZhi/ykk_sz_gm
        private void ClearAll()
        {
            bucketNoBox.Clear();
            bucketWeightBox.Clear();
            ticketNoBox.Clear();
            itemCodeBox.Clear();
            itemNameBox1.Clear();
            itemNameBox2.Clear();
            itemNameBox3.Clear();
            colorCodeBox.Clear();
            lineBox.Clear();
            sectionBox.Clear();
            planCountBox.Clear();
            planWeightBox.Clear();
            unitWeightBox.Clear();
            measureFlagBox.Clear();
            checkCountBox.Value = checkCountBox.Minimum;
            errorBox1.Clear();
            memoBox.Clear();
            //msgBox.Clear();
            chkReStockIn.Checked       = false;
            chkUsingPlasticBag.Checked = false;


            setStatusBox(string.Empty);

            _zaiKo  = null;
            _zKey   = null;
            _bucket = null;
        }
コード例 #5
0
        private bool DoBucketNo()
        {
            if (DbAccess.IsBucketInAutoWarehouse(newBucketNoBox.Text) ||
                DbAccess.IsBucketInFlatWarehouse(newBucketNoBox.Text) ||
                DbAccess.IsBucketInLocation(newBucketNoBox.Text) ||
                DbAccess.IsBucketInTransportation(newBucketNoBox.Text))
            {
                msgBox.Text = "Bucket重复";
                newBucketNoBox.Focus();
                newBucketNoBox.SelectAll();
                return(false);
            }

            FMBUCKETEntity bucket = DbAccess.GetBucket(newBucketNoBox.Text);

            if (bucket == null)
            {
                msgBox.Text = "空箱未登录";
                newBucketNoBox.Focus();
                newBucketNoBox.SelectAll();
                return(false);
            }
            else
            {
                msgBox.Text             = string.Empty;
                newBucketWeightBox.Text = (bucket.PACKING_WEIGHT).ToString();
                return(true);
            }
        }
コード例 #6
0
 private void OtherStockin1_Load(object sender, EventArgs e)
 {
     try
     {
         userIdBox1.Text = GlobalAccess.UserId;
         userIdBox2.Text = GlobalAccess.UserName;
         GlobalAccess.UseMockWeighter = AppConfig.Get("MockWeighter") == "1";
         FMBUCKETEntity bucket = DbAccess.GetBucket(bucketNo);
         bucketNoBox.Text     = bucket.BUCKET_NO;
         bucketWeightBox.Text = bucket.PACKING_WEIGHT.ToString();
     }
     catch (Exception ex)
     {
         msgBox.Text = ex.Message;
     }
 }
コード例 #7
0
ファイル: Stockin2.cs プロジェクト: FlashChenZhi/ykk_sz_gm
        private bool DoBucketNo()
        {
            if (string.IsNullOrEmpty(bucketNoBox.Text))
            {
                msgBox.Text = "BucketNo不可为空";
                return(false);
            }

            FNSTATIONEntity station = DbAccess.GetStation(GlobalAccess.StationNo);

            if (station == null)
            {
                return(false);
            }

            if (station.NYUSYUMODE == Nyusyumode.Empty_Bucket)
            {
                setStatusBox("空箱登录模式");
                bucketWeightBox.Clear();
                return(true);
            }
            else if (station.NYUSYUMODE == Nyusyumode.Normal)    //入库模式
            {
                _bucket = DbAccess.GetBucket(bucketNoBox.Text);
                if (_bucket == null)
                {
                    setStatusBox("空箱未登录");
                    bucketWeightBox.Clear();
                    return(false);
                }

                if (DbAccess.IsBucketInAutoWarehouse(_bucket.BUCKET_NO) ||
                    DbAccess.IsBucketInLocation(_bucket.BUCKET_NO))
                {
                    setStatusBox("Bucket重复");
                    bucketWeightBox.Clear();
                    return(false);
                }

                setStatusBox("正常");
                bucketWeightBox.Text = _bucket.PACKING_WEIGHT.ToString();
                ticketNoBox.Focus();
                ticketNoBox.SelectAll();
                return(true);
            }
            return(false);
        }
コード例 #8
0
        private bool DoBucketNoOnTotal()
        {
            FMBUCKETEntity bucket = DbAccess.GetBucket(newBucketNoBox.Text);

            if (bucket == null)
            {
                msgBox.Text = "空箱未登录";
                newBucketNoBox.Focus();
                newBucketNoBox.SelectAll();
                return(false);
            }
            else
            {
                msgBox.Text             = string.Empty;
                newBucketWeightBox.Text = (bucket.PACKING_WEIGHT).ToString();
                return(true);
            }
        }
コード例 #9
0
ファイル: StockBack.cs プロジェクト: FlashChenZhi/ykk_sz_gm
        private bool DoBucket()
        {
            FNHANSOEntity hansoEntity = DbAccess.GetHanSo(_mckey);

            if (hansoEntity == null)
            {
                msgBox.Text = "无搬送数据";
                bucketWeightBox.Clear();
                return(false);
            }

            if (hansoEntity.BUCKET_NO != bucketNoBox.Text)
            {
                if (DbAccess.IsBucketInAutoWarehouse(bucketNoBox.Text) ||
                    DbAccess.IsBucketInFlatWarehouse(bucketNoBox.Text) ||
                    DbAccess.IsBucketInLocation(bucketNoBox.Text) ||
                    DbAccess.IsBucketInTransportation(bucketNoBox.Text))
                {
                    setStatusBox("Bucket重复");
                    bucketNoBox.Focus();
                    bucketNoBox.SelectAll();
                    bucketWeightBox.Clear();
                    return(false);
                }
            }

            FMBUCKETEntity bucket = DbAccess.GetBucket(bucketNoBox.Text);

            if (bucket == null)
            {
                setStatusBox("空箱未登录");
                bucketNoBox.Focus();
                bucketNoBox.SelectAll();
                bucketWeightBox.Clear();
                return(false);
            }
            else
            {
                msgBox.Text          = string.Empty;
                bucketWeightBox.Text = (bucket.PACKING_WEIGHT).ToString();
                return(true);
            }
        }
コード例 #10
0
 private void BucketMaintenance_Load(object sender, EventArgs e)
 {
     try
     {
         bucketNoBox1.Text = bucketNo;
         bucket            = DbAccess.GetBucket(bucketNo);
         if (bucket != null)
         {
             newBucketWeightBox.Text = bucket.PACKING_WEIGHT.ToString();
         }
         else
         {
             setBtn.Enabled = false;
             MessageBox.Show("无此BucketNo");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #11
0
ファイル: StockBack.cs プロジェクト: FlashChenZhi/ykk_sz_gm
        private void cancelBtn_Click(object sender, EventArgs e)
        {
            if (!matchMckey())
            {
                this.Close();
            }
            else
            {
                try
                {
                    ClearAll();

                    FNPICK_CTLEntity pickCtlEntity = DbAccess.GetPick_Ctl(GlobalAccess.TermNo);
                    if (pickCtlEntity == null)
                    {
                        return;
                    }

                    FNHANSOEntity hansoEntity = DbAccess.GetHanSo(pickCtlEntity.MCKEY);
                    if (hansoEntity == null)
                    {
                        return;
                    }

                    FMBUCKETEntity bucketEntity = DbAccess.GetBucket(hansoEntity.BUCKET_NO);
                    if (_bucket == null)
                    {
                        return;
                    }
                    bucketNoBox.Text     = bucketEntity.BUCKET_NO;
                    bucketWeightBox.Text = bucketEntity.PACKING_WEIGHT.ToString();
                }
                catch (Exception ex)
                {
                    msgBox.Text = ex.Message;
                }
            }
        }
コード例 #12
0
ファイル: Stockin1.cs プロジェクト: FlashChenZhi/ykk_sz_gm
        private void ClearAll()
        {
            bucketNoBox.Clear();
            bucketWeightBox.Clear();
            ticketNoBox.Clear();
            itemCodeBox.Clear();
            itemNameBox1.Clear();
            itemNameBox2.Clear();
            itemNameBox3.Clear();
            colorCodeBox.Clear();
            lineBox.Clear();
            sectionBox.Clear();
            planCountBox.Clear();
            planWeightBox.Clear();
            unitWeightBox.Clear();
            measureFlagBox.Clear();
            checkCountBox.Value = checkCountBox.Minimum;
            unitWeightErrorBox.Clear();
            itemWeightErrorBox.Clear();
            unitWeightRangeLimitFromBox.Clear();
            itemWeightRangeLimitFromBox.Clear();
            unitWeightRangeLimitToBox.Clear();
            itemWeightRangeLimitToBox.Clear();
            itemWeightBox.Clear();
            itemCountBox.Value = itemCountBox.Minimum;
            memoBox.Clear();
            chkReStockIn.Checked = false;
//            manCheck.Checked = false;
            chkUsingPlasticBag.Checked = false;
            fixedWeightBox.Clear();

            _touCyaKu = null;
            _zaiKo    = null;
            _zKey     = null;
            _bucket   = null;

            itemCountBox.ReadOnly = true;
        }
コード例 #13
0
ファイル: Stockin3.cs プロジェクト: FlashChenZhi/ykk_sz_gm
        private bool DoTouCyaKu(FNTOUCYAKUEntity touCyaKu)
        {
            bucketNoBox.Text = touCyaKu.BUCKET_NO.Trim().ToUpper() == "BR" ? string.Empty : touCyaKu.BUCKET_NO;

            if (touCyaKu.BUCKET_NO.Trim().ToUpper() == "BR")
            {
                DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Data_Error);
                setStatusBox("条码未读取");
                setUIOnExport();
                isOperating = true;
                return(false);
            }

            FNHANSOEntity hanSo = DbAccess.GetHanSo(touCyaKu.MCKEY);

            if (hanSo == null)
            {
                setStatusBox("排出");
                touCyaKu.SYORIFLG = "1";
                touCyaKu.Save();
                setUIOnExport();
                isOperating = true;
                return(false);
            }

            if (touCyaKu.HEIGHT_FLAG == "3")    //货形高低异常
            {
                DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Height_Error);
                setStatusBox("Bucket高度异常");
                setUIOnExport();
                isOperating = true;
                return(false);
            }

            FNSTATIONEntity station = DbAccess.GetStation(GlobalAccess.StationNo);

            if (station == null)
            {
                return(false);
            }

            if (station.NYUSYUMODE == Nyusyumode.Empty_Bucket)
            {
                setStatusBox("空箱登录模式");
                isOperating = true;
                return(true);
            }

            if (station.NYUSYUMODE == Nyusyumode.Normal)    //入库模式
            {
                bucket = DbAccess.GetBucket(touCyaKu.BUCKET_NO);
                if (bucket == null)
                {
                    DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Data_Error);
                    setStatusBox("空箱未登录");
                    setUIOnExport();
                    isOperating = true;
                    return(false);
                }

                bucketWeightBox.Text = bucket.PACKING_WEIGHT.ToString();
                if (bucket.HEIGHT_FLAG != touCyaKu.HEIGHT_FLAG)
                {
                    DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Height_Error);
                    setStatusBox("Bucket高度异常");
                    setUIOnExport();
                    isOperating = true;
                    return(false);
                }

                if (DbAccess.IsBucketInLocation(bucket.BUCKET_NO))
                {
                    DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Data_Error);
                    setStatusBox("Bucket重复");
                    setUIOnExport();
                    isOperating = true;
                    return(false);
                }

                zaiKo = DbAccess.GetZaiKoByBucketNo(bucket.BUCKET_NO);
                if (zaiKo == null)
                {
                    DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Data_Error);
                    setStatusBox("Bucket未设定");
                    setUIOnExport();
                    isOperating = true;
                    return(false);
                }

                msgBox.Clear();
                setStatusBox("正常");
                isOperating      = true;
                ticketNoBox.Text = zaiKo.TICKET_NO;
                return(DoBucketNo());
            }
            return(false);
        }
コード例 #14
0
ファイル: StockBack.cs プロジェクト: FlashChenZhi/ykk_sz_gm
 private void DoBucketNo(string bucketNo)
 {
     FMBUCKETEntity bucket = DbAccess.GetBucket(bucketNo);
 }
コード例 #15
0
ファイル: Stockin1.cs プロジェクト: FlashChenZhi/ykk_sz_gm
        private bool DoTouCyaKu(FNTOUCYAKUEntity touCyaKu)
        {
            bucketNoBox.Text = touCyaKu.BUCKET_NO.Trim().ToUpper() == "BR" ? string.Empty : touCyaKu.BUCKET_NO;
            if (touCyaKu.BUCKET_NO.Trim().ToUpper() == "BR")
            {
                DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Data_Error);
                setStatusBox("条码未读取");
                setUIOnExport();
                _isOperating = true;
                return(false);
            }

            FNHANSOEntity hanSo = DbAccess.GetHanSo(touCyaKu.MCKEY);

            if (hanSo == null)
            {
                setStatusBox("排出");
                touCyaKu.SYORIFLG = "1";
                touCyaKu.Save();
                setUIOnExport();
                _isOperating = true;
                return(false);
            }

            if (hanSo.SAGYOKBN == Sagyokbn.ReInput) //再入库
            {
                setStatusBox("通过");
                ShowInfo(hanSo.SYSTEMID);
                return(false);
            }

            if (touCyaKu.HEIGHT_FLAG == "3")    //货形高低异常
            {
                DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Height_Error);
                setStatusBox("Bucket高度异常");
                setUIOnExport();
                _isOperating = true;
                return(false);
            }

            FNSTATIONEntity station = DbAccess.GetStation(GlobalAccess.StationNo);

            if (station == null)
            {
                return(false);
            }

            if (station.NYUSYUMODE == Nyusyumode.Empty_Bucket)
            {
                setStatusBox("空箱登录模式");
                _isOperating = true;
                return(true);
            }

            if (station.NYUSYUMODE == Nyusyumode.Normal)    //入库模式
            {
                _bucket = DbAccess.GetBucket(touCyaKu.BUCKET_NO);
                if (_bucket == null)
                {
                    DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Data_Error);
                    setStatusBox("空箱未登录");
                    setUIOnExport();
                    _isOperating = true;
                    return(false);
                }
                bucketWeightBox.Text = _bucket.PACKING_WEIGHT.ToString();

                if (_bucket.HEIGHT_FLAG != touCyaKu.HEIGHT_FLAG)
                {
                    DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Height_Error);
                    setStatusBox("Bucket高度异常");
                    setUIOnExport();
                    _isOperating = true;
                    return(false);
                }

                if (DbAccess.IsBucketInAutoWarehouse(_bucket.BUCKET_NO) ||
                    DbAccess.IsBucketInLocation(_bucket.BUCKET_NO))
                {
                    DbAccess.callSwitchOnLight(GlobalAccess.StationNo, LightType.Data_Error);
                    setStatusBox("Bucket重复");
                    setUIOnExport();
                    _isOperating = true;
                    return(false);
                }

                msgBox.Clear();
                setStatusBox("正常");
                _isOperating = true;
            }
            return(false);
        }
コード例 #16
0
        private void CheckTask()
        {
            pick_ctl = DbAccess.GetPick_Ctl(GlobalAccess.TermNo);
            if (pick_ctl == null || string.IsNullOrEmpty(pick_ctl.MCKEY == null ? pick_ctl.MCKEY : pick_ctl.MCKEY.Trim()))   //无拣选预定
            {
                ClearAll();
                return;
            }

            FNHANSOEntity hanso = DbAccess.GetHanSo(pick_ctl.MCKEY.Trim());

            if (hanso == null)
            {
                msgBox.Text = "没有搬送数据";
                WriteLog("无法找到Hanso数据,Mckey为" + pick_ctl.MCKEY.Trim());
                return;
            }

            if (hanso.HJYOTAIFLG != "6") //Bucket未到达
            {
                return;
            }

            isOperating = true;                        //操作状态,不再刷数据库

            cancelBtn.Enabled = hanso.SAGYOKBN != "7"; //直行搬送,取消按钮不可按下


            try
            {
                mcKey = GetTaskMckey();  //取得MCKEY,PickingType,剩余作业数,剩余拣选数
            }
            catch (Exception ex)
            {
                throw new Exception("GetTaskMckey出错:" + ex.Message);
            }

            if (string.IsNullOrEmpty(mcKey))
            {
                msgBox.Text = "无法获得作业内容";
                WriteLog("GetTaskMckey无法找到对应数据");
                return;
            }

            if (pickingType == PickingType.Return)  //如果是回库作业,弹出回库窗口
            {
                StockBack frm = new StockBack(mcKey);
                frm.ShowDialog(this);
                isOperating = false;    //回库结束,开启刷数据库
                return;
            }

            sijis = DbAccess.GetSiJis(mcKey);
            if (sijis == null || sijis.Count == 0)
            {
                msgBox.Text = "没有指示数据";
                WriteLog(string.Format("无法找到siji数据,mckey{0}", mcKey));
                return;
            }

            if (sijis[0].ZAIKEY == null)
            {
                msgBox.Text = "无法找到siji.zaikey";
                WriteLog("无法找到siji.zaikey");
                return;
            }

            zKey = DbAccess.GetManagedZKey(sijis[0].ZAIKEY);
            if (zKey == null)
            {
                msgBox.Text = "无法找到ZAIKEY数据";
                WriteLog(string.Format("无法找到ZAIKEY数据,zkey{0}", zKey));
                return;
            }

            originalBucketNoBox.Text = hanso.BUCKET_NO;
            FMBUCKETEntity originalBucket = DbAccess.GetBucket(hanso.BUCKET_NO);

            originalBucketWeightBox.Text = originalBucket == null ? string.Empty : originalBucket.PACKING_WEIGHT.ToString();
            ticketNoBox.Text             = sijis[0].TICKET_NO;
            colorCodeBox.Text            = sijis[0].COLOR_CODE;
            itemCodeBox.Text             = zKey.ZAIKEY;
            itemName1Box.Text            = zKey.ZKNAME1;
            itemName2Box.Text            = zKey.ZKNAME2;
            itemName3Box.Text            = zKey.ZKNAME3;

            zaikoEntity                = DbAccess.GetZaiKoBySystemId(hanso.SYSTEMID);
            unitWeightBox.Text         = zaikoEntity == null ? string.Empty : (zaikoEntity.REAL_UNIT_WEIGHT * 1000).ToString();
            remainJobBox.Text          = remainCount.ToString();
            totalStockoutCountBox.Text = remainPickingQty.ToString();

            planCount = 0;
            foreach (FNSIJIEntity siji in sijis)    //作业数量
            {
                planCount += siji.NYUSYUSU;
            }

            //全拣选时不可输入BucketNo
            newBucketNoBox.ReadOnly = (pickingType == PickingType.Total);


            //收、发计量报告按钮在盘库时不可用
            sendMessageBtn.Enabled    = (pickingType != PickingType.Cycle);
            receiveMessageBtn.Enabled = (pickingType != PickingType.Cycle);

            //BucketNo不一致时,出库取消按钮不可用
            cancelBtn.Enabled = pick_ctl.BUCKETREADING_FLG != "2";

            if (pickingType == PickingType.Total)
            {
                msgBox.Clear();
                emptyBucketPositionBox.Text = "无设置";
                jobTypeBox.Text             = "全拣选";
                jobCountBox.Text            = planCount.ToString();
                newBucketNoBox.Text         = hanso.BUCKET_NO;
                //全拣选时自动读出重量,计量器自动送信
                if (DoBucketNoOnTotal())
                {
                    sendMessageBtn.PerformClick();
                }
            }
            if (pickingType == PickingType.Reverse)
            {
                msgBox.Clear();
                emptyBucketPositionBox.Text = "设置在称重机前";
                jobTypeBox.Text             = "反拣选";
                jobCountBox.Text            = planCount.ToString();
                newBucketNoBox.Focus();
                newBucketNoBox.SelectAll();
            }
            if (pickingType == PickingType.Normal || pickingType == PickingType.Subdivided)
            {
                msgBox.Clear();
                emptyBucketPositionBox.Text = "设置于称重机上";
                jobTypeBox.Text             = pickingType == PickingType.Normal ? "拣选" : "拣选(细分)";
                jobCountBox.Text            = planCount.ToString();
                newBucketNoBox.Focus();
                newBucketNoBox.SelectAll();
            }
            if (pickingType == PickingType.Abnormal)
            {
                msgBox.Clear();
                emptyBucketPositionBox.Text = "无设置";
                if (pick_ctl.BUCKETREADING_FLG == "2")
                {
                    jobTypeBox.Text = "Bucket不一致";
                }
            }
            if (pickingType == PickingType.Cycle)
            {
                msgBox.Clear();
                jobCountBox.Text    = "0";
                newBucketNoBox.Text = hanso.BUCKET_NO;
                FMBUCKETEntity bucketEntity = DbAccess.GetBucket(hanso.BUCKET_NO);
                newBucketWeightBox.Text     = bucketEntity == null ? string.Empty : bucketEntity.PACKING_WEIGHT.ToString();
                emptyBucketPositionBox.Text = "无设置";
                jobTypeBox.Text             = "盘库";
            }
        }