Exemple #1
0
        int hkProductDetail_KeyHandlerDelegate(int vkCode, string clsName)
        {
            int result = 0;

            if (clsName.Equals("hkProductDetail"))
            {
                switch (vkCode)
                {
                case VirtualKey.VK_ESCAPE:
                    hkProductDetail.Stop();
                    if (source == "Main")
                    {
                        Cls_Message.SendMessage("仓库拣货", "ProductDetail");
                    }
                    else if (source == "CaseMgr")
                    {
                        //返回去箱号管理界面,刷新箱号管理的列表
                        Cls_Message.SendMessage("箱号管理", "ProductDetail");
                    }
                    this.Close();
                    result = -1;
                    break;
                }
            }
            return(result);
        }
Exemple #2
0
        int hkCaseDetailDiffer_KeyHandlerDelegate(int vkCode, string clsName)
        {
            int result = 0;

            if (clsName.Equals("hkCaseDetailDiffer"))
            {
                switch (vkCode)
                {
                case VirtualKey.VK_ESCAPE:
                    hkCaseDetailDiffer.Stop();
                    //返回去箱号管理界面,刷新箱号管理的列表
                    Cls_Message.SendMessage("箱号管理", "CaseDetailDiffer");
                    this.Close();
                    result = -1;
                    break;
                }
            }
            return(result);
        }
        int hkCaseDetailMgr_KeyHandlerDelegate(int vkCode, string clsName)
        {
            int result = 0;

            if (clsName.Equals("hkCaseDetailMgr"))
            {
                switch (vkCode)
                {
                case VirtualKey.VK_F1:
                    CaseDetailModelAddHandler();
                    result = -1;
                    break;

                case VirtualKey.VK_F2:
                    CaseDetailBarcodeAddHandler();
                    result = -1;
                    break;

                case VirtualKey.VK_BACK:
                    CaseDetailDelHandler();
                    result = -1;
                    break;

                case VirtualKey.VK_0:
                    KeyPressHandler("0");
                    result = -1;
                    break;

                case VirtualKey.VK_1:
                    KeyPressHandler("1");
                    result = -1;
                    break;

                case VirtualKey.VK_2:
                    KeyPressHandler("2");
                    result = -1;
                    break;

                case VirtualKey.VK_3:
                    KeyPressHandler("3");
                    result = -1;
                    break;

                case VirtualKey.VK_4:
                    KeyPressHandler("4");
                    result = -1;
                    break;

                case VirtualKey.VK_5:
                    KeyPressHandler("5");
                    result = -1;
                    break;

                case VirtualKey.VK_6:
                    KeyPressHandler("6");
                    result = -1;
                    break;

                case VirtualKey.VK_7:
                    KeyPressHandler("7");
                    result = -1;
                    break;

                case VirtualKey.VK_8:
                    KeyPressHandler("8");
                    result = -1;
                    break;

                case VirtualKey.VK_9:
                    KeyPressHandler("9");
                    result = -1;
                    break;

                case VirtualKey.VK_ENTER:
                    CaseDetailEditHandler();
                    result = -1;
                    break;

                case VirtualKey.VK_ESCAPE:
                    hkCaseDetailMgr.Stop();
                    //返回去箱号管理界面,刷新箱号管理的列表
                    //CaseDetailMgrWindowBackDegelate();
                    Cls_Message.SendMessage("箱号管理", "CaseDetailMgr");
                    this.Close();
                    result = -1;
                    break;
                }
            }
            return(result);
        }
Exemple #4
0
        int hkCaseMgr_KeyHandlerDelegate(int vkCode, string clsName)
        {
            int result = 0;

            if (clsName.Equals("hkCaseMgr"))
            {
                switch (vkCode)
                {
                case VirtualKey.VK_F1:
                    CaseAddHandler();
                    result = -1;
                    break;

                case VirtualKey.VK_BACK:
                    CaseDelHandler();
                    result = -1;
                    break;

                case VirtualKey.VK_0:
                    KeyPressHandler("0");
                    result = -1;
                    break;

                case VirtualKey.VK_1:
                    KeyPressHandler("1");
                    result = -1;
                    break;

                case VirtualKey.VK_2:
                    KeyPressHandler("2");
                    result = -1;
                    break;

                case VirtualKey.VK_3:
                    KeyPressHandler("3");
                    result = -1;
                    break;

                case VirtualKey.VK_4:
                    KeyPressHandler("4");
                    result = -1;
                    break;

                case VirtualKey.VK_5:
                    KeyPressHandler("5");
                    result = -1;
                    break;

                case VirtualKey.VK_6:
                    KeyPressHandler("6");
                    result = -1;
                    break;

                case VirtualKey.VK_7:
                    KeyPressHandler("7");
                    result = -1;
                    break;

                case VirtualKey.VK_8:
                    KeyPressHandler("8");
                    result = -1;
                    break;

                case VirtualKey.VK_9:
                    KeyPressHandler("9");
                    result = -1;
                    break;

                case VirtualKey.VK_ESCAPE:
                    hkCaseMgr.Stop();
                    Cls_Message.SendMessage("仓库拣货", "Main");
                    this.Close();
                    result = -1;
                    break;

                case VirtualKey.VK_ENTER:
                    EditCaseNumber();
                    result = -1;
                    break;

                case VirtualKey.VK_RIGHT:
                    ViewCaseNumberDetail();
                    result = -1;
                    break;

                case VirtualKey.VK_F2:
                    CaseDetailDifferHandler();
                    result = -1;
                    break;

                case VirtualKey.VK_F3:
                    ProductDetailHandler();
                    result = -1;
                    break;

                case VirtualKey.VK_F4:
                    if (wholeCase)
                    {
                        wholeCase = false;
                        lblInvoiceTitle.ForeColor = Color.DarkRed;
                    }
                    else
                    {
                        wholeCase = true;
                        lblInvoiceTitle.ForeColor = Color.Yellow;
                    }
                    result = -1;
                    break;

                case VirtualKey.VK_F7:
                    GlobalShare.ContinuousScan();
                    result = -1;
                    break;
                }
            }
            return(result);
        }