The database
Operation window
Select operation window of time and the order number, database search and summation, and will return to the total amount for the payment of the textbox control
CodePudding user response:
Don't know you what database, database, speaking, reading and writing in pseudo code, assumptions usedInt result=MyQuery (" select sum (num * (price + vipprice)) from test1 where id=1 ");
Textbox1. Text=result. The ToString ();