Ejemplo n.º 1
0
        private void OpenIssueScreen(bool CanEdit)
        {
            int             activeRow = shtView.ActiveRowIndex;
            IssueByItemUIDM uidm      = new IssueByItemUIDM();

            uidm.TRANS_ID.Value    = shtView.Cells[activeRow, (int)eColView.ISSUE_NO].Text;
            uidm.REF_NO.Value      = shtView.Cells[activeRow, (int)eColView.REF_NO].Text;
            uidm.ITEM_CD.Value     = shtView.Cells[activeRow, (int)eColView.PART_NO].Text;
            uidm.ITEM_DESC.Value   = shtView.Cells[activeRow, (int)eColView.PART_NAME].Text;
            uidm.FROM_LOC_CD.Value = shtView.Cells[activeRow, (int)eColView.FROM_LOC].Text;
            uidm.TO_LOC_CD.Value   = shtView.Cells[activeRow, (int)eColView.TO_LOC].Text;
            uidm.LOT_NO.Value      = shtView.Cells[activeRow, (int)eColView.LOT_NO].Text;
            // uidm.ONHAND_QTY.Value = shtView.Cells[activeRow, (int) eColView.TRANS_ID].Text;
            uidm.QTY.Value        = shtView.Cells[activeRow, (int)eColView.ISSUE_QTY].Text;
            uidm.REMARK.Value     = shtView.Cells[activeRow, (int)eColView.REMARK].Text;
            uidm.TRANS_DATE.Value = Convert.ToDateTime(shtView.Cells[activeRow, (int)eColView.ISSUE_DATE].Value);
            uidm.TRANS_CLS.Value  = shtView.Cells[activeRow, (int)eColView.ISSUE_TYPE].Text;

            uidm.REF_SLIP_NO.Value  = shtView.Cells[activeRow, (int)eColView.REF_SLIP_NO].Text;
            uidm.REF_SLIP_NO2.Value = shtView.Cells[activeRow, (int)eColView.REF_SLIP_NO2].Text;
            uidm.FOR_CUSTOMER.Value = shtView.Cells[activeRow, (int)eColView.FOR_CUSTOMER].Text;
            uidm.FOR_MACHINE.Value  = shtView.Cells[activeRow, (int)eColView.FOR_MACHINE].Text;
            uidm.TRAN_SUB_CLS.Value = shtView.Cells[activeRow, (int)eColView.TRAN_SUB_CLS].Text;


            TRN140 frmTRN140 = new TRN140(uidm, CanEdit);

            frmTRN140.ShowDialog();
        }
Ejemplo n.º 2
0
        //private void OnAdd()
        //{
        //    TRN040 frmTRN040 = new TRN040();
        //    frmTRN040.ShowDialog();

        //    LoadData();
        //}
        public override void OnAddNew()
        {
            base.OnAddNew();
            TRN140 frmTRN040 = new TRN140();

            frmTRN040.ShowDialog();

            LoadData();
        }