/// <summary> /// Function to call this form from frmPDCClearanceReport to view details and for updation /// </summary> /// <param name="PDCClearanceReport"></param> /// <param name="decMasterId"></param> public void CallFromPDCClearanceReport(frmPDCClearanceReport PDCClearanceReport, decimal decMasterId) { try { PDCClearanceReport.Enabled = false; base.Show(); isInEditMode = true; btnDelete.Enabled = true; pdcClearanceReportObj = PDCClearanceReport; decPDCClearanceEditId = decMasterId; PDCClearanceMasterSP spPDCClearance = new PDCClearanceMasterSP(); decMasterIdEdit = spPDCClearance.PDCClearanceAgainstIdUnderClearanceId(decPDCClearanceEditId); FillFunction(); } catch (Exception ex) { MessageBox.Show("PC17:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to call this form from frmDayBook to view details and for updation /// </summary> /// <param name="frmDayBook"></param> /// <param name="decMasterId"></param> public void callFromDayBook(frmDayBook frmDayBook, decimal decMasterId) { try { frmDayBook.Enabled = false; base.Show(); isInEditMode = true; btnDelete.Enabled = true; frmDayBookObj = frmDayBook; decPDCClearanceEditId = decMasterId; PDCClearanceMasterSP spPDCClearance = new PDCClearanceMasterSP(); decMasterIdEdit = spPDCClearance.PDCClearanceAgainstIdUnderClearanceId(decPDCClearanceEditId); FillFunction(); } catch (Exception ex) { MessageBox.Show("PC22:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to call this form from frmLedgerDetails to view details and for updation /// </summary> /// <param name="frmLedgerDetails"></param> /// <param name="decMasterId"></param> public void CallFromLedgerDetails(frmLedgerDetails frmLedgerDetails, decimal decMasterId) { try { base.Show(); frmLedgerDetailsObj = frmLedgerDetails; frmLedgerDetailsObj.Enabled = false; isInEditMode = true; btnDelete.Enabled = true; decPDCClearanceEditId = decMasterId; PDCClearanceMasterSP spPDCClearance = new PDCClearanceMasterSP(); decMasterIdEdit = spPDCClearance.PDCClearanceAgainstIdUnderClearanceId(decPDCClearanceEditId); FillFunction(); } catch (Exception ex) { MessageBox.Show("PC15:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }