欢迎来到天天文库
浏览记录
ID:29466410
大小:491.54 KB
页数:119页
时间:2018-12-20
《java基于socket网络编程的超市收银管理系统》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、119packageentity;importjava.io.Serializable;/***收银类**/@SuppressWarnings("serial")publicclassCashimplementsSerializable{privateStringname;//商品名privateStringunit;//商品单位privateintamount;//商品数量privatedoubleprice;//商品单价privatedoublemoney;//商品金额publicCash(Stringname,Stringunit,intamount,double
2、price,doublemoney){this.name=name;this.unit=unit;this.amount=amount;this.price=price;this.money=money;}publicStringgetName(){returnname;}publicvoidsetName(Stringname){this.name=name;}publicStringgetUnit(){returnunit;}publicvoidsetUnit(Stringunit){this.unit=unit;}publicintgetAmount(){119r
3、eturnamount;}publicvoidsetAmount(intamount){this.amount=amount;}publicdoublegetPrice(){returnprice;}publicvoidsetPrice(doubleprice){this.price=price;}publicdoublegetMoney(){returnmoney;}publicvoidsetMoney(doublemoney){this.money=money;}}119packageentity;importjava.io.Serializable;/***商品类
4、**/@SuppressWarnings("serial")publicclassShangPinimplementsSerializable{privateStringnumber;//商品编号privateStringspname;//商品名称privatedoubleprice;//商品单价privateStringunit;//单位privateintamount;//数量publicStringgetNumber(){returnnumber;}publicvoidsetNumber(Stringnumber){this.number=number;}publ
5、icStringgetSpname(){returnspname;}publicvoidsetSpname(Stringspname){this.spname=spname;}publicdoublegetPrice(){returnprice;}publicvoidsetPrice(doubleprice){this.price=price;}publicStringgetUnit(){returnunit;119}publicvoidsetUnit(Stringunit){this.unit=unit;}publicintgetAmount(){returnamou
6、nt;}publicvoidsetAmount(intamount){this.amount=amount;}publicShangPin(Stringnumber,Stringspname,doubleprice,Stringunit,intamount){this.number=number;this.spname=spname;this.price=price;this.unit=unit;this.amount=amount;}}119packageentity;/***用户类*/importjava.io.Serializable;@SuppressWarni
7、ngs("serial")publicclassUserimplementsSerializable{privateStringusername;//用户名称privateStringpassword;//用户密码publicStringgetUsername(){returnusername;}publicvoidsetUsername(Stringusername){this.username=username;}publicStringgetPassword(){returnpassword;}publicvoidsetPasswo
此文档下载收益归作者所有