C#.NET App to Print an Invoice, Need Help

D@sun

Well-known member
  • Oct 25, 2011
    7,652
    662
    113
    Somewhere I Belong ... !
    පොඩි project සෙට් උනා කරන්න c#.net වලින් :dull:... 4 years වලින් වගේ c# අතගහල නැහැ :sorry: එනිසා මතක නැහැ දැන් :dull: ...


    මෙහෙමයි project 1,
    පොඩි app 1 හදන්න ඔනී.. customer invoice 1, generate and print කරන්න :dull:...

    මම කරන්න බැලුවේ..

    database 1ට data ටිකක් අතින් දාල එකෙන් අරන් print 1 දෙන්න :dull:...

    Local database 1 නම් add කොරගට්ට කොහොමහරි :rofl:...

    database 1කෙ tables 2කුත් හැදුවා :rolleyes:....

    1st table එක... shop එකේ තියෙන items වලට.. [item code (pri) , details, availability, price] එක හරි....


    2nd table එක.. transaction details.. [Invoice No (pri), Customer, mobile No, address, date, Item, :baffled: , quantity :baffled:, price :baffled: ]

    ** ඔන්න ඔය හරියේ තමා owl.. 1 පුද්ගලයෙක් 1 item එකට වඩා ගත්තොත් ඔක්ක කොහොමද database ගත කරන්නේ??? :dull: දැනට ඔතන තම හිරවෙලා ඉන්නේ :sorry::sorry:....
     
    • Like
    Reactions: KingCM

    Mr Krrish

    Well-known member
  • Nov 24, 2013
    2,913
    806
    113
    දිව්‍ය ලෝකේ ✈✈
    555sbc.jpg
     

    KingCM

    Well-known member
  • Jul 23, 2013
    6,920
    948
    113
    www.biogen.lk
    1st Table - [item_code (PK) , details, availability, price]

    2nd Table - [Cus_ID(PK), Customer_Name, mobile No, address, date ]

    3rd Table - [id (PK) ,Cus_ID(FK),item_code (FK) , quantity , price ]


    Use Where Cus_Id = "24" Clause to Print Invoice --- And I am not Familiar with .net ....


     
    Last edited:
    • Like
    Reactions: D@sun

    DimuthTharindu

    Well-known member
  • Dec 10, 2014
    3,713
    681
    113
    Behind you ✔
    මට උබ database එක ගත්තු විදිය නම් තේරෙන්නේ නැහැ. පුළුවන් නම් KingCM දාලා තියන විදියට ගන්න. එක පැහැදිලියි. උබට ඕකම ඕන නම් මේ විදියට කරන්න try කරන්න.

    [Item code (pk) , details, availability, price]
    [Invoice No (pk), Customer, mobile No, address, date]
    [No (pk), Invoice No, ItemCode , quantity]
     
    Last edited:
    • Like
    Reactions: D@sun

    Kasun k

    Well-known member
  • Mar 11, 2009
    10,357
    492
    83
    United States
    1st Table - [item_code (PK) , details, availability, price]

    2nd Table - [Cus_ID(PK), Customer_Name, mobile No, address, date ]

    3rd Table - [id (PK) ,Cus_ID(FK),item_code (FK) , quantity , price ]


    Use Where Cus_Id = "24" Clause to Print Invoice --- And I am not Familiar with .net ....



    This is the correct way. If you want to group items use GROUP BY. So it will group items rather than listing redundant record set. :yes:
     
    • Like
    Reactions: D@sun