Esempio n. 1
0
        private void fpIssueList_ButtonClicked(object sender, EditorNotifyEventArgs e)
        {
            NZString ItemCD = new NZString(null, shtIssueList.Cells[e.Row, (int)eColView.ITEM_CODE].Value);
            NZString LotNo  = new NZString(null, shtIssueList.Cells[e.Row, (int)eColView.LOT_NO].Value);
            NZString LocCD  = new NZString(cboFromLoc, cboFromLoc.SelectedValue);

            if (e.Column == (int)eColView.ITEM_CD_BTN)
            {
                ItemFindDialog dialog = new ItemFindDialog(eSqlOperator.In, null);

                dialog.ShowDialog(this);

                if (dialog.IsSelected)
                {
                    shtIssueList.Cells[e.Row, (int)eColView.ITEM_CODE].Value = dialog.SelectedItem.ITEM_CD.Value;
                    shtIssueList.Cells[e.Row, (int)eColView.ITEM_DESC].Value = dialog.SelectedItem.ITEM_DESC.Value;
                    shtIssueList.Cells[e.Row, (int)eColView.LOT_NO].Value    = null;
                    shtIssueList.Cells[e.Row, (int)eColView.ISSUE_QTY].Value = null;
                }
            }
            else if (e.Column == (int)eColView.LOT_BTN)
            {
                NZString        locCD  = new NZString(null, cboFromLoc.SelectedValue);
                LotNoFindDialog dialog = new LotNoFindDialog(ItemCD, locCD);

                dialog.ShowDialog(this);
                if (dialog.IsSelected)
                {
                    shtIssueList.Cells[e.Row, (int)eColView.LOT_NO].Value = dialog.SelectedLotNo.NVL(string.Empty);
                    LotNo = new NZString(null, shtIssueList.Cells[e.Row, (int)eColView.LOT_NO].Value);
                    shtIssueList.Cells[e.Row, (int)eColView.ONHAND_QTY].Value = GetOnhandQty(ItemCD, LocCD, LotNo);
                    shtIssueList.Cells[e.Row, (int)eColView.ISSUE_QTY].Value  = shtIssueList.Cells[e.Row, (int)eColView.ONHAND_QTY].Value;
                }
            }
        }
Esempio n. 2
0
        private void btnLotNo_Click(object sender, EventArgs e)
        {
            NZString        locCD  = new NZString(null, cboFromLoc.SelectedValue);
            LotNoFindDialog dialog = new LotNoFindDialog(txtItemCode.Text.ToNZString(), locCD);

            dialog.ShowDialog(this);
            if (dialog.IsSelected)
            {
                txtLotNo.Text = dialog.SelectedLotNo.NVL(string.Empty);
                txtLotNo_KeyPress(txtLotNo, new KeyPressEventArgs((char)Keys.Return));
            }
        }
Esempio n. 3
0
        private void btnLotNo_Click(object sender, EventArgs e)
        {
            NZString        locCD  = new NZString(null, cboStoredLoc.SelectedValue);
            LotNoFindDialog dialog = new LotNoFindDialog(txtMasterNo.Text.ToNZString(), locCD);

            dialog.ShowDialog(this);
            if (dialog.IsSelected)
            {
                txtLotNo.Text         = dialog.SelectedLotNo.NVL(string.Empty);
                txtPackNo.Text        = dialog.SelectedPackNo.NVL(string.Empty);
                txtCustomerLotNo.Text = dialog.SelectedExternalLotNo.NVL(string.Empty);
                txtFGNo.Text          = dialog.SelectedFGNo.NVL(string.Empty);

                txtLotNo_KeyPress(txtLotNo, new KeyPressEventArgs((char)Keys.Return));
            }
        }