public FrmPalletDetail(FrmGetMatchPalletCode frmScanBarCode, FrmAssorted frmAssorted, AssortedService assortedService)
        {
            Cursor.Current = Cursors.WaitCursor;
            InitializeComponent();

            FrmAssorted     = frmAssorted;
            modelList       = new List <MatchPalletPlanDetailModel>();
            FrmScanBarCode  = frmScanBarCode;
            AssortedService = assortedService;

            ShowAssortedDetailAndSyncModelList();
            Cursor.Current = Cursors.Default;
        }
        private void CreateFrmScanBar()
        {
            string mathchPalletName = this.lvwMathPalletList.FocusedItem.SubItems[0].Text.ToString();

            FrmScanBarCode = new FrmGetMatchPalletCode(this, AssortedService, mathchPalletName);

            StaticModel.ScanBarCode        = "";
            StaticModel.MathchPalletName   = mathchPalletName;
            StaticModel.MathchPalletPlanNo = this.lvwMathPalletList.FocusedItem.SubItems[2].Text;
            StaticModel.MathchPalletCode   = this.lvwMathPalletList.FocusedItem.SubItems[3].Text.ToString();

            FrmScanBarCode.Show();
            this.Hide();
        }