private void OpenIssueScreen(bool CanEdit) { int activeRow = shtView.ActiveRowIndex; // IssueByItemUIDM uidm = new IssueByItemUIDM(); IssueByOrderUIDM uidm = new IssueByOrderUIDM(); uidm.TRANS_ID.Value = shtView.Cells[activeRow, (int)eColView.ISSUE_NO].Value; //uidm.REF_NO.Value = shtView.Cells[activeRow, (int)eColView.REF_NO].Value; uidm.ITEM_CD.Value = shtView.Cells[activeRow, (int)eColView.PART_NO].Value; uidm.ITEM_DESC.Value = shtView.Cells[activeRow, (int)eColView.PART_NAME].Value; uidm.FROM_LOC_CD.Value = shtView.Cells[activeRow, (int)eColView.FROM_LOC].Value; uidm.TO_LOC_CD.Value = shtView.Cells[activeRow, (int)eColView.TO_LOC].Value; uidm.LOT_NO.Value = shtView.Cells[activeRow, (int)eColView.LOT_NO].Value; //uidm.ONHAND_QTY.Value = shtView.Cells[activeRow, (int) eColView.TRANS_ID].Text; uidm.QTY.Value = shtView.Cells[activeRow, (int)eColView.ISSUE_QTY].Value; uidm.REMARK.Value = shtView.Cells[activeRow, (int)eColView.REMARK].Value; 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].Value; uidm.SLIP_NO.Value = shtView.Cells[activeRow, (int)eColView.SLIP_NO].Value; uidm.REF_SLIP_NO.Value = shtView.Cells[activeRow, (int)eColView.REF_SLIP_NO].Value; uidm.REF_SLIP_NO2.Value = shtView.Cells[activeRow, (int)eColView.REF_SLIP_NO2].Value; uidm.FOR_CUSTOMER.Value = shtView.Cells[activeRow, (int)eColView.FOR_CUSTOMER].Value; uidm.FOR_MACHINE.Value = shtView.Cells[activeRow, (int)eColView.FOR_MACHINE].Value; uidm.TRAN_SUB_CLS.Value = shtView.Cells[activeRow, (int)eColView.TRAN_SUB_CLS].Value; TRN170_TransferEntry frmTRN170 = new TRN170_TransferEntry(uidm, CanEdit); frmTRN170.ShowDialog(); /*TRN040 frmTRN040 = new TRN040(uidm, CanEdit); * frmTRN040.ShowDialog();*/ }
//private void OnAdd() //{ // TRN040 frmTRN040 = new TRN040(); // frmTRN040.ShowDialog(); // LoadData(); //} public override void OnAddNew() { base.OnAddNew(); TRN170_TransferEntry frmTRN170 = new TRN170_TransferEntry(); frmTRN170.ShowDialog(); LoadData(); }