Exemple #1
0
 private void _Main_P_RightHandUp(object sender, RoutedEventArgs e)
 {
     barcodeControl = new ReadBarcode();
     this._Global_C_RemoveControl(MainPageControl);
     MainPageControl.Dispose();
     MainPageControl = null;
     this._Global_C_AddControl(barcodeControl);
     _Barcode_Initialize();
 }
 private void _Membership_P_RightHandUp(object sender, EventArgs e)
 {
     barcodeControl = new ReadBarcode();
     this._Global_C_RemoveControl(membershipControl);
     membershipControl.Dispose();
     membershipControl = null;
     this._Global_C_AddControl(barcodeControl);
     _Barcode_Initialize();
 }
 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);
 }
Exemple #4
0
 private void _TakePicture_P_LeftHandUp(object sender, EventArgs e)
 {
     //act --> 바코드 다시찍기
     barcodeControl         = new ReadBarcode();
     CurrentBarcodeReadMode = 0;
     _Global_C_AddControl(barcodeControl);
     _Global_C_RemoveControl(TakePictureControl);
     TakePictureControl.Dispose();
     TakePictureControl = null;
 }
Exemple #5
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;
 }
        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();
            }
        }
 private void _Membership_D_Dispose(string barcode)
 {
     membershipCode = Convert.ToInt64(barcode);
     barcodeControl = new ReadBarcode();
     this._Global_C_RemoveControl(membershipControl);
     membershipControl.Dispose();
     membershipControl = null;
     this._Global_C_AddControl(barcodeControl);
     NetworkPTS    = new ParameterizedThreadStart(this._Barcode_Initialize);
     NetworkThread = new Thread(NetworkPTS);
     NetworkThread.Start(barcode);
     txtBarcodeInput.Text       = "";
     txtBarcodeInput.Visibility = System.Windows.Visibility.Hidden;
 }
Exemple #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();
            }
        }
 private void _TakePicture_P_LeftHandUp(object sender, EventArgs e)
 {
     //act --> 바코드 다시찍기
     barcodeControl = new ReadBarcode();
     CurrentBarcodeReadMode = 0;
     _Global_C_AddControl(barcodeControl);
     _Global_C_RemoveControl(TakePictureControl);
     TakePictureControl.Dispose();
     TakePictureControl = null;
 }
 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;
 }
        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();
        }
 private void _Main_P_RightHandUp(object sender, RoutedEventArgs e)
 {
     barcodeControl = new ReadBarcode();
     this._Global_C_RemoveControl(MainPageControl);
     MainPageControl.Dispose();
     MainPageControl = null;
     this._Global_C_AddControl(barcodeControl);
     _Barcode_Initialize();
 }
 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);
     
 }
        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();
            }
        }
 private void _Membership_D_Dispose(string barcode)
 {
     membershipCode = Convert.ToInt64(barcode);
     barcodeControl = new ReadBarcode();
     this._Global_C_RemoveControl(membershipControl);
     membershipControl.Dispose();
     membershipControl = null;
     this._Global_C_AddControl(barcodeControl);
     NetworkPTS = new ParameterizedThreadStart(this._Barcode_Initialize);
     NetworkThread = new Thread(NetworkPTS);
     NetworkThread.Start(barcode);
     txtBarcodeInput.Text = "";
     txtBarcodeInput.Visibility = System.Windows.Visibility.Hidden;
 }
 private void _Membership_P_RightHandUp(object sender, EventArgs e)
 {
     barcodeControl = new ReadBarcode();
     this._Global_C_RemoveControl(membershipControl);
     membershipControl.Dispose();
     membershipControl = null;
     this._Global_C_AddControl(barcodeControl);
     _Barcode_Initialize();
 }