コード例 #1
0
 private void _bProductInf_P_RightHandUp(object sender, EventArgs e)
 {
     //act --> 사진 찍기
     TakePictureControl = new TakePicture();
     _Global_C_AddControl(TakePictureControl);
     _TakePicture_Initialize(0);
     _Global_C_RemoveControl(bProductInfoControl);
     bProductInfoControl.Dispose();
     bProductInfoControl = null;
 }
コード例 #2
0
 private void _bProductInf_P_HandOverHead(object sender, EventArgs e)
 {
     //act --> 바코드 더 찍기
     barcodeControl         = new ReadBarcode();
     CurrentBarcodeReadMode = 1;
     _Global_C_AddControl(barcodeControl);
     _Global_C_RemoveControl(bProductInfoControl);
     bProductInfoControl.Dispose();
     bProductInfoControl = null;
 }
コード例 #3
0
 private void _bProductInf_P_LeftHandUp(object sender, EventArgs e)
 {
     barcodeControl = new ReadBarcode();
     _Barcode_Initialize();
     CurrentBarcodeReadMode = 0;
     _Global_C_RemoveControl(bProductInfoControl);
     bProductInfoControl.Dispose();
     bProductInfoControl = null;
     _Global_C_AddControl(barcodeControl);
 }
コード例 #4
0
        private void _bProductInf_Initialize(object barcode)
        {
            _Global_C_RemoveControl(barcodeControl);
            barcodeControl.Dispose();
            barcodeControl = null;

            RESTful NetworkObj = new RESTful();
            IRestResponse <_REST_ProductInfo> Product = NetworkObj.RESTgetProductByBarCode((string)barcode);

            if (Product.Data == null)
            {
                Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
                {
                    _NoticeScreen_Initialize("상품정보를 찾을 수 없습니다.");
                    _bProductInf_P_LeftHandUp(null, null);
                }));
            }
            else
            {
                if (Product.Data.lookType == 0)
                {
                    if (TopLookId == 0)
                    {
                        TopLookId = Product.Data.id;
                    }
                }
                else if (Product.Data.lookType == 1)
                {
                    if (DownLookId == 0)
                    {
                        DownLookId = Product.Data.id;
                    }
                }

                Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
                {
                    bProductInfoControl = new BarcodeProductInfo();

                    bProductInfoControl.setProductInfo(Product);


                    _Global_C_AddControl(bProductInfoControl);
                }));
                bProductInfoControl.btnNext.Click          += new RoutedEventHandler(_bProductInf_P_RightHandUp);
                bProductInfoControl.btnReTakePicture.Click += new RoutedEventHandler(_bProductInf_P_LeftHandUp);
                bProductInfoControl.btnAddProduct.Click    += new RoutedEventHandler(_bProductInf_P_HandOverHead);
                if (CurrentBarcodeReadMode == 1)
                {
                    bProductInfoControl.hiddenUiAddProduct();
                }
                _Global_C_ShowWaitingScreen();
            }
        }
コード例 #5
0
        private void _bProductInf_Initialize(string barcode)
        {
            _Global_C_RemoveControl(barcodeControl);
            barcodeControl.Dispose();
            barcodeControl = null;
            RESTful Network = new RESTful();

            //Network.RESTfulSingleParmRequest();
            bProductInfoControl = new BarcodeProductInfo();
            _Global_C_AddControl(bProductInfoControl);

            Action <string> PostureEventHandler = _bProductInf_PostureAction;

            KinectController.ChangePostureEventHandler(PostureEventHandler);
            if (CurrentBarcodeReadMode == 1)
            {
                bProductInfoControl.hiddenUiAddProduct();
            }
        }
コード例 #6
0
 private void _bProductInf_P_HandOverHead(object sender, EventArgs e)
 {
     //act --> 바코드 더 찍기
     barcodeControl = new ReadBarcode();
     CurrentBarcodeReadMode = 1;
     _Global_C_AddControl(barcodeControl);
     _Global_C_RemoveControl(bProductInfoControl);
     bProductInfoControl.Dispose();
     bProductInfoControl = null;
 }
コード例 #7
0
 private void _bProductInf_P_RightHandUp(object sender, EventArgs e)
 {
     //act --> 사진 찍기
     TakePictureControl = new TakePicture();
     _Global_C_AddControl(TakePictureControl);
     _TakePicture_Initialize(0);
     _Global_C_RemoveControl(bProductInfoControl);
     bProductInfoControl.Dispose();
     bProductInfoControl = null;
 }
コード例 #8
0
        private void _bProductInf_Initialize(string barcode)
        {
            _Global_C_RemoveControl(barcodeControl);
            barcodeControl.Dispose();
            barcodeControl = null;
            RESTful Network = new RESTful();
            //Network.RESTfulSingleParmRequest();
            bProductInfoControl = new BarcodeProductInfo();
            _Global_C_AddControl(bProductInfoControl);

            Action<string> PostureEventHandler = _bProductInf_PostureAction;
            KinectController.ChangePostureEventHandler(PostureEventHandler);
            if (CurrentBarcodeReadMode == 1)
                bProductInfoControl.hiddenUiAddProduct();
        }
コード例 #9
0
 private void _bProductInf_P_LeftHandUp(object sender, EventArgs e)
 {
     barcodeControl = new ReadBarcode();
     _Barcode_Initialize();
     CurrentBarcodeReadMode = 0;
     _Global_C_RemoveControl(bProductInfoControl);
     bProductInfoControl.Dispose();
     bProductInfoControl = null;
     _Global_C_AddControl(barcodeControl);
     
 }
コード例 #10
0
        private void _bProductInf_Initialize(object barcode)
        {
            _Global_C_RemoveControl(barcodeControl);
            barcodeControl.Dispose();
            barcodeControl = null;
            
            RESTful NetworkObj = new RESTful();
            IRestResponse<_REST_ProductInfo> Product = NetworkObj.RESTgetProductByBarCode((string)barcode);
            if (Product.Data == null)
            {
                Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
                    {
                        _NoticeScreen_Initialize("상품정보를 찾을 수 없습니다.");
                        _bProductInf_P_LeftHandUp(null, null);
                    }));
            }
            else
            {
                if (Product.Data.lookType == 0)
                {
                    if (TopLookId == 0)
                        TopLookId = Product.Data.id;
                }
                else if (Product.Data.lookType == 1)
                {
                    if (DownLookId == 0)
                        DownLookId = Product.Data.id;
                }

                Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
                    {
                        bProductInfoControl = new BarcodeProductInfo();

                        bProductInfoControl.setProductInfo(Product);


                        _Global_C_AddControl(bProductInfoControl);
                    }));
                bProductInfoControl.btnNext.Click += new RoutedEventHandler(_bProductInf_P_RightHandUp);
                bProductInfoControl.btnReTakePicture.Click += new RoutedEventHandler(_bProductInf_P_LeftHandUp);
                bProductInfoControl.btnAddProduct.Click += new RoutedEventHandler(_bProductInf_P_HandOverHead);
                if (CurrentBarcodeReadMode == 1)
                {
                    bProductInfoControl.hiddenUiAddProduct();
                }
                _Global_C_ShowWaitingScreen();
            }
        }