《数据结构课程设计》高校考试报名系统_第1页
《数据结构课程设计》高校考试报名系统_第2页
《数据结构课程设计》高校考试报名系统_第3页
《数据结构课程设计》高校考试报名系统_第4页
《数据结构课程设计》高校考试报名系统_第5页
已阅读5页,还剩27页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

《数据结构课》程设计报告PAGE第31页《数据结构课程设计》高校考试报名系统1.设计题目高校考试报名给教务管理部门增加了很大的工作量,报名数据手工录入既费时又会不可避免地出现错误,同时也给不少学生以可乘之机。本项目是对考试报名管理的简单模拟,用菜单选择方式完成下列功能:输入考生信息,每条考生信息由准考证号(五位数字组成)、姓名、性别、年龄、报考科目等信息组成;输出考生信息;查询考生信息;添加考生信息;修改考生信息;删除考生信息;对考试信息按照准考证号进行排序。 要求:界面友好,每步给出适当的操作提示,并且系统具有一定的容错能力。2、设计思路本设计是基于iOS系统的高校考试报名系统。本系统建立本地sqlite数据库,并且采用友好的交互界面。从而实现了对数据库的操作,即增删改查。进而实现了本课题要求的功能。程序采用MVC经典设计模式,很好地体现了面向对象的设计思想。从而降低代码之间的耦合性,并且有利于程序后期的扩展和维护。3、输入考生信息3.1界面代码:#import"UEAddStudentVC.h"#import"UEStudent.h"@interfaceUEAddStudentVC()@property(weak,nonatomic)IBOutletUITextField*studentNoTF;@property(weak,nonatomic)IBOutletUITextField*studentNameTF;@property(weak,nonatomic)IBOutletUITextField*studentSexTF;@property(weak,nonatomic)IBOutletUITextField*studentAgeTF;@property(weak,nonatomic)IBOutletUITextField*studentSubjectTF;@end@implementationUEAddStudentVC-(void)viewDidLoad{[superviewDidLoad];if(self.isEdit){self.navigationItem.title=@"修改考生信息";}else{self.navigationItem.title=@"输入考生信息";}self.navigationItem.leftBarButtonItem=[[UIBarButtonItemalloc]initWithTitle:@"返回"style:UIBarButtonItemStylePlaintarget:selfaction:@selector(back)];self.navigationItem.rightBarButtonItem=[[UIBarButtonItemalloc]initWithTitle:@"保存"style:UIBarButtonItemStylePlaintarget:selfaction:@selector(save)];self.studentSexTF.text=self.student.student_sex;self.studentNoTF.text=self.student.student_no;self.studentAgeTF.text=self.student.student_age;self.studentSubjectTF.text=self.student.student_subject;self.studentNameTF.text=self.student.student_name;}-(void)back{[self.navigationControllerpopViewControllerAnimated:YES];}-(void)save{NSMutableDictionary*postDict=[NSMutableDictionarydictionary];[postDictsetObject:self.studentNoTF.textforKey:@"student_no"];[postDictsetObject:self.studentNameTF.textforKey:@"student_name"];[postDictsetObject:self.studentSexTF.textforKey:@"student_sex"];[postDictsetObject:self.studentAgeTF.textforKey:@"student_age"];[postDictsetObject:self.studentSubjectTF.textforKey:@"student_subject"];if(self.isEdit){[postDictsetObject:self.student.student_idforKey:@"student_id"];[UESqliteAPIManagereditStudentInfoWithPostDict:postDictsuccessed:^(NSDictionary*_NonnullDict){if([Dict[@"errCode"]integerValue]==0){NSLog(@"修改成功!");[self.navigationControllerpopViewControllerAnimated:YES];}else{}}failed:^(NSError*_Nonnullerr){}];}else{[UESqliteAPIManagersaveStudentInfoPostDict:postDictsuccessed:^(NSDictionary*_NonnullDict){if([Dict[@"errCode"]integerValue]==0){NSLog(@"保存成功!");[self.navigationControllerpopViewControllerAnimated:YES];}else{}}failed:^(NSError*_Nonnullerr){}];}}@end3.2接口代码,数据操作代码/**1、创建本地数据库*/+(BOOL)createOfflineSqliteTables{//1.创建数据库队列FMDatabaseQueue*queue=[UEFMDBManagershareDatabaseQueue];__blockBOOLisSuccess=NO;//2.建表[queueinDatabase:^(FMDatabase*_Nonnulldb){//开启事务[dbexecuteUpdate:@"begintransaction;"];//0、创建考试列表examination//输入考生信息,每条考生信息由准考证号(五位数字组成)、姓名、性别、年龄、报考科目等信息组成;[dbexecuteUpdate:@"createtableifnotexistsstudents(idintegerprimarykeyautoincrement,student_idtext,student_notext,student_nametext,student_sextext,student_agetext,student_subjecttext);"];isSuccess=[dbexecuteUpdate:@"committransaction;"];}];returnisSuccess;}/**2、输入考生信息*/+(void)saveStudentInfoPostDict:(NSDictionary*)postDictsuccessed:(RequestSuccessed)successedfailed:(RequestFailed)failed{NSString*student_id=[[UECommonToolsgetUUID]stringByReplacingOccurrencesOfString:@"-"withString:@""];NSString*student_no=postDict[@"student_no"];NSString*student_name=postDict[@"student_name"];NSString*student_sex=postDict[@"student_sex"];NSString*student_age=postDict[@"student_age"];NSString*student_subject=postDict[@"student_subject"];__blockBOOLisSuccess=NO;FMDatabaseQueue*queue=[UEFMDBManagershareDatabaseQueue];[queueinDatabase:^(FMDatabase*db){//开启事务[dbexecuteUpdate:@"begintransaction;"];//0、插入考试列表examination[dbexecuteUpdate:@"insertintostudents(student_id,student_no,student_name,student_sex,student_age,student_subject)values(?,?,?,?,?,?)",student_id,student_no,student_name,student_sex,student_age,student_subject];//提交事务isSuccess=[dbexecuteUpdate:@"committransaction;"];}];if(isSuccess){//errCode=0,成功NSMutableDictionary*successDict=[NSMutableDictionarydictionary];[successDictsetObject:@"0"forKey:@"errCode"];successed(successDict);}else{//errCode=1,访问数据库错误;NSMutableDictionary*successDict=[NSMutableDictionarydictionary];[successDictsetObject:@"1"forKey:@"errCode"];successed(successDict);}}3.3交互界面4.输出考生信息4.1界面代码#import"UEStudentListVC.h"#import"UEAddStudentVC.h"@interfaceUEStudentListVC()<UITableViewDelegate,UITableViewDataSource>@property(nonatomic,strong)UITableView*meTableView;@property(nonatomic,strong)NSMutableArray*dataArray;@end@implementationUEStudentListVC-(void)viewWillAppear:(BOOL)animated{[superviewWillAppear:animated];[selfcreateData];}-(NSMutableArray*)dataArray{if(_dataArray==nil){_dataArray=[NSMutableArrayarray];}return_dataArray;}-(UITableView*)meTableView{if(!_meTableView){_meTableView=[[UITableViewalloc]initWithFrame:CGRectZerostyle:UITableViewStyleGrouped];_meTableView.delegate=self;_meTableView.dataSource=self;_meTableView.showsVerticalScrollIndicator=NO;_meTableView.backgroundColor=[UIColorwhiteColor];//_meTableView.bounces=NO;//禁止弹跳_meTableView.estimatedRowHeight=0;_meTableView.estimatedSectionHeaderHeight=0;_meTableView.estimatedSectionFooterHeight=0;if(@available(iOS11.0,*)){_meTableView.contentInsetAdjustmentBehavior=UIScrollViewContentInsetAdjustmentNever;}else{self.automaticallyAdjustsScrollViewInsets=NO;}//_meTableView.backgroundColor=[UIColorgreenColor];}return_meTableView;}-(void)viewDidLoad{[superviewDidLoad];self.navigationItem.title=@"输出考生信息";self.navigationItem.leftBarButtonItem=[[UIBarButtonItemalloc]initWithTitle:@"返回"style:UIBarButtonItemStylePlaintarget:selfaction:@selector(back)];[self.viewaddSubview:self.meTableView];[self.meTableViewmas_makeConstraints:^(MASConstraintMaker*make){make.top.equalTo(self.view.mas_top).offset(64);make.bottom.equalTo(self.view.mas_bottom).offset(0);make.left.equalTo(self.view.mas_left).offset(0);make.right.equalTo(self.view.mas_right).offset(0);}];[selfcreateData];}-(void)createData{NSMutableDictionary*postDict=[NSMutableDictionarydictionary];[UESqliteAPIManagergetStudentListPostDict:postDictsuccessed:^(NSDictionary*_NonnullDict){if([Dict[@"errCode"]integerValue]==0){self.dataArray=[UEStudentmj_objectArrayWithKeyValuesArray:Dict[@"data"]];[self.meTableViewreloadData];}else{}}failed:^(NSError*_Nonnullerr){}];}-(void)back{[self.navigationControllerpopViewControllerAnimated:YES];}#pragmamark-UITableViewDelegate,UITableViewDataSource//设置section的个数-(NSInteger)numberOfSectionsInTableView:(UITableView*)tableView{return1;}-(NSInteger)tableView:(UITableView*)tableViewnumberOfRowsInSection:(NSInteger)section{returnself.dataArray.count;}-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(NSIndexPath*)indexPath{UEStudent*student=self.dataArray[indexPath.row];staticNSString*CellWithIdentifier=@"Cell";UITableViewCell*cell=[tableViewdequeueReusableCellWithIdentifier:CellWithIdentifier];if(cell==nil){cell=[[UITableViewCellalloc]initWithStyle:UITableViewCellStyleValue1reuseIdentifier:CellWithIdentifier];}cell.selectionStyle=UITableViewCellSelectionStyleDefault;cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;//每条考生信息由准考证号(五位数字组成)、姓名、性别、年龄、报考科目等信息组成;cell.textLabel.text=[NSStringstringWithFormat:@"学号:%@姓名:%@性别:%@\n年龄:%@报考科目:%@",student.student_no,student.student_name,student.student_sex,student.student_age,student.student_subject];cell.textLabel.numberOfLines=0;returncell;}-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(NSIndexPath*)indexPath{return80;}-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)indexPath{[tableViewdeselectRowAtIndexPath:indexPathanimated:YES];UEStudent*student=self.dataArray[indexPath.row];UEAddStudentVC*AddStudentVC=[[UEAddStudentVCalloc]init];AddStudentVC.isEdit=YES;AddStudentVC.student=student;[self.navigationControllerpushViewController:AddStudentVCanimated:YES];}-(UIView*)tableView:(UITableView*)tableViewviewForHeaderInSection:(NSInteger)section{return[[UIViewalloc]init];}-(UIView*)tableView:(UITableView*)tableViewviewForFooterInSection:(NSInteger)section{return[[UIViewalloc]init];}-(CGFloat)tableView:(UITableView*)tableViewheightForHeaderInSection:(NSInteger)section{return0.0001;}-(CGFloat)tableView:(UITableView*)tableViewheightForFooterInSection:(NSInteger)section{return0.0001;}4.2接口代码,数据操作代码/**3、考生列表信息*/+(void)getStudentListPostDict:(NSDictionary*)postDictsuccessed:(RequestSuccessed)successedfailed:(RequestFailed)failed{__blockBOOLisSuccess=NO;__blockNSMutableArray*studentArray=[NSMutableArrayarray];FMDatabaseQueue*queue=[UEFMDBManagershareDatabaseQueue];[queueinDatabase:^(FMDatabase*db){//开启事务[dbexecuteUpdate:@"begintransaction;"];FMResultSet*rs=[dbexecuteQuery:@"select*fromstudentsorderbystudent_no"];while(rs.next){NSMutableDictionary*dict=[NSMutableDictionarydictionary];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_id"]]forKey:@"student_id"];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_no"]]forKey:@"student_no"];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_name"]]forKey:@"student_name"];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_sex"]]forKey:@"student_sex"];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_age"]]forKey:@"student_age"];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_subject"]]forKey:@"student_subject"];[studentArrayaddObject:dict];}//提交事务isSuccess=[dbexecuteUpdate:@"committransaction;"];}];if(isSuccess){//errCode=0,成功NSMutableDictionary*successDict=[NSMutableDictionarydictionary];[successDictsetObject:studentArrayforKey:@"data"];[successDictsetObject:@"0"forKey:@"errCode"];successed(successDict);}else{//errCode=1,访问数据库错误;NSMutableDictionary*successDict=[NSMutableDictionarydictionary];[successDictsetObject:@"1"forKey:@"errCode"];successed(successDict);}}4.3交互界面5、查询考生信息5.1界面代码////UEQueryStudentVC.m//UERSSystem////Createdbyon2018/10/26.//Copyright©2018.Allrightsreserved.//#import"UEQueryStudentVC.h"@interfaceUEQueryStudentVC()<UITableViewDelegate,UITableViewDataSource,UISearchBarDelegate>@property(nonatomic,strong)UITableView*meTableView;@property(nonatomic,strong)NSArray*dataArray;@property(nonatomic,weak)UISearchBar*searchBar;@end@implementationUEQueryStudentVC-(NSArray*)dataArray{if(_dataArray==nil){_dataArray=[NSMutableArrayarray];}return_dataArray;}-(UITableView*)meTableView{if(!_meTableView){_meTableView=[[UITableViewalloc]initWithFrame:CGRectZerostyle:UITableViewStyleGrouped];_meTableView.delegate=self;_meTableView.dataSource=self;_meTableView.showsVerticalScrollIndicator=NO;_meTableView.backgroundColor=[UIColorwhiteColor];//_meTableView.bounces=NO;//禁止弹跳_meTableView.estimatedRowHeight=0;_meTableView.estimatedSectionHeaderHeight=0;_meTableView.estimatedSectionFooterHeight=0;if(@available(iOS11.0,*)){_meTableView.contentInsetAdjustmentBehavior=UIScrollViewContentInsetAdjustmentNever;}else{self.automaticallyAdjustsScrollViewInsets=NO;}//_meTableView.backgroundColor=[UIColorgreenColor];}return_meTableView;}-(void)viewDidLoad{[superviewDidLoad];self.navigationItem.title=@"查询考生信息";self.navigationItem.leftBarButtonItem=[[UIBarButtonItemalloc]initWithTitle:@"返回"style:UIBarButtonItemStylePlaintarget:selfaction:@selector(back)];[self.viewaddSubview:self.meTableView];[self.meTableViewmas_makeConstraints:^(MASConstraintMaker*make){make.top.equalTo(self.view.mas_top).offset(64);make.bottom.equalTo(self.view.mas_bottom).offset(0);make.left.equalTo(self.view.mas_left).offset(0);make.right.equalTo(self.view.mas_right).offset(0);}];UISearchBar*searchBar=[[UISearchBaralloc]initWithFrame:CGRectMake(0,0,0,45)];searchBar.delegate=self;searchBar.returnKeyType=UIReturnKeySearch;//设置搜索框的returnkeysearchBar.enablesReturnKeyAutomatically=YES;//当搜索按钮不为空时,方可点击搜索[searchBarsetPlaceholder:@"请输入考生姓名、考号"];self.meTableView.tableHeaderView=searchBar;self.searchBar=searchBar;}-(void)back{[self.navigationControllerpopViewControllerAnimated:YES];}-(void)createData{NSMutableDictionary*postDict=[NSMutableDictionarydictionary];[postDictsetObject:self.searchBar.textforKey:@"student_info"];[UESqliteAPIManagergetStudentInfoWithPostDict:postDictsuccessed:^(NSDictionary*_NonnullDict){if([Dict[@"errCode"]integerValue]==0){self.dataArray=[UEStudentmj_objectArrayWithKeyValuesArray:Dict[@"data"]];[self.meTableViewreloadData];}else{}}failed:^(NSError*_Nonnullerr){}];}#pragmamark-UITableViewDelegate,UITableViewDataSource//设置section的个数-(NSInteger)numberOfSectionsInTableView:(UITableView*)tableView{return1;}-(NSInteger)tableView:(UITableView*)tableViewnumberOfRowsInSection:(NSInteger)section{returnself.dataArray.count;}-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(NSIndexPath*)indexPath{UEStudent*student=self.dataArray[indexPath.row];staticNSString*CellWithIdentifier=@"Cell";UITableViewCell*cell=[tableViewdequeueReusableCellWithIdentifier:CellWithIdentifier];if(cell==nil){cell=[[UITableViewCellalloc]initWithStyle:UITableViewCellStyleValue1reuseIdentifier:CellWithIdentifier];}cell.selectionStyle=UITableViewCellSelectionStyleDefault;cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;//每条考生信息由准考证号(五位数字组成)、姓名、性别、年龄、报考科目等信息组成;cell.textLabel.text=[NSStringstringWithFormat:@"学号:%@姓名:%@性别:%@\n年龄:%@报考科目:%@",student.student_no,student.student_name,student.student_sex,student.student_age,student.student_subject];cell.textLabel.numberOfLines=0;returncell;}-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(NSIndexPath*)indexPath{return80;}-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)indexPath{[tableViewdeselectRowAtIndexPath:indexPathanimated:YES];}-(UIView*)tableView:(UITableView*)tableViewviewForHeaderInSection:(NSInteger)section{return[[UIViewalloc]init];}-(UIView*)tableView:(UITableView*)tableViewviewForFooterInSection:(NSInteger)section{return[[UIViewalloc]init];}-(CGFloat)tableView:(UITableView*)tableViewheightForHeaderInSection:(NSInteger)section{return0.0001;}-(CGFloat)tableView:(UITableView*)tableViewheightForFooterInSection:(NSInteger)section{return0.0001;}-(void)searchBar:(UISearchBar*)searchBartextDidChange:(NSString*)searchText{NSLog(@"1111searchText=%@,searchBar=%@",searchText,searchBar.text);}-(void)searchBarSearchButtonClicked:(UISearchBar*)searchBar{[searchBarresignFirstResponder];[selfcreateData];}@end5.2接口代码,数据库操作代码/**4、查询考生信息*/+(void)getStudentInfoWithPostDict:(NSDictionary*)postDictsuccessed:(RequestSuccessed)successedfailed:(RequestFailed)failed{NSString*student_info=postDict[@"student_info"];__blockBOOLisSuccess=NO;__blockNSMutableArray*studentArray=[NSMutableArrayarray];FMDatabaseQueue*queue=[UEFMDBManagershareDatabaseQueue];[queueinDatabase:^(FMDatabase*db){//开启事务[dbexecuteUpdate:@"begintransaction;"];FMResultSet*rs=[dbexecuteQuery:@"select*fromstudentswherestudent_no=?orstudent_name=?",student_info,student_info];while(rs.next){NSMutableDictionary*dict=[NSMutableDictionarydictionary];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_id"]]forKey:@"student_id"];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_no"]]forKey:@"student_no"];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_name"]]forKey:@"student_name"];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_sex"]]forKey:@"student_sex"];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_age"]]forKey:@"student_age"];[dictsetObject:[UECommonToolsisNullToString:[rsstringForColumn:@"student_subject"]]forKey:@"student_subject"];[studentArrayaddObject:dict];}//提交事务isSuccess=[dbexecuteUpdate:@"committransaction;"];}];if(isSuccess){//errCode=0,成功NSMutableDictionary*successDict=[NSMutableDictionarydictionary];[successDictsetObject:studentArrayforKey:@"data"];[successDictsetObject:@"0"forKey:@"errCode"];successed(successDict);}else{//errCode=1,访问数据库错误;NSMutableDictionary*successDict=[NSMutableDictionarydictionary];[successDictsetObject:@"1"forKey:@"errCode"];successed(successDict);}}5.3界面6、添加考生信息添加考生信息与考生输入功能类似。7、修改改考生信息7.1界面代码:界面代码和考生输入界面相似。7.2接口代码,数据操作代码/**4、修改考生信息*/+(void)editStudentInfoWithPostDict:(NSDictionary*)postDictsuccessed:(RequestSuccessed)successedfailed:(RequestFailed)failed{NSString*student_id=postDict[@"student_id"];NSString*student_no=postDict[@"student_no"];NSString*student_name=postDict[@"student_name"];NSString*student_sex=postDict[@"student_sex"];NSString*student_age=postDict[@"student_age"];NSString*student_subject=postDict[@"student_subject"];__blockBOOLisSuccess=NO;FMDatabaseQueue*queue=[UEFMDBManagershareDatabaseQueue];[queueinDatabase:^(FMDatabase*db){//开启事务[dbexecuteUpdate:@"begintransaction;"];//0、插入考试列表examination[dbexecuteUpdate:@"updatestudentssetstudent_no=?,student_name=?,student_sex=?,student_age=?,student_subject=?wherestudent_id=?",student_no,student_name,student_sex,student_age,student_subject,student_id];//提交事务isSuccess=[dbexecuteUpdate:@"committransaction;"];}];if(isSuccess){//errCode=0,成功NSMutableDictionary*successDict=[NSMutableDictionarydictionary];[successDictsetObject:@"0"forKey:@"errCode"];successed(successDict);}else{//errCode=1,访问数据库错误;NSMutableDictionary*successDict=[NSMutableDictionarydictionary];[successDictsetObject:@"1"forKey:@"errCode"];successed(successDict);}}7.3交互界面8、删除考生信息8.1界面代码-(UISwipeActionsConfiguration*)tableView:(UITableView*)tableViewtrailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath*)indexPath{UEStudent*student=self.dataArray[indexPath.row];//删除UIContextualAction*deleteRowAction=[UIContextualActioncontextualActionWithStyle:UIContextualActionStyleDestructivetitle:@"delete"handler:^(UIContextualAction*_Nonnullaction,__kindofUIView*_NonnullsourceView,void(^_NonnullcompletionHandler)(BOOL)){NSMutableDictionary*postDict=[NSMutableDictionarydictionary];[postDictsetObject:student.student_idforKey:@"student_id"];[UESqliteAPIManagerdeleteStudentWithPostDict:postDictsuccessed:^(NSDictionary*_NonnullDict){if([Dict[@"errCode"]integerValue]==0){NSLog(@"删除成功!");[selfcreateData];[self.meTableViewreloadData];}else{}}failed:^(NSError*_Nonnullerr){}];}];deleteRowAction.title=@"删除";deleteRowAction.backgroundColor=[UIColorredColor];UISwipeActionsConfiguration*config=[UISwipeActionsConfigurationconfigurationWithActions:@[deleteRowAction]];returnconfig;}8.2、接口代码,数据库操作+(void)deleteStudentWithPostDict:(NSDictionary*)postDictsuccessed:(RequestSuccessed)successedfailed:(RequestFailed)failed{NSString*student_id=postDict[@"student_id"];__blockBOOLisSuccess=NO;FMDatabaseQueue*queue=[UEFMDBManagershareDatabaseQueue];[queueinDatabase:^(FMDatabase*db){//开启事务[dbexecuteUpdate:@"begintransaction;"];//0、插入考试列表examination[dbexecuteUpdate:@"deletefromstudentswherestudent_id=?",student_id];//提交事务isSuccess=[dbexecuteUpdate:@"committransaction;"];}];if(isSuccess){//errCode=0,成功NSMutableDictionary*successDict=[NSMutableDictionarydictionary];[successDictsetObject:@"0"forKey:@"errCode"];successed(successDict);}else{//errCode=1,访问数据库错误;NSMutableDictionary*successDict=[NSMutableDictionarydictionary];[successDictsetObject:@"1"forKey:@"errCode"];successed(successDict);}}8.3交互界面9、对考试信息按照准考证号进行排序9.1界面代码同输出考生信

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论