Exemple #1
0
        private void GetProductCardDetailOri(string serialNo)
        {
            string outMsg = string.Empty;

            ServiceRef.ProductCard prdInfo = null;
            try
            {
                base.ShowWaitProcess();
                prdInfo = ServiceProvider.Instance.Proxy.GetProductCardInfoOri(serialNo, this.PROCESS_ID, this.USER_ID, out outMsg);
                base.HideWaitProcess();

                if (prdInfo != null)
                {
                    //    this.lblPRODUCT_NO.Text = prdInfo.PRODUCT_NO;
                    //    this.lblPRODUCT_NAME.Text = prdInfo.PRODUCT_NAME;
                    //    //this.lblPRODUCT_NAME_NEW.Text = prdInfo.pr;
                    //    this.lblMTL_TYPE.Text = prdInfo.MTL_TYPE;
                    //    this.lblJOB_NO.Text = prdInfo.JOB_NO;
                    //    this.lblSHIFT.Text = prdInfo.SHIFT;
                    //    this._Box_Scann = prdInfo.BOX_SCANNED;
                    //    this._Box_Total = prdInfo.BOX_QTY;
                    //    this.lblNo_Box_Scaned.Text = string.Format("{0}/{1}", this._Box_Scann, this._Box_Total);
                    //    this.txtQTY.Text = string.Format("{0:#,##0}", prdInfo.QTY);
                    //    this.lblUNIT_ID.Text = prdInfo.UNIT_ID;

                    //    this.LINE_NO = prdInfo.LINE_NO;
                    this.txtSERIAL_NO.ReadOnly = true;
                    this.txtSERIAL_NO_NEW.Focus();
                    //   this.txtQTY.SelectAll();
                }
                else
                {
                    base.ShowWarningBox(ResourceManager.Instance.GetString(outMsg), ResourceManager.Instance.GetString("TITLE_PLEASE_CHECK"));

                    this.txtSERIAL_NO.Text = string.Empty;
                    this.txtSERIAL_NO.Focus();
                }
            }
            catch (WebException wex)
            {
                base.HideWaitProcess();
                this.ClearDataOnScreen();

                base.ShowErrorBox(wex.Message, "WebException");

                this.txtSERIAL_NO.Text = string.Empty;
                this.txtSERIAL_NO.Focus();
            }
            catch (Exception ex)
            {
                base.HideWaitProcess();
                this.ClearDataOnScreen();

                base.ShowErrorBox(ex.Message, "Exception");

                this.txtSERIAL_NO.Text = string.Empty;
                this.txtSERIAL_NO.Focus();
            }
        }
        private void GetProductAssignNG()
        {
            ServiceRef.ProductCard prdInfo = null;
            try
            {
                base.ShowWaitProcess();
                prdInfo = ServiceProvider.Instance.Proxy.GetJobLotInfo(this.JOB_NO, this.LINE_NO, this.USER_ID);
                base.HideWaitProcess();

                if (prdInfo != null)
                {
                    this.lblPRODUCT_NO.Text   = prdInfo.PRODUCT_NO;
                    this.lblPRODUCT_NAME.Text = prdInfo.PRODUCT_NAME;
                    this.lblMTL_TYPE.Text     = prdInfo.MTL_TYPE;
                    this.lblNG_QTY.Text       = string.Format("{0:#,##0}", prdInfo.NG_QTY);
                    this.lblUNIT_ID.Text      = prdInfo.UNIT_ID;

                    this.txtQTY.Focus();
                    this.txtQTY.SelectAll();
                }
                else
                {
                    base.ShowErrorBox(ResourceManager.Instance.GetString("ERR_NO_DATA_FOUND"), ResourceManager.Instance.GetString("TITLE_PLEASE_CHECK"));
                    this.lblJOB_LOT.Text  = string.Empty;
                    this.txt01JOB_NO.Text = string.Empty;

                    this.txt01JOB_NO.Focus();
                }
            }
            catch (WebException wex)
            {
                base.HideWaitProcess();
                base.ShowErrorBox(wex.Message, "WebException");

                this.lblJOB_LOT.Text  = string.Empty;
                this.txt01JOB_NO.Text = string.Empty;

                this.txt01JOB_NO.Focus();
            }
            catch (Exception ex)
            {
                base.HideWaitProcess();
                base.ShowErrorBox(ex.Message, "Exception");

                this.lblJOB_LOT.Text  = string.Empty;
                this.txt01JOB_NO.Text = string.Empty;

                this.txt01JOB_NO.Focus();
            }
            finally
            {
            }
        }
        private void GetProductCardDetail(string serialNo)
        {
            string outMsg = string.Empty;

            ServiceRef.ProductCard prdInfo = null;
            try
            {
                base.ShowWaitProcess();

                prdInfo = ServiceProvider.Instance.Proxy.GetPC_NGInfo(serialNo, this.USER_ID, out outMsg);

                base.HideWaitProcess();

                if (prdInfo != null)
                {
                    this.lblPRODUCT_NO.Text   = prdInfo.PRODUCT_NO;
                    this.lblPRODUCT_NAME.Text = prdInfo.PRODUCT_NAME;
                    this.lblMTL_TYPE.Text     = prdInfo.MTL_TYPE;
                    this.lblJOB_NO.Text       = prdInfo.JOB_NO;
                    this.lblSHIFT.Text        = prdInfo.JOB_LOT;

                    this.lblQty.Text       = string.Format("{0:#,##0}", prdInfo.QTY);
                    this.lblUNIT_ID.Text   = prdInfo.UNIT_ID;
                    this.lbl02UNIT_ID.Text = prdInfo.UNIT_ID;

                    DialogResult diaResult = base.ShowQuestionBox("Replenishment ?", "Confirm");

                    switch (diaResult)
                    {
                    case DialogResult.Yes:
                        this._MODE = "Y";
                        this.lblConfirmMsg.Text = "Rep. Qty :";
                        break;

                    case DialogResult.OK:
                        this._MODE = "Y";
                        this.lblConfirmMsg.Text = "Rep. Qty :";
                        break;

                    case DialogResult.No:
                        this._MODE = "N";
                        this.lblConfirmMsg.Text = "NG. Qty :";
                        break;

                    default:
                        this._MODE = "N";
                        this.lblConfirmMsg.Text = "NG. Qty :";
                        break;
                    }

                    this.txtQTY.Text = string.Empty;
                    this.txtQTY.Focus();
                }
                else
                {
                    base.ShowWarningBox(ResourceManager.Instance.GetString(outMsg), ResourceManager.Instance.GetString("TITLE_PLEASE_CHECK"));

                    this.txtSERIAL_NO.Text = string.Empty;
                    this.txtSERIAL_NO.Focus();
                }
            }
            catch (WebException wex)
            {
                base.HideWaitProcess();
                this.ClearDataOnScreen();

                base.ShowErrorBox(wex.Message, "WebException");

                this.txtSERIAL_NO.Text = string.Empty;
                this.txtSERIAL_NO.Focus();
            }
            catch (Exception ex)
            {
                base.HideWaitProcess();
                this.ClearDataOnScreen();

                base.ShowErrorBox(ex.Message, "Exception");

                this.txtSERIAL_NO.Text = string.Empty;
                this.txtSERIAL_NO.Focus();
            }
        }
Exemple #4
0
        private void GetUpdateProductCardDetail(string serialNo)
        {
            string outMsg = string.Empty;

            ServiceRef.ProductCard prdInfo = null;
            try
            {
                base.ShowWaitProcess();

                prdInfo = ServiceProvider.Instance.Proxy.GetUpdatePC_QC_Info(serialNo, this.QC_STATUS.ToString(), this.USER_ID, out outMsg);

                base.HideWaitProcess();

                if (prdInfo != null)
                {
                    this.txt01LineOrderNo.Text = serialNo;
                    //this.lblPRODUCT_NO.Text = prdInfo.PRODUCT_NO;
                    //this.lblPRODUCT_NAME.Text = prdInfo.PRODUCT_NAME;
                    //this.lblMTL_TYPE.Text = prdInfo.MTL_TYPE;
                    //this.lblJOB_NO.Text = prdInfo.JOB_NO;
                    //this.lblSHIFT.Text = prdInfo.JOB_LOT;
                    //this.lblQty.Text = string.Format("{0:#,##0}", prdInfo.QTY);
                    //this.lblUNIT_ID.Text = prdInfo.UNIT_ID;

                    //this.txtSERIAL_NO.Text = string.Empty;
                    //this.txtSERIAL_NO.Focus();

                    //this._Box_Scann++;

                    //this.lblNo_Box_Scaned.Text = string.Format("{0}/{1}", this._Box_Scann, this._Box_Total);

                    //if (this._Box_Scann == this._Box_Total)
                    //{
                    //    base.StartPlayTon_Complete();

                    //    this._Box_Scann = 0;
                    //    this._Box_Total = 0;

                    //    this.txtNoOfBox.Text = string.Empty;
                    //    this.txtNoOfBox.Focus();
                    //}
                }
                else
                {
                    base.ShowWarningBox(ResourceManager.Instance.GetString(outMsg), ResourceManager.Instance.GetString("TITLE_PLEASE_CHECK"));

                    this.txt01LineOrderNo.Text = string.Empty;
                    this.txt01LineOrderNo.Focus();
                }
            }
            catch (WebException wex)
            {
                base.HideWaitProcess();
                this.ClearDataOnScreen();

                base.ShowErrorBox(wex.Message, "WebException");

                this.txt01LineOrderNo.Text = string.Empty;
                this.txt01LineOrderNo.Focus();
            }
            catch (Exception ex)
            {
                base.HideWaitProcess();
                this.ClearDataOnScreen();

                base.ShowErrorBox(ex.Message, "Exception");

                this.txt01LineOrderNo.Text = string.Empty;
                this.txt01LineOrderNo.Focus();
            }
        }