Exemplo n.º 1
0
        public frmLoadPallet()
        {
            InitializeComponent();
            base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);

            try
            {
                BarReader.Instance.BarReader.BarcodeRead += new BarcodeReadEventHandler(this.QR_BarcodeRead);
                BarReader.Instance.BarReader.ThreadedRead(true);

                this.txtLOADING_NO.Text = string.Empty;
                this._Total_Box         = 0;
                this._Total_Qty         = 0;

                this.lblBoxLoaded.Text = string.Format("{0:#,##0} Box.", this._Total_Box);
                this.lblQtyLoaded.Text = string.Format("{0:#,##0} Pcs.", this._Total_Qty);

                this.txtPALLET_NO.Text = string.Empty;

                this.ClearDataOnScreen();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            FullScreenHandle.StartFullScreen(this);
        }
Exemplo n.º 2
0
 public frmFinishGoodOut()
 {
     InitializeComponent();
     base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);
     FullScreenHandle.StartFullScreen(this);
     this.IP_ADDRESS = string.Format("IP: {0}", GlobalVariable.GetIPAddress());
 }
Exemplo n.º 3
0
        public frmPicking()
        {
            InitializeComponent();
            base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);

            try
            {
                this.MsgWin              = new MsgWindow();
                this.MsgWin.BarcodeRead += new Action(MsgWin_BarcodeRead);

                this.txt01PICKING_NO.Text = string.Empty;
                this._Qty_Scann           = 0;
                this._Qty_Total           = 0;

                this.lblNo_Qty_Scaned.Text = string.Empty;

                this.txtSERIAL_NO.Text = string.Empty;

                this.ClearDataOnScreen();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            FullScreenHandle.StartFullScreen(this);
        }
Exemplo n.º 4
0
        public frmPicking()
        {
            InitializeComponent();
            base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);

            try
            {
                BarReader.Instance.BarReader.BarcodeRead += new BarcodeReadEventHandler(this.QR_BarcodeRead);
                BarReader.Instance.BarReader.ThreadedRead(true);

                this.txt01PICKING_NO.Text = string.Empty;
                this._Qty_Scann           = 0;
                this._Qty_Total           = 0;

                this.lblNo_Qty_Scaned.Text = string.Empty;

                this.txtSERIAL_NO.Text = string.Empty;

                this.ClearDataOnScreen();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            FullScreenHandle.StartFullScreen(this);
        }
Exemplo n.º 5
0
        public frmLoading()
        {
            InitializeComponent();
            base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);

            try
            {
                this.MsgWin              = new MsgWindow();
                this.MsgWin.BarcodeRead += new Action(MsgWin_BarcodeRead);

                this.txtLOADING_NO.Text = string.Empty;
                this._Total_Box         = 0;
                this._Total_Qty         = 0;

                this.lblBoxLoaded.Text = string.Format("{0:#,##0} Box.", this._Total_Box);
                this.lblQtyLoaded.Text = string.Format("{0:#,##0} Pcs.", this._Total_Qty);

                this.txtSERIAL_NO.Text = string.Empty;

                this.ClearDataOnScreen();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            FullScreenHandle.StartFullScreen(this);
        }
Exemplo n.º 6
0
        public frmMainMenu()
        {
            InitializeComponent();
            base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);

            FullScreenHandle.StartFullScreen(this);
        }
Exemplo n.º 7
0
        static void StartApplication()
        {
            frmMainMenu mainTemp = null;

            try
            {
                HTN.BITS.FGTRACK.LIB.ResourceManager.Instance.CallingAssembly = Assembly.GetExecutingAssembly();
                GlobalVariable.LanguageSelect = "en-US"; //fr-CA is Thai

                //  clsBarcodeReader.Instance.InitialComponent();
                //ServiceProvider.Instance.Connect();

                //fMain = new frmMainMenu();
                //Application.Run(fMain);
                using (frmMainMenu fMain = new frmMainMenu())
                {
                    GC.ReRegisterForFinalize(fMain);

                    mainTemp = fMain;
                    Application.Run(fMain);

                    ServiceProvider.Instance.Disconnect();
                    //clsBarcodeReader.Instance.Release();

                    mainTemp = null;
                    GC.SuppressFinalize(fMain);

                    GC.Collect();
                    GC.WaitForPendingFinalizers();
                }


                if (mainTemp != null)
                {
                    FullScreenHandle.StopFullScreen(mainTemp);
                    GC.SuppressFinalize(mainTemp);

                    GC.Collect();
                    GC.WaitForPendingFinalizers();
                }

                Application.Exit();
            }
            catch (Exception ex)
            {
                if (mainTemp != null)
                {
                    FullScreenHandle.StopFullScreen(mainTemp);
                    GC.SuppressFinalize(mainTemp);
                }

                GC.Collect();
                GC.WaitForPendingFinalizers();

                Application.Exit();
            }
        }
Exemplo n.º 8
0
        public frmProductCardInfo()
        {
            InitializeComponent();
            base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);

            try
            {
                this.MsgWin              = new MsgWindow();
                this.MsgWin.BarcodeRead += new Action(MsgWin_BarcodeRead);

                this.txtSERIAL_NO.Text = string.Empty;

                this.ClearDataOnScreen();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            FullScreenHandle.StartFullScreen(this);
        }
Exemplo n.º 9
0
        public frmFinishGoodIn()
        {
            InitializeComponent();
            base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);

            try
            {
                BarReader.Instance.BarReader.BarcodeRead += new BarcodeReadEventHandler(this.QR_BarcodeRead);
                BarReader.Instance.BarReader.ThreadedRead(true);

                this.txtNoOfBox.Text   = string.Empty;
                this.txtSERIAL_NO.Text = string.Empty;

                this.ClearDataOnScreen();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            FullScreenHandle.StartFullScreen(this);
        }
Exemplo n.º 10
0
 private void frmMainMenu_Closing(object sender, CancelEventArgs e)
 {
     FullScreenHandle.StopFullScreen(this);
 }
Exemplo n.º 11
0
 private void frmFinishGoodOut_Closing(object sender, CancelEventArgs e)
 {
     FullScreenHandle.StopFullScreen(this);
 }