Beispiel #1
0
 /// <summary>
 /// 进入扫描快递界面
 /// </summary>
 /// <param name="voiceEnable"></param>
 private void NavScanTrackingNumState(bool voiceEnable)
 {
     CLog4net.LogInfo("进入扫描快递界面");
     if (voiceEnable)
     {
         voiceService.BroadcastOnce("请扫描快递单号");
     }
     scanTrackingNum1.BringToFront();
     scanTrackingNum1.inputFocus();
     scanTrackingNum1.errorMessage("");
     currentPanel = panelName.scanTrackingNum;
     resetCountdownAndBack(60, true, false);
 }
Beispiel #2
0
 /// <summary>
 /// 进入输入取件人手机号码界面
 /// </summary>
 /// <param name="voiceEnable"></param>
 /// <param name="errorMessage"></param>
 private void NavInputConsigneeTelState(bool voiceEnable, string errorMessage)
 {
     CLog4net.LogInfo("进入输入取件人手机号码界面");
     if (voiceEnable)
     {
         voiceService.BroadcastOnce("请输入取件人手机号码");
     }
     inputConsigneeTel1.BringToFront();
     inputConsigneeTel1.inputFocus();
     inputConsigneeTel1.errorMessage(errorMessage);
     currentPanel = panelName.inputConsigneeTel;
     resetCountdownAndBack(60, true, true);
 }
Beispiel #3
0
 /// <summary>
 /// 点击寄件,进入输入员工号码界面
 /// </summary>
 /// <param name="voiceEnable"></param>
 /// <param name="errorMessage"></param>
 private void NavInputCourierIDState(bool voiceEnable, string errorMessage)
 {
     CLog4net.LogInfo("点击寄件,进入输入账号界面");
     if (voiceEnable)
     {
         voiceService.BroadcastOnce("请刷卡或输入账号");
     }
     inputCourierID1.BringToFront();
     inputCourierID1.errorMessage(errorMessage);
     inputCourierID1.inputFocus();
     currentPanel = panelName.inputCourierID;
     resetCountdownAndBack(60, true, true);
 }
Beispiel #4
0
        /// <summary>
        /// 进入创建包裹结束界面
        /// </summary>
        /// <param name="ConsigneeTel"></param>
        /// <param name="TrackingNum"></param>
        /// <param name="courierNum"></param>
        private void NavSavePackageSuccessState(string ConsigneeTel, string TrackingNum, string courierNum)
        {
            CLog4net.LogInfo("进入创建包裹结束界面");
            //显示寄存信息
            savePackageSuccess1.setInfo(ConsigneeTel, TrackingNum, courierNum);
            string voiceString = string.Format("存件成功,您的包裹在{0}号箱,请确认柜门关闭,谢谢", courierNum);

            voiceService.BroadcastOnce(voiceString);

            savePackageSuccess1.BringToFront();
            currentPanel = panelName.savePackageSuccess;
            savePackageSuccess1.errorMessage("");
            resetCountdownAndBack(10, true, true);
        }
Beispiel #5
0
        /// <summary>
        /// 进入选择智能柜界面
        /// </summary>
        private void NavChooseBoxState()
        {
            CLog4net.LogInfo("进入选择智能柜界面");
            voiceService.BroadcastOnce("请选择智能柜");
            this.tempChooseBox = null;

            int[] boxCount = boxsManager.GetAvailableBoxCount();
            //更新页面的box数量
            chooseBox1.updateBoxNum(boxCount[2], boxCount[1], boxCount[0]);
            chooseBox1.BringToFront();
            chooseBox1.clearCheckedInfo();
            chooseBox1.errorMessage("");
            currentPanel = panelName.chooseBox;
            resetCountdownAndBack(120, true, true);
        }
Beispiel #6
0
 private void NavGetPackageSuccessState()
 {
     if (InvokeRequired)
     {
         Invoke(new updateUserControlDelegate(NavUpdateUserControl), getPackageSuccess1, "取件成功");
     }
     else
     {
         getPackageSuccess1.BringToFront();
         currentPanel = panelName.getPackageSuccess;
         resetCountdownAndBack(10, true, true);
         //设置信息
         getPackageSuccess1.setInfo(courierNum);
     }
 }
Beispiel #7
0
        private void NavInputPwdPanelState()
        {
            CLog4net.LogInfo("点击我要取件");
            inputPwdPanel1.BringToFront();
            inputPwdPanel1.inputFocus();
            inputPwdPanel1.errorMessage("");
            currentPanel = panelName.InputPwdPanel;
            resetCountdownAndBack(60, true, true);
            this.inputPwdPanel1.ShowCurrentModle(this.about);
            if (RemoteOpenLogic.GetInstance().IsEnable &&
                RemoteOpenLogic.GetInstance().IsWorking == false)
            {
                RemoteOpenLogic.GetInstance().StartRemoteOpenListen();
                RemoteOpenLogic.GetInstance().RemoteOpenBoxEvent += new RemoteOpenLogic.RemoteOpenBoxDelegate(frmMain_RemoteOpenBoxEvent);
            }

            this.cameraService.Open();
        }
Beispiel #8
0
        private void NavUpdateUserControl(UserControl uc, string type)
        {
            switch (type)
            {
            case "取件成功":
            {
                uc.BringToFront();
                currentPanel = panelName.getPackageSuccess;
                resetCountdownAndBack(10, true, true);
                //设置信息
                ((getPackageSuccess)uc).setInfo(courierNum);
            }
            break;

            case "取件失败":
                ((InputPwdPanel)uc).errorMessage("未找到您的包裹");
                break;

            default:
                break;
            }
        }