コード例 #1
0
 /// <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;
         PDCClearanceBll BllPdcClearance = new PDCClearanceBll();
         decMasterIdEdit = BllPdcClearance.PDCClearanceAgainstIdUnderClearanceId(decPDCClearanceEditId);
         FillFunction();
     }
     catch (Exception ex)
     {
         MessageBox.Show("PC17:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #2
0
 /// <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;
         PDCClearanceBll BllPdcClearance = new PDCClearanceBll();
         decMasterIdEdit = BllPdcClearance.PDCClearanceAgainstIdUnderClearanceId(decPDCClearanceEditId);
         FillFunction();
     }
     catch (Exception ex)
     {
         MessageBox.Show("PC22:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #3
0
        /// <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;
                PDCClearanceBll BllPdcClearance = new PDCClearanceBll();
                decMasterIdEdit = BllPdcClearance.PDCClearanceAgainstIdUnderClearanceId(decPDCClearanceEditId);
                FillFunction();
            }
            catch (Exception ex)
            {
                MessageBox.Show("PC15:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }