Delphi-Kylix
  Home arrow Delphi-Kylix arrow Page 5 - Invoicing in Delphi: Show Me the Money
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

Invoicing in Delphi: Show Me the Money
By: Chris Neeman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2007-07-09

    Table of Contents:
  • Invoicing in Delphi: Show Me the Money
  • Building the Database
  • Building the Application Interface
  • Finished Code
  • Rest of the Code and the Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Invoicing in Delphi: Show Me the Money - Rest of the Code and the Conclusion


    (Page 5 of 5 )

    procedure TForm1.Statistics1Click(Sender: TObject);
    begin
     
    form4.show;
    end;

    procedure TForm1.btnsearchClick(Sender: TObject);
    begin
     
    if edsearch.Text = '' then showmessage('Please enter a term for the search!') else
     
    begin
       
    //now check to see that the user selected a search method
       
    if not rb1.Checked and not rb2.Checked then begin
         
    messagedlg('Either select to search by: '+#13#10+' Invoice number OR Invoice name', mtError , [mbOK], 0);
         
    exit;
       
    end;
       
    //search by invoice name
       
    if rb1.Checked then
       
    begin
         
    if not form1.ado1.Locate('invname',edsearch.Text,[]) then
           
    messagedlg(' Invoice for "' +edsearch.Text+ '" was not found', mtError ,[mbOK], 0);
       
    end;
       
    //search by invoice number 

        if rb2.Checked then
       
    begin
         
    //check to see if entered value is number, before continuing
         
    try
           
    StrToInt(edsearch.Text); 
        
      except
           
    messagedlg('Please enter a number in the search box.'+#13#10+' You entered "' +edsearch.Text+ '" which is not a number!', mtError , [mbOK],0);
         
    exit;
       
    end;

        if not form1.ado1.Locate('invno',edsearch.Text,[]) then
         
    messagedlg(' Invoice number ' +edsearch.Text+ ' could not be found',

        mtError , [mbOK], 0);
       
    end;//end rb2 search
     
    end;//edsearch check
    end;

    procedure TForm1.Settings1Click(Sender: TObject);
    begin
     
    form3.show
    end;

    procedure TForm1.ViewAllClients1Click(Sender: TObject);
    begin
     
    form6.show;
    end;

    procedure TForm1.About1Click(Sender: TObject);
    begin
     
    form7.show;
    end;

    procedure TForm1.BitBtn1Click(Sender: TObject);
    begin
     
    close;
    end;

    procedure TForm1.ado1AfterPost(DataSet: TDataSet);
    begin
     
    showmessage('It is done');
     
    label1.caption:=inttostr(ado1.RecordCount);
    end;

    procedure TForm1.ado1AfterScroll(DataSet: TDataSet);
    begin
     
    label2.caption:=inttostr(ado1.Recno); 
    end;
    end.

    Conclusion

    In the next article we will not focus so much on the design of the application, but rather on the code that makes it work. We will also be introducing invoice reporting using Rave Reporting components.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    DELPHI-KYLIX ARTICLES

    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...
    - Using the Client Dataset in Two-Tiered Clien...
    - Using the Client Dataset in File-Based Archi...
    - Demystifying the Client Dataset
    - Working with INI Files in Delphi
    - Creating Data Link (UDL) Files in Delphi
    - Looking at the Details for an Invoicing Appl...
    - Invoicing in Delphi: Show Me the Money
    - Saving Images and Binary Files to a Database...
    - Saving Files to a Database using Delphi: Sav...
    - Creating CF Applications and Integrating a S...
    - Using Try and Finally to Help Prevent Memory...
    - The Implementation of an FTP Server
    - FTP Server: The Theory







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway