Ejemplo n.º 1
0
 /// <summary>
 /// Function to call this form from frmPartyBalance to view details and for updation 
 /// </summary>
 /// <param name="frmPartyBalance"></param>
 /// <param name="decId"></param>
 /// <param name="dtbl"></param>
 /// <param name="arrlstOfRemovedRow"></param>
 public void CallFromPartyBalance(frmPartyBalance frmPartyBalance, decimal decId, DataTable dtbl, ArrayList arrlstOfRemovedRow)
 {
     try
     {
         this.frmPartyBalanceObj = frmPartyBalance;
         dgvPaymentVoucher.CurrentRow.Cells["dgvtxtAmount"].Value = decId.ToString();
         frmPartyBalanceObj.Close();
         frmPartyBalanceObj = null;
         dtblPartyBalance = dtbl;
         arrlstOfDeletedPartyBalanceRow = arrlstOfRemovedRow;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PV8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to call this form from frmPartyBalance to view details and for updation
 /// </summary>
 /// <param name="frmPartyBalance"></param>
 /// <param name="decAmount"></param>
 /// <param name="dtbl"></param>
 /// <param name="arrlstOfRemovedRow"></param>
 public void CallFromPartyBalance(frmPartyBalance frmPartyBalance, decimal decAmount, DataTable dtbl, ArrayList arrlstOfRemovedRow)
 {
     try
     {
         base.Show();
         txtAmount.Text = decAmount.ToString();
         this.frmPartyBalanceObj = frmPartyBalance;
         frmPartyBalance.Close();
         frmPartyBalanceObj = null;
         dtblPartyBalance = dtbl;
         arrlstOfDeletedPartyBalanceRow = arrlstOfRemovedRow;
         txtAmount.Focus();
     }
     catch (Exception ex)
     {
         MessageBox.Show("PR16:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Function to keep the datatable containing party balance details while calling from the partybalance form
        /// </summary>
        /// <param name="frmPartyBalance"></param>
        /// <param name="decAmount"></param>
        /// <param name="dtbl"></param>
        /// <param name="arrlstOfRemovedRow"></param>
        public void CallFromPartyBalance(frmPartyBalance frmPartyBalance, decimal decAmount, DataTable dtbl, ArrayList arrlstOfRemovedRow)
        {
            try
            {
                dgvJournalVoucher.CurrentRow.Cells["dgvtxtAmount"].Value = decAmount.ToString();
                dgvJournalVoucher.CurrentRow.Cells["dgvcmbCurrency"].Value = Convert.ToDecimal(1);
                dgvJournalVoucher.CurrentRow.Cells["dgvcmbCurrency"].ReadOnly = true;
                this.frmPartyBalanceObj = frmPartyBalance;
                frmPartyBalance.Close();
                frmPartyBalanceObj = null;
                dtblPartyBalance = dtbl;
                arrlstOfDeletedPartyBalanceRow = arrlstOfRemovedRow;

            }
            catch (Exception ex)
            {
                MessageBox.Show("JV9:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }