private void ShowDetail(long NoteID) { int TypeID = (int)this.cmbPayableType.SelectedValue; if (TypeID == iOutSrc) { if (frmOutSrcDetail == null) { frmOutSrcDetail = new JERPApp.Finance.Report.Bill.Manufacture.FrmOutSrcReceiptNote(); new FrmStyle(frmOutSrcDetail).SetPopFrmStyle(this); } frmOutSrcDetail.Detail(NoteID); frmOutSrcDetail.ShowDialog(); } if (TypeID == iMtr) { if (frmMtrDetail == null) { frmMtrDetail = new JERPApp.Finance.Report.Bill.Material.FrmBuyReceiptNote(); new FrmStyle(frmMtrDetail).SetPopFrmStyle(this); } frmMtrDetail.Detail(NoteID); frmMtrDetail.ShowDialog(); } if (TypeID == iOtherRes) { if (frmOtherResDetail == null) { frmOtherResDetail = new JERPApp.Finance.Report.Bill.OtherRes.FrmBuyReceiptNote(); new FrmStyle(frmOtherResDetail).SetPopFrmStyle(this); } frmOtherResDetail.Detail(NoteID); frmOtherResDetail.ShowDialog(); } if (TypeID == iPrd) { if (frmPrdDetail == null) { frmPrdDetail = new JERPApp.Finance.Report.Bill.Product.FrmBuyReceiptNote(); new FrmStyle(frmPrdDetail).SetPopFrmStyle(this); } frmPrdDetail.Detail(NoteID); frmPrdDetail.ShowDialog(); } if (TypeID == iTool) { if (frmToolDetail == null) { frmToolDetail = new JERPApp.Finance.Report.Bill.Tool.FrmBuyReceiptNote(); new FrmStyle(frmToolDetail).SetPopFrmStyle(this); } frmToolDetail.Detail(NoteID); frmToolDetail.ShowDialog(); } }
private void ShowReceiptNote(long ReconciliationID, int SerialNo) { int TypeID = (int)this.cmbPayableType.SelectedValue; long NoteID = -1; if (TypeID == iOutSrc) { this.accOutSrcReceipt.GetParmOutSrcReceiptNotesNoteIDByReconciliationSerialNo(ReconciliationID, SerialNo, ref NoteID); if (frmOutSrcReceipt == null) { frmOutSrcReceipt = new JERPApp.Finance.Report.Bill.Manufacture.FrmOutSrcReceiptNote(); new FrmStyle(frmOutSrcReceipt).SetPopFrmStyle(this); } frmOutSrcReceipt.Detail(NoteID); frmOutSrcReceipt.ShowDialog(); } if (TypeID == iMtr) { this.accMtrReceipt.GetParmBuyReceiptNotesNoteIDByReconciliationSerialNo(ReconciliationID, SerialNo, ref NoteID); if (frmMtrReceipt == null) { frmMtrReceipt = new JERPApp.Finance.Report.Bill.Material.FrmBuyReceiptNote(); new FrmStyle(frmMtrReceipt).SetPopFrmStyle(this); } frmMtrReceipt.Detail(NoteID); frmMtrReceipt.ShowDialog(); } if (TypeID == iOtherRes) { this.accOtherResReceipt.GetParmBuyReceiptNotesNoteIDByReconciliationSerialNo(ReconciliationID, SerialNo, ref NoteID); if (frmOtherReceipt == null) { frmOtherReceipt = new JERPApp.Finance.Report.Bill.OtherRes.FrmBuyReceiptNote(); new FrmStyle(frmOtherReceipt).SetPopFrmStyle(this); } frmOtherReceipt.Detail(NoteID); frmOtherReceipt.ShowDialog(); } if (TypeID == iPrd) { this.accPrdReceipt.GetParmBuyReceiptNotesNoteIDByReconciliationSerialNo(ReconciliationID, SerialNo, ref NoteID); if (frmPrdReceipt == null) { frmPrdReceipt = new JERPApp.Finance.Report.Bill.Product.FrmBuyReceiptNote(); new FrmStyle(frmPrdReceipt).SetPopFrmStyle(this); } frmPrdReceipt.Detail(NoteID); frmPrdReceipt.ShowDialog(); } if (TypeID == iTool) { this.accToolReceipt.GetParmBuyReceiptNotesNoteIDByReconciliationSerialNo(ReconciliationID, SerialNo, ref NoteID); if (frmToolReceipt == null) { frmToolReceipt = new JERPApp.Finance.Report.Bill.Tool.FrmBuyReceiptNote(); new FrmStyle(frmToolReceipt).SetPopFrmStyle(this); } frmToolReceipt.Detail(NoteID); frmToolReceipt.ShowDialog(); } }