- 24
- 0
- 约1.88千字
- 约 4页
- 2020-08-31 发布于天津
- 举报
* 业务类
*/ public class PABmanager {
/**
* 系统启动
*/
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
UserDao userDao = new UserDaoImpl();
TypeDao typeDao = new TypeDaoImpl();
PersonDao personDao = new PersonDaoImpl();
String in = input.next();
if (1.equals(in)) {
boolean islogin = userDao.login();
if(islogin){
}else{
System.exit(-1);
}
}else if (2.equals(in)) {
boolean modiFlag = userDao.modify();
if(modiFlag){
}else{
}
System.exit(-1);
}else{
System.exit(-1);
}
while(true){
String in2 = input.next();
if (1.equals(in2)) {
while(true){
String num = input.next();
if (1.equals(num)) {
String lbmc = input.next();
String lbsm = input.next();
String lbbz = input.next();
Type type = new Type(lbmc,lbsm,lbbz); typeDao.createType(type);
}else if (2.equals(num)) {
ListType types = typeDao.queryType();
for (int i = 0; i types.size(); i++) {
Type type =types.get(i);
}
}
}else if (3.equals(num)) {
String lbmc = input.next();
Type type = new Type(lbmc,null,null);
typeDao.deleteType(type);
}else if (4.equals(num)) { break;
}else{
}
}
}else if (2.equals(in2)) {
while(true){
String num = input.next();
if (1.equals(num)) {
String lb = input.next();
String xm = input.next();
String dh = input.next();
String sjh = input.next();
String gzdw = input.next();
String zz = input.next();
String yzbm = input.next();
}
}
Person person = new Person(lb,xm,dh,sjh,gzdw,zz,yzbm); personDao.createPerson(person);
}else if (2.equals(num)) {
String name = input.next();
Person p = personDao.queryPerson(name);
}else if (3.equals(num)) {
int id = input.nextInt();
String item = input.next();
String val = input.next();
personDao.updatePerson(id,item, val);
}else if (4.equals(num)) {
String name = input.next(); personDao.deletePerson(name);
}else if (5.equals(num)) {
break;
}else{
}
}
}else if (3.equals(in2)) {
System.exit(-1);
}else{
您可能关注的文档
最近下载
- 《阿尔茨海默病及相关痴呆的营养预防和干预专家共识(2025)》解读PPT课件.pptx VIP
- 关于高校基层党组织机构优化设置的探讨.doc VIP
- 2025江苏医药职业学院单招《英语》真题附参考答案详解【精练】.docx VIP
- 第一单元第一课《领略丝路遗珍》课件2025-2026学年人美版初中美术八年级下册.pptx VIP
- 岩土工程勘察收费标准(完整版).docx VIP
- 2025四川省中职学生单招考试英语答案 .pdf VIP
- 快消年度工作总结.pptx VIP
- 慢性肾脏病相关瘙痒管理中国专家共识解读(PPT课件.pptx VIP
- 企业所得税年度纳税申报表A类.pdf VIP
- 2022高二英语人教版新教材选择性必修三课文及翻译(英汉对照).pdf VIP
原创力文档

文档评论(0)