コード例 #1
0
        public List <DataTable> PartyAddressBookPrint(string strType, string strmobile, string strphone, string stremail, string strledgerName)
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spAccountLedger.PartyAddressBookPrint(strType, strmobile, strphone, stremail, strledgerName);
            }
            catch (Exception ex)
            {
                MessageBox.Show("AL29:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }
コード例 #2
0
 /// <summary>
 /// Function to print partyaddress book
 /// </summary>
 public void Print()
 {
     try
     {
         if (dvgPartyAddressBook.RowCount > 0)
         {
             DataSet         ds              = new DataSet();
             CompanySP       spCompany       = new CompanySP();
             frmReport       reportobj       = new frmReport();
             AccountLedgerSP spAccountLedger = new AccountLedgerSP();
             DataTable       dtblCompany     = spCompany.CompanyViewDataTable(1);
             DataTable       dtbl            = spAccountLedger.PartyAddressBookPrint(cmbAccountGroup.Text, txtMobile.Text, txtPhone.Text, txtEmail.Text, txtLedgerName.Text);
             ds.Tables.Add(dtblCompany);
             ds.Tables.Add(dtbl);
             reportobj.MdiParent = formMDI.MDIObj;
             reportobj.PartyAddressBookPrint(ds);
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PAB3:" + ex.Message;
     }
 }
コード例 #3
0
 /// <summary>
 /// Function to print partyaddress book
 /// </summary>
 public void Print()
 {
     try
     {
         if (dvgPartyAddressBook.RowCount > 0)
         {
             DataSet   ds        = new DataSet();
             CompanySP spCompany = new CompanySP();
             //frmReport reportobj = new frmReport();
             AccountLedgerSP spAccountLedger = new AccountLedgerSP();
             DataTable       dtblCompany     = spCompany.CompanyViewDataTable(1);
             DataTable       dtbl            = spAccountLedger.PartyAddressBookPrint(cmbAccountGroup.Text, txtMobile.Text, txtPhone.Text, txtEmail.Text, txtLedgerName.Text);
             ds.Tables.Add(dtblCompany);
             ds.Tables.Add(dtbl);
             //    frmreport.MdiParent = formMDI.MDIObj;
             //    frmreport.PartyAddressBookPrint(ds);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PAB:3" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }