某某网吧计费系统破解附完整源代码
- 格式:pdf
- 大小:5.16 MB
- 文档页数:44
代码设计上机界面package org.apache.jsp.page.pc;import javax.servlet.*;import javax.servlet.http.*;import javax.servlet.jsp.*;import java.util.*;import com.tjuci.model.PC;public final class up_jsp extends org.apache.jasper.runtime.HttpJspBaseimplements org.apache.jasper.runtime.JspSourceDependent {private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();private static java.util.List _jspx_dependants;private javax.el.ExpressionFactory _el_expressionfactory;private org.apache.AnnotationProcessor _jsp_annotationprocessor;public Object getDependants() {return _jspx_dependants;}public void _jspInit() {_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpression Factory();_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.ge tName());}public void _jspDestroy() {}public void _jspService(HttpServletRequest request, HttpServletResponse response)throws java.io.IOException, ServletException {PageContext pageContext = null;HttpSession session = null;ServletContext application = null;ServletConfig config = null;JspWriter out = null;Object page = this;JspWriter _jspx_out = null;PageContext _jspx_page_context = null;try {response.setContentType("text/html;charset=UTF-8");pageContext = _jspxFactory.getPageContext(this, request, response,null, true, 8192, true);_jspx_page_context = pageContext;application = pageContext.getServletContext();config = pageContext.getServletConfig();session = pageContext.getSession();_jspx_out = out;out.write("\r\n");out.write("\r\n");out.write("\r\n");out.write("\r\n");out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");out.write("<html>\r\n");out.write(" <head>\r\n");out.write("\r\n");out.write(" <meta http-equiv=\"content\" content=\"text/html;charset=UTF-8\"/>\r\n");out.write(" <title>上机</title>\r\n");out.write(" <script type=\"text/javascript\">\r\n");out.write(" \t\r\n");out.write(" </script>\r\n");out.write(" </head>\r\n");out.write(" \r\n");out.write(" <body>\r\n");out.write(" \t\t");PC pc=(PC)request.getAttribute("pc");out.write("\r\n");out.write(" <form id=\"myform\" action=\"");out.print(request.getContextPath() );out.write("/submitUp.do?id=");out.print(pc.getId());out.write("\" method=\"post\" onsubmit=\"return check(this)\">\r\n");out.write(" \t\r\n");out.write(" <table align=\"center\" border=\"1\">\r\n");out.write(" <center><h2>用户上机界面</h2></center><hr/>\r\n");out.write(" \t<tr>\r\n");out.write(" \t\t<td>机器号</td>\r\n");out.write(" \t\t<td>");out.print(pc.getPno() );out.write("</td>\r\n");out.write(" \t</tr>\r\n");out.write(" \t<tr>\r\n");out.write(" \t\t<td>状态</td>\r\n");out.write(" \t\t<td>");out.print(pc.getPcState() );out.write("</td>\r\n");out.write(" \t</tr>\r\n");out.write(" \t<tr>\r\n");out.write(" \t\t<td>客户名</td>\r\n");out.write(" \t\t<td><input type=\"text\" id =\"username\" name=\"username\"out.write(" \t</tr>\r\n");out.write(" \t<tr>\r\n");out.write(" \t\t<td>消费额</td>\r\n");out.write(" \t\t<td><input type=\"text\" id =\"cost\" name=\"cost\" /></td>\r\n"); out.write(" \t</tr>\r\n");out.write(" \t<tr>\r\n");out.write(" \t\t<td>是否通宵</td>\r\n");out.write(" \t\t<td>\r\n");out.write(" \t\t<select name=\"isnight\">\r\n");out.write(" \t\t\t<option value=\"1\">否</option>\r\n");out.write(" \t\t\t<option value=\"0\">是</option>\r\n");out.write(" \t\t\t\r\n");out.write(" \t\t</select>\r\n");out.write(" \t\t</td>\r\n");out.write(" \t</tr>\r\n");out.write(" \t<tr align=\"center\">\r\n");out.write(" \t\t<td colspan=\"2\"><input type=\"submit\" value=\"提交\"/> <input type=\"reset\" value=\"重置\"/></td>\r\n");out.write(" \t</tr>\r\n");out.write(" \r\n");out.write(" </table>\r\n");out.write(" </form>\r\n");out.write(" </body>\r\n");out.write("</html>\r\n");} catch (Throwable t) {if (!(t instanceof SkipPageException)){out = _jspx_out;if (out != null && out.getBufferSize() != 0)try { out.clearBuffer(); } catch (java.io.IOException e) {}if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);}} finally {_jspxFactory.releasePageContext(_jspx_page_context);}}}上机界面说明:管理员登陆上机界面时选择待机状态的机器输入客户名、消费额及是否通宵情况,并提交。
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <conio.h>#define N 5struct user{char ID_card[30];char user_card[10];char user_level[50];float add_money; //充值};struct LinkList{struct user struct_user;LinkList *pNext;};struct control{char control_name[20];char control_password[15];}control_person={"apollo","apollo"};//管理员账户和密码设置////////////////////////////////void enter(int x);void tab(int x);void start();void login();void mainmenu();void submenu1();void submenu2();void submenu3();void submenu4();void xian_shi(LinkList *pHead);LinkList *adduser(LinkList *pHead);LinkList *addmoney(LinkList *pHead); //充值LinkList *shang_wang(LinkList *pHead); //上网LinkList *zhu_xiao(LinkList *pHead); //注销会员void save(LinkList *pTemp);LinkList *readsave();void cha_xun_shen(LinkList *pHead);void cha_xun_hui(LinkList *pHead);///////////////////////启动void start(){system("cls");for(int k=0;k<2;k++){for(int i=0;i<N;i++){system("color B");enter(7);tab(3);printf(" 星星网吧计费管理系统");enter(2);tab(4);printf(" ■");enter(1);tab(4);for(i=0;i<100000000;i++){}system("cls"); //circle 1 endenter(7);tab(3);printf(" 星星网吧计费管理系统");enter(2);tab(4);printf(" ■");enter(1);tab(4);for(i=0;i<100000000;i++){}system("cls"); //circle 2 endenter(7);tab(3);printf(" 星星网吧计费管理系统");enter(2);tab(4);printf(" ■");enter(1);tab(4);for(i=0;i<100000000;i++){}system("cls"); //circle 3 endenter(7);tab(3);printf(" 星星网吧计费管理系统"); enter(2);tab(4);printf(" ■");enter(1);tab(4);for(i=0;i<100000000;i++){}system("cls"); //circle 4 endenter(7);tab(3);printf(" 星星网吧计费管理系统"); enter(2);tab(4);printf(" ■");enter(1);tab(4);for(i=0;i<100000000;i++){}system("cls"); //circle 5 endenter(7);tab(3);printf(" 星星网吧计费管理系统"); enter(2);tab(4);printf(" ■");enter(1);tab(4);for(i=0;i<100000000;i++){}system("cls"); //circle 6 endenter(7);tab(3);printf(" 星星网吧计费管理系统"); enter(2);tab(4);printf(" ■");enter(1);tab(4);for(i=0;i<100000000;i++){}system("cls"); //circle 7 endenter(7);tab(3);printf(" 星星网吧计费管理系统");enter(2);tab(4);printf(" ■");enter(1);tab(4);for(i=0;i<100000000;i++){}system("cls"); //circle 8 endenter(7);tab(3);printf(" 星星网吧计费管理系统");enter(2);tab(4);printf(" ■");enter(1);tab(4);for(i=0;i<100000000;i++){}system("cls"); //circle 9 end }}login();}//登陆函数void login(){char name[20];char password[15];while(1){system("cls");enter(7);tab(3);printf(" 管理员登录");enter(2);tab(4);printf("Count:");fflush(stdin);if(strcmp(gets(name),control_person.control_name)==0){leap: system("cls");enter(7);tab(3);printf(" 管理员登录");enter(2);tab(4);printf("Password:");fflush(stdin);if(strcmp(gets(password),control_person.control_password)==0){mainmenu();break;}else{char ch;tab(4);printf("Your password is error!\n");tab(4);printf("Do you want to try again?(Y/N):");scanf("%c",&ch);if(ch=='Y' || ch=='y')goto leap;else if(ch=='N' || ch=='n')exit(0);else{system("cls");enter(7);tab(1);printf("Error!Please check your code then login again,thank you!\n");tab(3);exit(0);}}}else{char i;system("cls");enter(7);tab(4);printf("Your count is erorr!\n");tab(4);printf("Do you want to try again?(Y/N):");scanf("%c",&i);if(i=='Y' || i=='y')continue;else if(i=='N' || i=='n')exit(0);else{system("cls");enter(7);tab(1);printf("Error!Please check your code then login again,thank you!\n");tab(3);exit(0);}}}}//enter函数void enter(int x){for(int i=0;i<x;i++)printf("\n");}//tab函数void tab(int x){for(int i=0;i<x;i++)printf("\t");}//mainmenu主菜单void mainmenu(){struct LinkList *pHead=NULL; //初始化while(1){int i;system("cls");printf("\n\n\n\n\n\t\t\t********星星网吧计费管理系统*********\n");printf("\t\t\t** 1.注册会员**\n");printf("\t\t\t** **\n");printf("\t\t\t** 2.会员管理**\n");printf("\t\t\t** **\n");printf("\t\t\t** 3.注销**\n");printf("\t\t\t** **\n");printf("\t\t\t** 4.重启**\n");printf("\t\t\t** **\n");printf("\t\t\t** 5.关闭系统**\n");printf("\t\t\t*************************************\n");printf("\t\t\t请选择:");fflush(stdin);scanf("%d",&i);switch(i){case 1:pHead=adduser(pHead);break;case 2:submenu1();break;case 3:login();break;case 4:start();break;case 5:submenu2();break;default:printf("输入错误!\n");for(int j=0;j<100000000;j++){}break;}}}//submenu1会员管理菜单void submenu1(){struct LinkList *pHead=NULL;while(1){int i;system("cls");printf("\n\n\n\n\n\t\t\t**************会员管理***************\n");printf("\t\t\t** 1.会员消费**\n");printf("\t\t\t** **\n");printf("\t\t\t** 2.注销会员**\n");printf("\t\t\t** **\n");printf("\t\t\t** 3.查找会员信息**\n");printf("\t\t\t** **\n");printf("\t\t\t** 4.查询所有会员信息**\n");printf("\t\t\t** **\n");printf("\t\t\t** 5.返回上一级菜单**\n");printf("\t\t\t*************************************\n");printf("\t\t\t请选择:");fflush(stdin);scanf("%d",&i);switch(i){case 1:submenu3();break;case 2:pHead=zhu_xiao(pHead);break;case 3:submenu4();break;case 4:;xian_shi(pHead);break;case 5:mainmenu();break;default:printf("输入错误!\n");for(int j=0;j<100000000;j++){}break;}}}//submenu2关闭系统void submenu2(){system("cls");printf("\n\n\n\n\n\t\t\t********星星网吧计费管理系统*********\n");printf("\t\t\t** 谢谢您的使用! **\n");printf("\t\t\t** **\n");printf("\t\t\t** 欢迎再次使用! **\n");printf("\t\t\t** **\n");printf("\t\t\t** 技术支持: **\n");printf("\t\t\t** **************************\n");printf("\t\t\t** 版权所有: **\n");printf("\t\t\t** 湖南长沙英泰学院09081A班**\n");printf("\t\t\t** 2009.10 **\n");printf("\t\t\t*************************************\n");exit(0);}//submenu3消费菜单void submenu3(){int i;LinkList *pHead=NULL;while(1){system("cls");printf("\n\n\n\n\n\t\t\t**********消费内容*******************\n");printf("\t\t\t** 1.充值**\n");printf("\t\t\t** **\n");printf("\t\t\t** 2.上网**\n");printf("\t\t\t** **\n");printf("\t\t\t** 3.返回上一级菜单**\n");printf("\t\t\t*************************************\n");printf("\t\t\t请选择:");fflush(stdin);scanf("%d",&i);switch(i){case 1:pHead=addmoney(pHead);break;case 2:pHead=shang_wang(pHead);break;case 3:submenu1();break;default:printf("输入错误!请重新输入!\n");for(int j=0;j<100000000;j++){}break;}}}//submenu4会员查找函数void submenu4(){int i;LinkList *pHead=NULL;while(1){system("cls");printf("\n\n\n\n\n\t\t\t**************查找会员***************\n");printf("\t\t\t** 1.按身份证号码查找**\n");printf("\t\t\t** **\n");printf("\t\t\t** 2.按会员卡号号码查找**\n");printf("\t\t\t** **\n");printf("\t\t\t** 3.返回上一级菜单**\n");printf("\t\t\t*************************************\n");printf("\t\t\t请选择:");fflush(stdin);scanf("%d",&i);switch(i){case 1:cha_xun_shen(pHead);break;case 2:cha_xun_hui(pHead);break;case 3:submenu1();break;default:printf("输入错误!请重新输入!\n");for(int j=0;j<100000000;j++){}break;}}}//新会员注册LinkList *adduser(LinkList *pHead){LinkList *pTemp,*p;system("cls");pTemp=(LinkList *)malloc(sizeof(struct LinkList));if(pTemp==NULL)return pHead;leap:printf("\n\n\n\n\t\t");printf("输入第二代身份证号码(18位):");fflush(stdin);gets(pTemp->struct_user.ID_card);for(int i=0;i<17;i++){if(pTemp->struct_user.ID_card[i]>'9' || pTemp->struct_user.ID_card[i]<'0') //如果输入的信息大于9小于0的范围(输入的不是数字){system("cls");printf("输入的不是纯数字!\n请重新输入!\n");goto leap;}else if(strlen(pTemp->struct_user.ID_card)!=18 || strlen(pTemp->struct_user.ID_card)==0){system("cls");printf("输入不合法!\n请重新输入!\n");goto leap;}}loop:printf("\n\t\t");printf("请输入卡号(8位):");fflush(stdin);gets(pTemp->struct_er_card);for(i=0;i<8;i++){if(pTemp->struct_er_card[i]>'9' || pTemp->struct_er_card[i]<'0') //如果输入的信息大于9小于0的范围(输入的不是数字){system("cls");tab(3);printf("输入的不是纯数字!\n请重新输入!\n");goto loop;}else if(strlen(pTemp->struct_er_card)!=8 || strlen(pTemp->struct_er_card)==0){system("cls");printf("输入不合法!\n请重新输入!\n");goto loop;}}k: printf("\n\n\t\t|-----------会员优惠活动------------|\n");printf("\t\t| 普通会员>0 <=10元|\n");printf("\t\t| 铜卡会员>10 <=20元+10元|\n");printf("\t\t| 银卡会员>20 <=30元+20元|\n");printf("\t\t| 金卡会员>30 <=50元+30元|\n");printf("\t\t| VIP会员充100元送80元|\n");printf("\t\t|-----------------------------------|\n");printf("\t\t");printf("充值:");fflush(stdin);scanf("%f",&(pTemp->struct_user.add_money)); //充值if(pTemp->struct_user.add_money>1000 || pTemp->struct_user.add_money<=0) //如果输入的信息大于9小于0的范围(输入的不是数字){system("cls");printf("输入错误!\n请重新输入!\n");goto k;}else if(pTemp->struct_user.add_money>0 && pTemp->struct_user.add_money<=10){tab(2);strcpy(pTemp->struct_er_level,"普通会员");printf("■恭喜你!你已成为本网吧普通会员!■\n");}else if(pTemp->struct_user.add_money>10 && pTemp->struct_user.add_money<=20){tab(2);strcpy(pTemp->struct_er_level,"铜卡会员");printf("■恭喜你!你已成为本网吧铜卡会员!■\n");pTemp->struct_user.add_money+=10;}else if(pTemp->struct_user.add_money>20 && pTemp->struct_user.add_money<=30) {tab(2);strcpy(pTemp->struct_er_level,"银卡会员");printf("■恭喜你!你已成为本网吧银卡会员!■\n");pTemp->struct_user.add_money+=20;}else if(pTemp->struct_user.add_money>=30 && pTemp->struct_user.add_money<100) {tab(2);strcpy(pTemp->struct_er_level,"金卡会员");printf("■恭喜你!你已成为本网吧金卡会员!■\n");pTemp->struct_user.add_money+=30;}else if(pTemp->struct_user.add_money>=100){tab(2);strcpy(pTemp->struct_er_level,"VIP会员");printf("■恭喜你!你已成为本网吧VIP会员!■\n");pTemp->struct_user.add_money+=80;}pTemp->pNext=NULL;//////////////////if(pHead==NULL)pHead=pTemp;else{p=pHead;while(p->pNext!=NULL)p=p->pNext;p->pNext=pTemp;}save(pTemp);return pHead;}//保存会员注册void save(LinkList *pTemp){FILE *fp=fopen("user","ab");if(fp==NULL){tab(3);printf("读取失败!\n");exit(0);}tab(3);printf("开始保存文件!\n");if(fwrite(pTemp,sizeof(struct LinkList),1,fp)==1){tab(3);printf("文件保存成功!\n");getch();}else{tab(3);printf("文件保存失败!\n");getch();}fclose(fp);}//读取保存LinkList *readsave(){LinkList *pHead=NULL,*p;FILE *fp;fp=fopen("user","rb");if(fp==NULL){tab(3);printf("文件打开失败!\n");getch();return pHead;}while(!feof(fp)){LinkList *pTemp=(LinkList*)malloc(sizeof(LinkList));int t=fread(pTemp,sizeof(struct LinkList),1,fp);pTemp->pNext=NULL;if(t>0){if(pHead==NULL){pHead=pTemp;}else{p=pHead;while(p->pNext!=NULL)p=p->pNext;p->pNext=pTemp;}}elsebreak;}fclose(fp);return pHead;}//显示所有会员信息void xian_shi(LinkList *pHead){FILE *fp=fopen("user","rb");if(fp==NULL){system("cls");printf("\n\n\n\n\n\n\n\n\t\t\t\t");printf("没有会员信息!\n");getch();return;}LinkList *pTemp,*p;pTemp=(LinkList *)malloc(sizeof(LinkList));int count=0;system("cls");enter(5);printf(" -----------------------|-------------|--------------|--------------\n");printf("\t身份证号码\t\t会员卡号\t卡上余额\t会员级别\n");printf(" -----------------------|-------------|--------------|--------------\n");while(!feof(fp)){int t=fread(pTemp,sizeof(LinkList),1,fp);pTemp->pNext=NULL;//////////////////if(t>0){count++;if(pHead==NULL){pHead=pTemp;}else{p=pHead;while(p->pNext!=NULL)p=p->pNext;p->pNext=pTemp;}}else{break;}printf("\t%-20s\t%-10s\t%-5.1f元\t\t%-6s\n",pTemp->struct_user.ID_card,pTemp->struct_er_card,pTemp->struct_user.add_ money,pTemp->struct_er_level);}printf(" -----------------------|-------------|--------------|--------------\n");printf("\n\t\t共有会员%d个\n",count);getch();fclose(fp);}//查找会员信息(按身份证号码查找)void cha_xun_shen(LinkList *pHead){LinkList *pTemp;char shen_fen[100];system("cls");enter(9);tab(3);printf("身份证号码:");fflush(stdin);gets(shen_fen);if(strlen(shen_fen)!=18){tab(3);printf("输入错误!\n");getch();return;}pHead=readsave();if(pHead==NULL){tab(3);printf("没有找到会员信息或会员不存在!\n");getch();return;}pTemp=pHead;while(pTemp){if(strcmp(pTemp->struct_user.ID_card,shen_fen)==0){system("cls");enter(5);printf(" -----------------------|-------------|--------------|--------------\n");printf("\t身份证号码\t\t会员卡号\t卡上余额\t会员级别\n");printf(" -----------------------|-------------|--------------|--------------\n");printf("\t%-20s\t%-10s\t%-5.1f元\t\t%-6s\n",pTemp->struct_user.ID_card,pTemp->struct_er_card,pTemp->struct_user.add_ money,pTemp->struct_er_level);printf(" -----------------------|-------------|--------------|--------------\n");getch();break;}pTemp=pTemp->pNext;}}//查找会员信息(按会员卡号查找)void cha_xun_hui(LinkList *pHead){LinkList *pTemp;char shen_fen[100];system("cls");enter(9);tab(3);printf("卡号(8位:");fflush(stdin);gets(shen_fen);if(strlen(shen_fen)!=8){tab(3);printf("输入错误!\n");getch();return;}pHead=readsave();if(pHead==NULL)tab(3);printf("没有找到会员信息或会员不存在!\n");getch();return;}pTemp=pHead;while(pTemp){if(strcmp(pTemp->struct_er_card,shen_fen)==0){system("cls");enter(5);printf(" -----------------------|-------------|--------------|--------------\n");printf("\t身份证号码\t\t会员卡号\t卡上余额\t会员级别\n");printf(" -----------------------|-------------|--------------|--------------\n");printf("\t%-20s\t%-10s\t%-5.1f元\t\t%-6s\n",pTemp->struct_user.ID_card,pTemp->struct_er_card,pTemp->struct_user.add_ money,pTemp->struct_er_level);printf(" -----------------------|-------------|--------------|--------------\n");getch();break;}pTemp=pTemp->pNext;}}//保存充值、注销和上网消费后的后的会员信息void save_chong(LinkList *pHead){FILE *fp=fopen("user","wb");if(fp==NULL){tab(3);printf("文件打开失败!\n");getch();return;}LinkList *pTemp;pTemp=pHead;if(pHead==NULL){printf("没有找到会员信息!\n");getch();return;printf("开始保存修改!\n");while(pTemp){fwrite(pTemp,sizeof(LinkList),1,fp);pTemp=pTemp->pNext;}printf("保存成功!\n");getch();fclose(fp);}//充值LinkList *addmoney(LinkList *pHead){LinkList *pTemp;char shen_fen[100];system("cls");enter(9);tab(3);printf("卡号(8位):");fflush(stdin);gets(shen_fen);if(strlen(shen_fen)!=8){tab(3);printf("输入错误!\n");getch();return pHead;}pHead=readsave(); //very importantif(pHead==NULL){tab(3);printf("没有找到会员信息或会员不存在!\n");getch();return pHead;}pTemp=pHead;while(pTemp){if(strcmp(pTemp->struct_er_card,shen_fen)==0){system("cls");enter(5);printf(" -----------------------|-------------|--------------|--------------\n");printf("\t身份证号码\t\t会员卡号\t卡上余额\t会员级别\n");printf(" -----------------------|-------------|--------------|--------------\n");printf("\t%-20s\t%-10s\t%-5.1f元\t\t%-6s\n",pTemp->struct_user.ID_card,pTemp->struct_er_card,pTemp->struct_user.add_ money,pTemp->struct_er_level);printf(" -----------------------|-------------|--------------|--------------\n");float m=pTemp->struct_user.add_money;printf("请输入充值金额:");scanf("%f",&(pTemp->struct_user.add_money));pTemp->struct_user.add_money+=m;save_chong(pHead);break;}pTemp=pTemp->pNext;}return pHead;}//上网LinkList *shang_wang(LinkList *pHead){LinkList *pTemp;char shen_fen[100];system("cls");enter(2);printf("\n\n\n\n\t\t\t**********网吧计费管理系统***********\n");printf("\t\t\t** 1.普通会员3元/时**\n");printf("\t\t\t** **\n");printf("\t\t\t** 2.铜卡会员 2.5元/时**\n");printf("\t\t\t** **\n");printf("\t\t\t** 3.银卡会员2元/时**\n");printf("\t\t\t** **\n");printf("\t\t\t** 4.金卡会员 1.5元/时**\n");printf("\t\t\t** **\n");printf("\t\t\t** 5.VIP会员1元/时**\n");printf("\t\t\t*************************************\n");printf("请输入会员卡号码(8位数字):");fflush(stdin);gets(shen_fen);if(strlen(shen_fen)!=8){tab(3);printf("输入错误!\n");getch();return pHead;}pHead=readsave(); //读取文件if(pHead==NULL) //如果头指针为空,说明没有该链表{tab(3);printf("没有找到会员信息或会员不存在!\n");getch();return pHead;}pTemp=pHead; //头指针不为空while(pTemp) //访问节点{if(strcmp(pTemp->struct_er_card,shen_fen)==0) //如果找到与输入的会员卡号相同{ //则输出该会员信息printf(" -----------------------|-------------|--------------|--------------\n");printf("\t身份证号码\t\t会员卡号\t卡上余额\t会员级别\n");printf(" -----------------------|-------------|--------------|--------------\n");printf("\t%-20s\t%-10s\t%-5.1f元\t\t%-6s\n",pTemp->struct_user.ID_card,pTemp->struct_er_card,pTemp->struct_user.add_ money,pTemp->struct_er_level);printf(" -----------------------|-------------|--------------|--------------\n");float m=pTemp->struct_user.add_money;//上网前的卡上余额float time;printf("请输入上网时间(时):");fflush(stdin);scanf("%f",&time);if(strcmp(pTemp->struct_er_level,"普通会员")==0) //按会员级别来管理{ //每小时上网的费用pTemp->struct_user.add_money=m-3*time; //上网后的卡上余额save_chong(pHead); //保存修改后的内容break;}else if(strcmp(pTemp->struct_er_level,"铜卡会员")==0){pTemp->struct_user.add_money=m-2.5f*time;save_chong(pHead);break;}else if(strcmp(pTemp->struct_er_level,"银卡会员")==0){pTemp->struct_user.add_money=m-2*time;save_chong(pHead);break;}else if(strcmp(pTemp->struct_er_level,"金卡会员")==0){pTemp->struct_user.add_money=m-1.5f*time;save_chong(pHead);break;}else if(strcmp(pTemp->struct_er_level,"VIP会员")==0){pTemp->struct_user.add_money=m-1*time;save_chong(pHead);break;}}pTemp=pTemp->pNext;//指针指向下一个查找,直到找到满足上面条件为止}return pHead;}//注销会员LinkList *zhu_xiao(LinkList *pHead){LinkList *pTemp,*p;char shen_fen[100];system("cls");enter(9);tab(3);printf("卡号:");fflush(stdin);gets(shen_fen);pHead=readsave(); //读取文件if(pHead==NULL) //如果头节点为空,表示这条链表没有内容,或者没有这条链表{tab(3);printf("没有找到会员信息或会员不存在!\n");return pHead;}pTemp=pHead; //指针指向头节点while(pTemp)//访问节点{if(strcmp(pTemp->struct_er_card,shen_fen)==0)//寻找要删除的会员卡号,找到后输出{system("cls");enter(5);printf(" -----------------------|-------------|--------------|--------------\n");printf("\t身份证号码\t\t会员卡号\t卡上余额\t会员级别\n");printf(" -----------------------|-------------|--------------|--------------\n");printf("\t%-20s\t%-10s\t%-5.1f元\t\t%-6s\n",pTemp->struct_user.ID_card,pTemp->struct_er_card,pTemp->struct_user.add_ money,pTemp->struct_er_level);printf(" -----------------------|-------------|--------------|--------------\n");char ch;printf("\n你要注销该会员吗?(Y/N)\n");scanf("%c",&ch);switch(ch){case 'Y':case 'y':{if(pTemp==pHead) //如果要删除的是头节点{pHead=pTemp->pNext; //把头节点指针指向第二个节点,并把头节点覆盖printf("注销成功!\n");getch();break;}p=pHead;//不是头节点,把指针指向头节点while(1){if(p->pNext==pTemp) //如果p的指针域指向找到的节点pTemp{p->pNext=pTemp->pNext;//则把pTemp的指针域指向的下一个节点付给p的指针域printf("注销成功!\n");//删除成功getch();break;}p=p->pNext;//寻找p->pNext和要删除节点pTemp的交合}}break;case 'N':case 'n':break;}}pTemp=pTemp->pNext;//寻找shen_fen和节点的交合}save_chong(pHead);system("cls");return pHead;}//主函数void main(){start();mainmenu();}。
毕业论文(设计)基于java技术的网吧管理计费系统的设计与实现学生姓名 ***学号 BC1033****指导教师赵磊副教授年级 2010级专业计算机科学与技术系别信息科学系摘要随着科学技术的不断提高,计算机科学与技术日趋成熟,计算机应用到生产和生活的各个领域,发挥了越来越重要的作用.作为计算机应用的一部分,使用计算机对网吧信息进行管理,具有手工操作无法比拟的优点,例如:检索迅速,查找方便,可靠性高,存储量大,寿命长,成本低等,因此研究开发网吧计费系统具有可行的实际意义。
本系统是一个功能比较强大的网吧计费系统。
该系统信息来源主要由管理员添加,方便网站管理员的查询和管理。
该系统的任务是方便,灵活的管理网吧的各项信息,包括对每台电脑配置管理、会员用户管理、上机时间计算、金额计算等。
系统主要有添加,查找,删除,统计等功能模块组成。
本系统会做到满足网吧管理日常工作的需要,使用方便,界面亲切,安全可靠.关键词:网吧计费系统;信息管理;安全AbstractWith the continuous improvement of science and technology, computer science and technology matures, computer application to the production and in all spheres of life,has played an increasingly important role。
As part of computer applications,the use of computers to the community information management, with manual unmatched advantages,such as:the rapid retrieval, find convenient,high reliability and large storage capacity, long life,low cost, so research and development of Internet cafes fee system is feasible,practical significance。
万象网管破解专篇网吧多,自然网吧管理软件也多。
但是万象网吧管理系统由于其使用方便,易于管理,一直在这个市场占据半壁江山。
相信很多经常上网吧的朋友一定见过它。
我们学校的的十几家网吧有至少10家使用这个网吧管理软件。
蝙蝠我钱包10张卡有9张是网吧的上机卡,而且都是万象的。
学校的学生每个月都生活费有限,而且都上网时间富余的要死,关于这个软件的破解一直都是激烈,破解类的文章在网上一搜一大堆。
我就几种经常见的来逃避软件计费的方法总结一下1.正常启动windows,在进入win桌面时按下ctrl+alt+del,出现任务管理器,我们可以看见其中有一个名字叫client的进程,这个就是万象的客户端程序,把它结束任务。
之后马上再次按下ctrl+alt+del,看见里面还有个client的进程,再次杀掉它,这是因为万象有自身防杀功能,被杀掉进程后会再次启动一次,不过也仅仅是两次。
这下我们就可以使用了,机子不会再出现要求输入卡号和密码的界面。
此招我屡试屡爽,从不失手,不过要求掌握好按键的时机。
2.正常开机,输入自己的卡号和密码进入系统,然后马上右键点击任务栏的万象客户管理系统的图标,选择结帐下机,系统提示是否真的下机,在点确定的同时按下“sleep”键,这个时候win会提示出现错误,然后你会发现自己已经下机了,但是却并没有出现万象的客户端界面。
^_^我们就可以免费玩了。
唯一的遗憾试成功率太低,我在试验了十几家网吧后只成功一次,建议不要使用。
3.利用卡号和密码进入系统后,下载读取万象管理软件密码的工具来读取密码,读出密码后,记住密码,然后结帐下机,出现万象客户界面后,在下面管理员密码中输入刚才读出的密码。
ok了。
大家都知道美萍和pubwin的管理员密码是保存在本地的,打开它们的安装目录后,在里面都可以找到设置文件,用记事本打开就可以找到。
我想万象也应该是这样,大家如果找不到读密码的软件,可以试着手动破解一下。
4.上面3中的工具如果找不到,而网吧有还原精灵,我们还可以利用它,下载“还原精灵密码读取器”,读出还原精灵密码,右键还原精灵的图标,选择“设置参数”,选中不还原,输入刚才读的密码。
网吧软件计费管理系统使目录目录 (2)第一章系统概述 (3)1.1 . 系统功能概述 (3)1.2 . 系统主要特点 (3)第二章系统操作 (4)2.1 . 网监系统使用说明 (4)2.1.1 登陆系统 (4)2.1.2 网监监控中心 (4)2.1.3 机房终端管理 (5)2.1.3.1 机房管理 (5)2.1.3.2 添加终端 (7)2.1.3.3 移动终端 (8)2.1.3.4 删除终端 (8)2.1.3.5 远程关机 (9)2.1.4 规则设置 (9)2.1.4.1 优惠时段 (10)2.1.4.2 专场时段 (10)2.1.4.3 会员/赠送相关 (11)2.1.4.3.1 会员规则 (11)2.1.4.3.2 赠送规则 (12)2.1.4.3.3 充值优惠规则 (14)2.1.4.3.4 包时卡规则 (14)2.1.4.3.5 专场卡规则 (15)2.1.4.3.6 积分规则 (16)2.1.5 系统管理 (17)2.1.5.1 收银端管理 (17)2.1.5.2 系统设置 (18)2.1.5.2.1 系统参数设置 (19)2.1.5.2.2 客户端设置 (20)2.1.5.2.3 操作员设置 (22)2.1.5.2.4 卡号管理 (24)2.1.5.2.5 系统日志 (24)2.1.5.2.6 微信财务查询 (25)2.1.5.3 修改登陆密码 (27)2.1.5.4 登陆/锁定/退出系统 (27)2.1.6 查询统计 (27)2.1.6.1 预约找人 (27)2.1.6.2 查询........................ . (28)2.1.6.3 决策统计 (29)2.2 . 发卡系统使用说明 (31)2.2.1 上机/下机 (32)2.2.1.1 上机收费(F1) (32)2.2.1.2 下机结账(F2) (39)网吧软件计费管理系统使2.2.2 财务/查询 (40)2.2.2.1 账务管理 (41)2.2.2.2 查询统计 (44)2.2.2.3 会员信息 (48)2.2.3 系统管理 (50)2.2.3.1 更改登陆密码 (50)2.2.3.2 系统设置 (51)2.2.3.3 退出/锁定 (52)2.3 . 客户端软件说明 (54)2.3.1 客户端安装程序 (54)2.3.2 客户端界面 (54)网吧软件计费管理系统使第一章系统概述1.1 . 系统功能概述奥比特网吧计费管理系统(软件版)集合多款网吧机房计费管理系统的精华,具有灵活多样的费率设置、强大的会员管理、普通用户管理、远程监控、微信上下机及查询、详细的上机记录及充值加钱记录功能,可实现用户自由择机、支持远程查账、统一安装,是大中小型网吧智能管理计费的理想选择。
网维大师论坛's Archiver网维论坛› 网吧综合技术讨论› 首发万象破解全分析请各位根据代码直接封锁标号:无敌IV5.1:首发万象破解全分析请各位根据代码直接封锁标号:无敌IV5.1:[b]这个是程序的原代码:[/b][color=Red]@shift@echo off@title %time%color 0A:psandadecho.echo *无敌IV5.1echo --------------------------------------------------echo.echo 本工具自动检测主机IP地址echo 自动创建IP安全策略并指派echo.echo 可破解万象目前任何版本echo 注销后直接回车即可echo.echo QQ交流群:24948543echo 51068683echo.echo Ps:5.1几乎解决了工具自身的问题echo 有些网吧是IPX协议的请自行解决echo.echo --------------------------------------------------echo *汕尾黑客联盟:[url][/url]echo *网吧幽灵:[url][/url]echo.&echo.pausegoto IFclsmn::判断是否已经破解:IFclsmnclsecho.echo -------------------------------------------------- echo -= 无敌IV5.1 =-echo.echo by 源始语言echo.echo 汕尾黑客联盟echo [url][/url]echo -------------------------------------------------- echo.&echo.if exist c:\windows\system32\clsmn_.exe goto Ternet if exist c:\windows\system32\clsmn.exe goto Main echo 未发现万象客户端echo.echo 请确认所在网吧使用万象计费系统echo.&echo.del %myfiles%\ipseccmd.exe>nuldel %myfiles%\winipsec.dll>nuldel %myfiles%\wx32.dll>nuldel %myfiles%\wxman.dll>nulpauseexit:Ternetecho 本机已经破解,无需再次使用本工具echo.&echo.del %myfiles%\ipseccmd.exe>nuldel %myfiles%\winipsec.dll>nuldel %myfiles%\wx32.dll>nuldel %myfiles%\wxman.dll>nulpauseexit::判断破解版本:Mainclsecho.echo -------------------------------------------------- echo -= 无敌IV5.1 =-echo.echo by 源始语言echo.echo 汕尾黑客联盟echo [url][/url]echo --------------------------------------------------echo.&echo.echo 1、万象2.0以下echo.echo 2、万象2.X系列echo.echo 3、万象3.X系列echo.&echo.echo__________________________________________________echo.set /p pjbb= 输要破解的版本代码(选1/2/3 退出直接回车):if "%pjbb%"=="1" goto WX2004if "%pjbb%"=="2" goto WX2006if "%pjbb%"=="3" goto WX2008if defined pjbb goto Maindel %myfiles%\ipseccmd.exe>nuldel %myfiles%\winipsec.dll>nuldel %myfiles%\wx32.dll>nuldel %myfiles%\wxman.dll>nulexit:WX2004ren c:\windows\system32\clsmn.exe Clsmn_.exe%myfiles%\wxman.dll e -o+ %myfiles%\wx32.dll wx2004.exe c:\windows\system32\>nulping -n 1 127.1>nulren c:\windows\system32\Wx2004.exe Clsmn.exegoto Ipsecsvr:WX2006ren c:\windows\system32\clsmn.exe Clsmn_.exe%myfiles%\wxman.dll e -o+ %myfiles%\wx32.dll wx2006.exe c:\windows\system32\>nulping -n 1 127.1>nulren c:\windows\system32\Wx2006.exe Clsmn.exegoto Ipsecsvr:WX2008ren c:\windows\system32\clsmn.exe Clsmn_.exe%myfiles%\wxman.dll e -o+ %myfiles%\wx32.dll wx2008.exe c:\windows\system32\>nulping -n 1 127.1>nulren c:\windows\system32\Wx2008.exe Clsmn.exegoto Ipsecsvr::启动IPSEC服务:Ipsecsvrsc create PolicyAgent binpath= "C:\WINDOWS\system32\lsass.exe" type= share start= auto displayname= "IPSEC Services" depend= RPCSS/IPSecsc config policyagent start= Autosc start policyagentreg delete "HKEY_CURRENT_USER\Software\Microsoft\Internet EXPlorer\Main" /v "Start Page" /freg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /d "" /freg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Swhklm" /d "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE[url][/url]" /fgoto NetstatIP::自动模式:NetstatIPecho.echo 创建IP策略:NetstatIP...for /f "skip=4 tokens=3 delims= " %%a in ('netstat -an') do (for /f "tokens=1 delims=" %%i in ('call echo %%a^|find "11011"') do echo %%i)>>%myfiles%\netstat.txtfor /f "delims=:" %%q in (%myfiles%\netstat.txt) do (set clsmnip=%%q)del %myfiles%\netstat.txtping -n 1 127.1>nul%myfiles%\ipseccmd -w REG -p "NetstatIP" -r "NetstatIP"-f %clsmnip%/255.255.255.255=0/255.255.255.255:: -n BLOCK -x>nulping -n 1 127.1>nulgoto ERW:ServerIPecho.echo 创建IP策略:ServerIP...for /f "skip=1 tokens=3 delims= " %%a in ('reg queryHKEY_CURRENT_USER\Software\Sicent\wx2004Clt /v ServerIP') do (set ServerIP=%%a)%myfiles%\ipseccmd -w REG -p "ServerIP" -r "ServerIP"-f %ServerIP%/255.255.255.255=0/255.255.255.255:: -n BLOCK -x>nulping -n 1 127.1>nulgoto ERE:FeeSvrIPecho.echo 创建IP策略:FeeSvrIP...for /f "skip=1 tokens=3 delims= " %%a in ('reg queryHKEY_CURRENT_USER\Software\Sicent\wx2004Clt /v FeeSvrIP') do (set FeeSvrIP=%%a)%myfiles%\ipseccmd -w REG -p "FeeSvrIP" -r "FeeSvrIP"-f %FeeSvrIP%/255.255.255.255=0/255.255.255.255:: -n BLOCK -x>nul ping -n 1 127.1>nulgoto ERR::检测离线状态:ERWclsecho.echo --------------------------------------------------echo -= 无敌IV5.1 =-echo.echo by 源始语言echo.echo 汕尾黑客联盟echo [url][/url]echo --------------------------------------------------echo.&echo.echo 现在请查看:我上了多久echo.set /p queryw= 是否能够查到余额(y/n):if "%queryw%"=="y" goto ServerIPif "%queryw%"=="n" goto CGPJif defined queryw goto ERWgoto ERW:EREclsecho.echo --------------------------------------------------echo -= 无敌IV5.1 =-echo.echo by 源始语言echo.echo 汕尾黑客联盟echo [url][/url]echo --------------------------------------------------echo.&echo.echo 现在请查看:我上了多久echo.set /p querye= 是否能够查到余额(y/n):if "%querye%"=="y" goto FeeSvrIPif "%querye%"=="n" goto CGPJif defined querye goto EREgoto ERE:ERRclsecho.echo -------------------------------------------------- echo -= 无敌IV5.1 =-echo.echo by 源始语言echo.echo 汕尾黑客联盟echo [url][/url] echo -------------------------------------------------- echo.&echo.echo 现在请查看:我上了多久echo.set /p queryr= 是否能够查到余额(y/n):if "%queryr%"=="y" goto SRIPif "%queryr%"=="n" goto CGPJif defined queryr goto ERRgoto ERR:ERRzclsecho.echo -------------------------------------------------- echo -= 无敌IV5.1 =-echo.echo by 源始语言echo.echo 汕尾黑客联盟echo [url][/url] echo -------------------------------------------------- echo.&echo.echo 现在请查看:我上了多久echo.set /p queryz= 是否能够查到余额(y/n):if "%queryz%"=="y" goto ERRaif "%queryz%"=="n" goto CGPJif defined queryz goto ERRzgoto ERRz:ERRaecho.&echo.set /p querya= 请确认输入的主机IP是否正确(y/n):if "%querya%"=="y" goto SBPJif "%querya%"=="n" goto SRIPbif defined querya goto ERRagoto ERRa::手动模式:SRIPclsecho.echo --------------------------------------------------echo -= 无敌IV5.1 =-echo.echo by 源始语言echo.echo 汕尾黑客联盟echo [url][/url]echo --------------------------------------------------echo.&echo.echo 自动离线失败echo.set /p ifsrip= 是否手动输入主机IP(y/n):if "%ifsrip%"=="y" goto SRIPbif "%ifsrip%"=="n" goto SBPJif defined ifsrip goto SRIPgoto SRIP:SRIPbecho.&echo.set /p srip= 请输入主机IP:echo.set /p srip= 确认主机IP:%myfiles%\ipseccmd -w REG -p "disable wx ip" -r "disable connect ip" -f %srip%/255.255.255.255=0/255.255.255.255:: -n BLOCK -xping -n 1 127.1>nulgoto ERRz::失败提示:SBPJclsecho.echo -------------------------------------------------- echo -= 无敌IV5.1 =-echo.echo by 源始语言echo.echo 汕尾黑客联盟echo [url][/url]echo -------------------------------------------------- echo.&echo.echo 离线失败echo.echo 本机使用了IPX协议,请手动破解echo.echo 或其它原因,不适合使用本工具echo.del %myfiles%\ipseccmd.exe>nuldel %myfiles%\winipsec.dll>nuldel %myfiles%\wx32.dll>nuldel %myfiles%\wxman.dll>nuldel c:\windows\system32\clsmn.exe>nulren c:\windows\system32\clsmn_.exe clsmn.exe>nul pauseexit::成功提示:CGPJclsecho.echo -------------------------------------------------- echo -= 无敌IV5.1 =-echo.echo by 源始语言echo.echo 汕尾黑客联盟echo [url][/url]echo -------------------------------------------------- echo.&echo.echo 破解成功,注销后万象登录界面回车即可echo.&echo.del %myfiles%\ipseccmd.exe>nuldel %myfiles%\winipsec.dll>nuldel %myfiles%\wx32.dll>nuldel %myfiles%\wxman.dll>nulpauseshutdown -lexit[/color][b][color=Red]声明:把原代码发出来不是让大家学习破解而是想方法修补漏洞、谢谢![/color][/b]没有人关注、哎世态炎凉感谢。
网吧破解1. 简介网吧破解是指绕过网吧对上网时间和费用的限制,与常规的上网行为不同。
在某些情况下,用户可能不希望受到网吧的限制,或者是为了省去上网费用,因此需要进行网吧破解操作。
然而,网吧破解是非法的行为,违反了网络使用规定和相关法律法规。
2. 网吧破解方法的种类2.1 修改网吧客户端修改网吧客户端是一种常见的网吧破解方法。
网吧客户端通常会对用户上网时间和费用进行监控和控制。
通过修改网吧客户端,可以绕过这些限制。
具体的修改方法包括:•修改客户端配置文件:通过修改客户端的配置文件,可以伪造上网时间和费用信息,使得用户看起来没有达到限制。
•卸载或终止客户端进程:某些网吧客户端在用户登录后会启动并运行,监控用户的上网行为。
通过卸载或终止客户端进程,可以绕过监控和控制。
2.2 使用破解工具除了修改网吧客户端,还可以使用一些专门的破解工具来进行网吧破解。
这些工具通常是由黑客开发,用于绕过网吧的限制。
常见的破解工具包括:•上网时间破解工具:这类工具可以修改系统时间或者欺骗服务器,通过改变电脑时间来欺骗网吧系统,使得用户可以超过限制时间继续上网。
•上网费用破解工具:这类工具可以修改网吧计费软件或者网络流量统计软件,使其无法正确记录用户的上网费用,从而达到减免上网费用的目的。
3. 网吧破解的危害网吧破解不仅违法,而且还存在一定的危害性。
以下是网吧破解可能产生的危害:•法律风险:网吧破解是非法行为,一旦被发现,将可能面临法律追究和惩罚,甚至被判刑。
•网络安全风险:通过修改网吧客户端或者使用破解工具,可能会对网络安全造成威胁,例如黑客利用这些漏洞进行攻击,并窃取用户的个人信息和账户信息。
•道德风险:网吧破解违背了道德原则和伦理约束,不尊重网络使用规定和他人权益,给他人和社会带来了负面影响。
4. 如何避免网吧破解为了避免网吧破解行为的发生,网吧经营者和用户可以采取以下措施:•网吧经营者应加强对网吧客户端的安全性控制,确保其不易被破解和修改。
网吧计费管理系统设计与实现学院: 信息科学与技术学院年级: 软件二班专业: 计算机软件工程学号: 001学生姓名: 张喆指导教师: 边雪芬IIII摘要计算机已经得到了相当一部分城市化的普及,但也只是与信息时代接轨的最基础工具,还要配上网络才可以完全联系上数字化、网络化的概念。
至于网络的问题就不得不说宽带这个概念,小区宽带、ADSL都是为了实现网络化而产生的宽带形势。
但是他们的普及率并不高,依然不能达到每一个又计算机的人就可以利用计算机进行上网,不能发挥这块敲门砖的作用。
于是,为了解决这个问题,让大多数人可以提前适应这个年代的步伐,在学校、公司、以及外围的商业(网吧就是其一)设施都开市派生出一个拥有几十台、上百台的计算机机房。
为了解决大型机房的管理问题,这款机房多功能管理系统诞生了,它可以方便对大型机房的管理,方便这些档案的记录和往后的查询,还可以随时随地进行备份,保证查询历史纪录时,导入备份文件。
还可以为客户提供经济方便的会员服务,以满足那些长时间上机用户的需求。
该系统采用Microsoft Visual Basic 6.0 、Microsoft Access 完成。
下面就让大家具体看看这款多功能机房系统的内容吧~关键词网吧;MicrosoftVisual Basic 6.0;Microsoft AccessIIAbstractNet Bar Time Fee Management System is a typical application of managing information system (know as MIS), which mainly includes developing the application interface of front-end and building up and maintaining the database of back-end. The former should make thefunction of application integrated and the usage is easy, the latter required a database with powerful consistency and integrality, and nice security. this sy stem mainly completes the management to net bar’s information; include six aspects such as adding, modifying, deleting, searching, printing information and the customer management. The system can complete to browse, search, add, delete, modify etc. to each kind of the function of information. The core of the system is the contact of increase, modification and delete, the modifications of each form will affect to other forms. this thesis includes requirement analysis, system function, systems design, programming and the systemtests and exists the aspects such as question etc, and comparatively systematically introduced the whole course of "Net Bar Time Fee Management System " subject development.KeywordsNet Bar;MicrosoftVisual Basic 6.0;Microsoft AccessIIII目录摘要 ..................................................................... ........................................................................ (I)ABSTRACT................................................................ ........................................................................ (II)第1章绪论 (1)1.1 系统开发背景 (1)1.2 可行性分析...............................................................................................................1 第2章系统设计 (2)2.1 系统功能分析 (2)2.2 操作流程图 (3)2.3 操作员管理功能模块 (3)2.4 用户管理功能模块 (6)2.5 计算机管理功能模块 (7)2.6 系统设计与实现.........................................................................................................7 第3章数据库设计 (9)3.1 数据库的需求分析 (9)3.2 数据库逻辑结构设计 (9)3.3 数据库的创建…………………………………………………………………………………… ………11 第4章代码设计 (12)4.1登录窗体功能的实现 (12)4.2模块功能实现的代码 (15)4.3系统管理模块界面的设计 (18)4.4系统管理界面功能实现的相关代码 (18)4.5模块功能实现.........................................................................................................21 第5章总结 (26)5.1 网吧计费系统的开发技术特点 (26)5.2 系统的不足............................................................................................................26 参考文献........................................................................................................................27 致谢 (27)IIIIII网吧计费管理系统设计与实现第1章绪论1.1系统开发背景计费管理(Accounting Management)是网络管理的重要组成部分,通过测度网络资源的利用情况,产生详尽的信息统计报告及流量对比,为管理者提供决策依据。
管理信息系统课程设计报告设计名称:网吧计费管理信息系统专业班级:信管09-1班姓名:陈生宝学号:091120126起止时间:2012.6.11-----2012.6.22成绩评定吉林建筑工程学院城建学院计算机科学与技术系一.可行性分析1. 技术可行性采用JAVA语言和SQL数据库实现,采用Power designer建模。
从技术上来说是可以实现的。
2. 经济可行性本系统采用C/S模式,使系统运行安全可靠、便于应用、可维护性好、易于进行二次开发、具有良好的扩展性,从经济上来说是可行的。
经济可行性主要依据是成本/效益分析,该系统的目标是以最低的成本,最高的效率、在最短的期限内开发出具有社区物业管理功能的系统。
3.方案可行性根据系统的分析,本软件充分从适用性出发,全面为不同的使用用户考虑。
使软件的许多功能与规则都可根据用户的习惯进行定制。
包括软件界面、操作方式、录入方式、打印格式等数据,用户均可根据个人或单位的使用爱好进行设置。
方案的实施会带来不错的效益。
二、项目进度计划编制三、系统分析1.业务流程图2.数据流程图3.数据字典四、系统设计1.总体设计图4.1 系统功能模块图4.2 卡号管理模块远程监管远程关机远程控制远程开机图4.3 远程控制模块计费模式设置按时间计费按流量计费图4.4 计费模块2.详细设计输入输出设计:代码设计:输出代码设计举例Dim db As New网吧计费管理DataContextTryDim username = (From admin In db.Table_2 _Where admin.帐号= UsernameTextBox.Text _Select admin.帐号).Single()Dim userpassword = (From admin In db.Table_2 _Where admin.密码= PasswordTextBox.Text _Select admin.密码).Single()UsernameTextBox.Text = ""PasswordTextBox.Text = ""Form1.Show()Me.Close()Catch ex As ExceptionMessageBox.Show("用户名或密码错误, 请重新输入!")UsernameTextBox.Text = ""PasswordTextBox.Text = ""End Try过程设计:对上网人员登记处理过程设计系统名:网吧计费管理信息系统数据处理名称:登记上网人员信息处理功能:有网吧管理员根据上网人员身份信息如“姓名”“编号”,“身份证号”等共同存入计算机内总编号:001编号:P0简述:上网人员登记信息输出数据流:网上登记数据,信息。
信息管理专业技能大赛复赛题问题的提出某公司准备开发一个网吧计费系统,该系统提供如下功能:1、能够进行上网卡的注册和充值,2、能够对网吧所有计算机的信息进行统计,3、能够记录持上网卡来上网的会员的上网记录,并对上网时间和费用进行统计,公司开发人员将采用SQL Server数据库作为后台支持,请同学们根据提供的需求分析,按要求实现该数据库的设计。
一、用T-SQL语句创建NetBar数据库(10分)创建一个名字为NetBar的数据库,该数据库包含一个数据文件和一个日志文件,逻辑文件名为NetBar_data,磁盘文件名为NetBar_data.mdf,文件初始容量为5MB,最大容量为15MB,文件递增容量为1MB,而事务日志文件的逻辑文件名NetBar_log,磁盘文件名为NetBar_log.ldf,文件初始容量为5MB,最大容量为10MB,文件递增量为1MB(数据库创建在D:\NetBar文件夹下)二、根据需求分析,该数据库需要如下的3个表,请同学们根据给出的表结构,使用T-SQL 语句建以下3个表,并生成数据库关系图。
(40分)表1 上网卡表结构三、根据下面提出的要求,完成相关设计1、为Card表添加约束,限制每张上网卡的余额不能超过2000元。
(5分)2、该网吧实行优惠政策,如果一次充值低于200元,不加送费用,如果一次充值超过200元(包含200元),加送50元的上网费用,如果一次充值超过500元(包含500元),加送100元的上网费用,请设计一个存储过程,实现用户上网卡的充值,并进行相应的调试。
(提示:该过程需要定义2个输入参数,上网卡卡号和充值金额)(10分)3、请设计一个存储过程,实现当会员持卡来上网的时候,先检查该会员卡中余额是否大于0,如果余额为0,则输入提示信息‘卡中余额不足,请及时充值’,如果不为0,则向Record 表中录入相应的初始上网记录(提示:会员上网的初始状态,该会员在Record表中的记录只存在CardID、ComputerID、BeginTime列的值,其余字段都为NULL),并将该会员上网的计算机的使用状态改为‘是’,调用存储过程向Record表中至少插入5条初始的上网记录(15分)4、请设计一个触发器,实现当会员下机的时候,通过得到的上网时长(分钟),自动统计本次上网的费用(注意:时长不满30分钟按1元计算,30分钟至60分钟按2元计算,上网费用都是2元/每小时),并在该会员卡余额中减去这次的消费金额,同时应把该台计算机的使用状态改为“否”。
系统是基于c语言写的小程序,以应付毕业项目或期末考试用。
由于用到fopen读写文件操作,编译前必须在当前文件下建立用户信息.txt 和充值卡.txt 两个文件,否则会报错。
效果图#include <stdio.h>#include <windows.h>#include <string.h>#include <stdlib.h>#include <time.h>//定义链表typedef struct{char name[20];char mima[20];int state;int jine;}user;typedef struct lnod{user data;struct lnod *next;}lnod, *linklist;//充值卡定义链表typedef struct{char name[30];int jine;}kami;typedef struct kk{kami data;struct kk *next;}kk, *kamil;//创建链表void createlist_l(linklist *l){*l = (linklist)malloc(sizeof(lnod));(*l)->next = NULL;}//插入用户信息(尾插法)int listinset_l(linklist *l,user data) {linklist p = *l,q;if (NULL==p)return -1;while (NULL!=p){}p = (linklist)malloc(sizeof(lnod));p->data = data;p->next = q->next;q->next = p;return 0;}//载入文件到链表void filelist_l(linklist *l){int i;FILE *fp1;user user0;fp1 = fopen("用户信息.txt","rb");for (i = 0;i<50;i++){if (1!=fread(&user0,sizeof(user),1,fp1)){break;}listinset_l(l,user0);}fclose(fp1);}//查找制定用户是否存在int locateelem_l(linklist l,char name[]){linklist p;p = l->next;while (p!=NULL){if (!(strcmp(p->,name))){break;}p = p->next;}if (p == NULL){return -1;}elsereturn 0;}//查找指定用户和密码int locateelem_l2(linklist l,char name[],char mm[]) {p = l->next;while (p!=NULL){a = strcmp(p->,name);b = strcmp(p->data.mima,mm);if (a==0&&b==0){//p->data.state = 1;break;}p = p->next;}if (p == NULL){return -1;}elsereturn 0;}//登陆后state = 1;void gaistate_l(linklist *l,char name[]) {linklist p;int b;p = (*l)->next;while (p!=NULL){b = strcmp(p->,name);if (b==0){p->data.state=1;break;}else{p = p->next;}}}//下线state = 0void xiaxian_l(linklist *l,char name[]) {linklist p;int b;p = (*l)->next;while (p!=NULL)if (b==0){p->data.state=0;break;}else{p = p->next;}}}//修改金额void gaijine_l(linklist *l,char name[],int j){linklist p;int b;p = (*l)->next;while (p!=NULL){b = strcmp(p->,name);if (b==0){p->data.jine=p->data.jine+j;printf("您当前余额为%d元",p->data.jine);break;}else{p = p->next;}}}//修改密码void gaimm_l(linklist *l,char name[],char gmm[]){linklist p;int b;p = (*l)->next;while (p!=NULL){b = strcmp(p->,name);if (b==0){strcpy(p->data.mima,gmm);break;{p = p->next;}}}//下线扣费void koufei_l(linklist *l,char name[],int j){linklist p;int b;p = (*l)->next;while (p!=NULL){b = strcmp(p->,name);if (b==0){p->data.jine = p->data.jine-j;break;}else{p = p->next;}}}//写文件void userfile(user user0){FILE *fp0;if((fp0=fopen("用户信息.txt","ab"))==NULL){printf("cannot open file\n");return;}if(fwrite(&user0,sizeof(user),1,fp0)!=1)printf("file write error\n");fclose(fp0);}//更新文件void update_file(linklist l){FILE *fp;linklist p;p = l->next;if (( fp= fopen("用户信息.txt","wb"))==NULL)return;}while (p!=NULL){if (p->data.state==1){p->data.state = 0;userfile(p->data);p->data.state = 1;}else{userfile(p->data);}p = p->next;}}//查询所有用户void chaxun_l(linklist l){linklist p;p = l->next;while (p != NULL){printf("用户名:%-10s密码:%-10s余额%-10d是否在线(1/0):%d \n",p->,p->data.mima,p->data.jine,p->data.state);p = p->next;}}//充值卡创建链表void createlist_k(kamil *l){*l = (kamil)malloc(sizeof(kk));(*l)->next = NULL;}//充值卡查找制定用户是否存在int locateelem_k(kamil kl,char name[]){kamil p;p = kl->next;while (p!=NULL){if (!(strcmp(p->,name))){break;}if (p == NULL){return -1;}elsereturn 0;}//充值卡插入用户信息(尾插法)int listinset_k(kamil *l,kami data){kamil p = *l,q;if (NULL==p)return -1;while (NULL!=p){q = p;p = p->next;}p = (kamil)malloc(sizeof(kk));p->data = data;p->next = q->next;q->next = p;return 0;}//充值卡载入文件到链表void filelist_k(kamil *l){int i;FILE *fp1;kami kami0;fp1 = fopen("充值卡.txt","rb");for (i = 0;i<50;i++){if (1!=fread(&kami0,sizeof(kami),1,fp1)){break;}listinset_k(l,kami0);}fclose(fp1);}//充值卡修改金额void gaijine_k(kamil *l,char name[],int j){kamil p;while (p!=NULL){b = strcmp(p->,name);if (b==0){p->data.jine=p->data.jine+j;printf("您当前余额为%d元",p->data.jine);break;}else{p = p->next;}}}//充值卡写文件void kamifile(kami kami0){FILE *fp0;if((fp0=fopen("充值卡.txt","ab"))==NULL){printf("cannot open file\n");return;}if(fwrite(&kami0,sizeof(kami),1,fp0)!=1)printf("file write error\n");fclose(fp0);}//充值卡更新文件void update_file_k(kamil l){FILE *fp;kamil p;p = l->next;if (( fp= fopen("充值卡.txt","wb"))==NULL){printf("无法打开文件\n");return;}while (p!=NULL){kamifile(p->data);p = p->next;}void delete_k(kamil *L,char name[]) {kamil p,q;int i;p=(*L)->next;q=*L;while(p!=NULL){i = strcmp(p->,name);if(i == 0){q->next=p->next;free(p);break;}else{q=p;p=p->next;}}}//主函数void main(){linklist l;int b;//选择点int z;//判断z是否等于0int j;//金额char yhm[20];char mm[20],mm1[20];char gmm[20],gmm1[20];//改密码user n;clock_t start,finish;float jf;char nk[15],nk0[15];//之下是卡密int i;// int kjine;kami lsk;kamil kl;char gly[20] = "admin";//管理员密码srand((unsigned)time(NULL));createlist_l(&l);filelist_l(&l);createlist_k(&kl);filelist_k(&kl);while (1){system("color f9");system("cls");printf(" ╭═══════欢═迎═光═临══════╮\n");printf(" ╰╮╭----------------╮╭╯\n");printf(" ▲╯║~~1、注册~~║╰▲\n");printf(" ◇★║~~2、用户登陆~~║★◇\n");printf(" ◇★║~~3、管理员登陆~~║★◇\n");printf(" ★◇║~~4、退出~~║◇★\n");printf(" ▼╮║~~本网吧壕专享一秒钟一元~~║╭▼\n");printf(" ╭╯╰----------------╯╰╮\n");printf(" ╰═══════祝═你═快═乐══════╯\n");scanf("%d",&b);switch(b){case 1:{while (1)//注册界面{system("cls");printf("请输入账号:\n");scanf("%s",yhm);z = locateelem_l(l,yhm);if (z == 0){printf("该用户名已存在,任意键返回");fflush(stdin);getchar();break;}else{printf("请输入密码:\n");scanf("%s",mm);printf("请再次输入密码:\n");scanf("%s",mm1);if (!(strcmp(mm,mm1))){printf("注册成功,任意键返回\n");strcpy( , yhm);strcpy(n.mima , mm);n.jine = 0;listinset_l(&l,n);update_file(l);fflush(stdin);getchar();break;}else{printf("两次密码输入不一致,请重新注册\n");Sleep(1000);continue;}}}break;}case 2://用户登陆{system("cls");while(1){printf("请输入用户名\n");scanf("%s",yhm);z = locateelem_l(l,yhm);if (z!=0){printf("用户名不存在,即将返回\n");Sleep(1000);break;}else{printf("请输入密码:\n");scanf("%s",mm);z = locateelem_l2(l,yhm,mm);if (z==0){gaistate_l(&l,yhm);start = clock();while(1){system("cls");printf(" ╭═══════祝═你═快═乐══════╮\n");printf(" ╰╮╭----------------╮╭╯\n");printf(" ▲╯║~~1、查余额~║╰▲\n");printf(" ◇★║~~2、改密码~║★◇\n");printf(" ◇★║~~3、充值卡充值~║★◇\n");printf(" ★◇║~~4、小游戏~║◇★\n");printf(" ▼╮║~~5、下线~║╭▼\n");printf(" ╭╯╰----------------╯╰╮\n");printf(" ╰═══════祝═你═快═乐══════╯\n");scanf("%d",&b);if (b == 1){system("cls");gaijine_l(&l,yhm,0);printf("\n任意键返回\n");fflush(stdin);getchar();continue;}if (b == 2){system("cls");printf("请输入新密码\n");scanf("%s",gmm);printf("请再次输入密码\n");scanf("%s",gmm1);if (!(strcmp(gmm,gmm1))){printf("修改密码成功,任意键后返回\n");gaimm_l(&l,yhm,gmm);update_file(l);fflush(stdin);getchar();break;}else{printf("两次密码输入不一致,请重新修改\n");Sleep(1000);continue;}}if (b == 5){printf("下线成功,任意键返回主界面:\n");xiaxian_l(&l,yhm);finish = clock();jf = (int)((finish - start)/1000);koufei_l(&l,yhm,jf);update_file(l);fflush(stdin);getchar();break;}if (b == 3){system("cls");printf("请输入充值卡\n");scanf("%s",nk0);b = locateelem_k(kl,nk0);if (b!=0){printf("您输入的充值卡不存在,请重新输入\n");Sleep(1000);continue;}if (b == 0){printf("100元已成功充值进您的账号,任意键返回\n");gaijine_l(&l,yhm,100);update_file(l);delete_k(&kl,nk0);update_file_k(kl);fflush(stdin);getchar();continue;}}if (b == 4){while (1){system("cls");iy = 10;jy = 0;printf("请在两秒钟内输入以下简单等式,答对过关,答错结束,任意键开始\n");fflush(stdin);getchar();while(1){system("cls");ay = rand()%iy;by = rand()%iy;iy=iy+100;printf("%d + %d = ",ay,by);fflush(stdin);Sleep(2000);ky = kbhit();scanf("%d",&zhi);fflush(stdin);if (ky == 0){printf("时间到啦\n");if(jy<=5){printf("你只通过了%d关,只击败了5%%的人,弱爆了。
网吧计费管理系统说明书
网吧计费管理系统主界面如图1所示:
图1:系统主界面
“帮助”菜单有1个菜单项“关于”,点此菜单,弹出一个对话框,显示本系统的版本信息。
“退出”菜单有1个菜单项“退出”,点此菜单则结束程序。
“使用”菜单有2个菜单项:上机和下机。
点“上机”后出现图2所示的界面。
图2:上机界面
选择机器号码(组合框里列出的是空闲的机器号码)、正确输入卡号和密码后,点“确认”又回到图1所示的主界面。
如果输入的卡号或密码不准确,则出现图3所示的界面。
在输入的过程中点“重置”则清空各文本框。
图3
点“下机”子菜单则出现图4所示的界面(组合框里列出的是正在使用的机器号码)。
选择机器号码并点“确定”后,则出现图5所示的界面,该界面显示本次上机的信息。
图4
图5。
收费网站破解收费网站破解全攻略 1、谈到破解,当然需要一个工具,在这方面我们不得不承认国外的破解工具胜过国货,我以前用过流光等一些黑客工具。
在破解网站的能力上十分有限。
所以我在这里向,大家推荐一个破解工具AccessDive首先大家需要找到网站members的入口地址,举个例子我们在下面这个网页中看到了members only的标志 http:// ;那么我们就可以把鼠标放到members only上面然后点右键,点复制快捷方式,这样我们就得到了我们要破解的网址了。
我们把这个第一步就完成了。
呵呵!!很多朋友听到这里可能觉得,这么简单啊!!你还用那么长时间才学会,真是笨,其实这只是刚刚开始,接下篱锄着我一起继续破吧!我们破解确实很爽。
别人开网站的就到了霉,如果那一天发现我们的ip破他的网站,他肯定会拚了老命也要把我们逮出来。
所以这里就要说到破解的安全性了。
也就是proxy的使用,请大家在AccessDiver 的界面点proxy然后在USE WEb proxies前面的方格里打勾,看到Rotate proxies了吧?继续在它前面的方格你打勾,然后你会看到在Rotate proxies与logins to try before swapping 之间又出现一个方格,然后在里面填上 1 。
这个选项是说我们每用完一个proxies后然自动换另一个,这是保证破解质量的一个重要因素。
因为一些网站在安全系统方面已经改进了很多,如果你用一个ip(代理)破解它的网站,不到1分钟。
便死悄悄了。
所以下面我们就需要一个所谓的proxylist.我在这里可以向大家提供一个list,大家把它保存在自己的硬盘后,然后用proxyhunter把它们检验一遍。
把好的代理(proxies)保留在一个文档,然后在界面proxy--my list的最右边点击那个黄色文件夹的标志,我们就可以把刚才存档的proxy文档输进去了。
然后对着最上面“黑色的勾“点右键就把所有的proxy选择了,最后在任遗诨个proxy上点一下,也就算把proxy的准备工作结束了。
简易的网吧计费系统设计设计一个简易的网吧计费系统,要求上网人输入卡号和密码上机,卡号或密码不正确,不能上机,卡余额不足不能上机;正在使用的机器不能被再使用;上机需要记录卡号、机器号、上机时间;下机时需要记录下机时间、发生费用和自动从卡里扣款,该机器能再被使用;下机时,需要向用户显示本次上机的详细信息。
1) 上机业务流程卡号和密码的校验;卡的余额的检验;获取当前系统时间作为上机开始时间;记录上机操作;修改该机器的使用标志2) 下机业务流程选择被使用的机器号;获取系统当前时间作为下机时间;计算费用;扣费;记录下机时间和此次费用;修改该机器的状态为可用结构图效果截图如下********************face类********************* package wbsys.view;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.*;import wbsys.dao.huanji;import wbsys.dao.yuechaxun;public class Face extends JFrame {JPanel contentPane;JMenuBar jMenuBar1 = new JMenuBar();JMenu jMenu1 = new JMenu();JMenuItem jMenuItem1 = new JMenuItem();JMenuItem jMenuItem2 = new JMenuItem();JMenu jMenu2 = new JMenu();JMenuItem jMenuItem3 = new JMenuItem();JMenu jMenu3 = new JMenu();JMenuItem jMenuItem4 = new JMenuItem();JOptionPane jOptionPane1 = new JOptionPane();JLabel jLabel1 = new JLabel();JLabel jLabel2 = new JLabel();JLabel jLabel3 = new JLabel();JMenuItem jMenuItem5 = new JMenuItem();JMenuItem jMenuItem6 = new JMenuItem();JMenuItem jMenuItem7 = new JMenuItem();public Face() {try {setDefaultCloseOperation(EXIT_ON_CLOSE);jbInit();} catch (Exception exception) {exception.printStackTrace();}}private void jbInit() throws Exception {contentPane = (JPanel) getContentPane();contentPane.setLayout(null);this.setJMenuBar(jMenuBar1);setSize(new Dimension(650, 488));setTitle("网吧记费管理器");jMenuBar1.setBackground(Color.green);jMenuBar1.setFont(new java.awt.Font("Tahoma", Font.PLAIN, 15));jMenuBar1.setForeground(new Color(255, 0, 95));jMenu1.setBackground(Color.green);jMenu1.setForeground(Color.red);jMenu1.setText("使用");jMenuItem1.setForeground(Color.red);jMenuItem1.setText("上机");jMenuItem1.addActionListener(new Face_jMenuItem1_actionAdapter(this));jMenuItem2.setForeground(Color.red);jMenuItem2.setText("下机");jMenuItem2.addActionListener(new Face_jMenuItem2_actionAdapter(this)); jMenu2.setBackground(Color.green);jMenu2.setForeground(Color.red);jMenu2.setText("管理");jMenuItem3.setForeground(Color.red);jMenuItem3.setText("关于");jMenuItem3.addActionListener(new Face_jMenuItem3_actionAdapter(this)); jMenu3.setBackground(Color.green);jMenu3.setForeground(Color.red);jMenu3.setText("退出");jMenuItem4.setForeground(Color.red);jMenuItem4.setText("确定!");jMenuItem4.addActionListener(new Face_jMenuItem4_actionAdapter(this)); contentPane.setBackground(Color.cyan);jLabel1.setFont(new java.awt.Font("隶书", Font.PLAIN, 25));jLabel1.setForeground(Color.magenta);jLabel1.setText("网吧计费系统G16-制作");jLabel1.setBounds(new Rectangle(200, 150, 300, 39));jLabel2.setFont(new java.awt.Font("隶书", Font.PLAIN, 25));jLabel2.setForeground(Color.magenta);jLabel2.setText("2019-12-12 版本1.0");jLabel2.setBounds(new Rectangle(215, 200, 250, 34));jLabel3.setText("");jLabel3.setBounds(new Rectangle(0, 0, 650, 488));jMenuItem5.setForeground(Color.red);jMenuItem5.setText("管理");jMenuItem5.addActionListener(new Face_jMenuItem5_actionAdapter(this)); jMenuItem6.setForeground(Color.red);jMenuItem6.setText("余额查询");jMenuItem6.addActionListener(new Face_jMenuItem6_actionAdapter(this)); jMenuItem7.setForeground(Color.red);jMenuItem7.setText("换机");jMenuItem7.addActionListener(new Face_jMenuItem7_actionAdapter(this)); jMenuBar1.add(jMenu1);jMenuBar1.add(jMenu2);jMenuBar1.add(jMenu3);jMenu1.add(jMenuItem1);jMenu1.add(jMenuItem2);jMenu1.add(jMenuItem7);jMenu2.add(jMenuItem3);jMenu2.add(jMenuItem5);jMenu2.add(jMenuItem6);jMenu3.add(jMenuItem4);contentPane.add(jLabel1);contentPane.add(jLabel2);contentPane.add(jLabel3);}public void jMenuItem4_actionPerformed(ActionEvent e) {System.exit(0);}public void jMenuItem1_actionPerformed(ActionEvent e) {Shangjiface shang = new Shangjiface(this);this.setContentPane(shang);this.show();}public void jMenuItem2_actionPerformed(ActionEvent e) {xiajiface xia = new xiajiface(this);xia.setSize(483, 344);Dimension dsize = xia.getPreferredSize();Dimension fsize = xia.getSize();Point loc = getLocation();xia.setLocation((fsize.width - dsize.width) / 5 + loc.x, (fsize.height - dsize.height) / 4 + loc.y);xia.show();}public void jMenuItem3_actionPerformed(ActionEvent e) {jOptionPane1.showMessageDialog(null, "版权所有,违者必究!");jOptionPane1.showMessageDialog(null, " 2019-12-12,版本1.0");}public void jMenuItem5_actionPerformed(ActionEvent e) {guanlidenglu guan = new guanlidenglu(this);this.setContentPane(guan);this.show();}public void jMenuItem6_actionPerformed(ActionEvent e) {yuechaxun yue = new yuechaxun(this);yue.setSize(483, 344);Dimension dsize = yue.getPreferredSize();Dimension fsize = yue.getSize();Point loc = getLocation();yue.setLocation((fsize.width - dsize.width) / 4 + loc.x, (fsize.height - dsize.height) / 4 + loc.y);this.setContentPane(yue);this.show();}public void jMenuItem7_actionPerformed(ActionEvent e) {huanji jiemian = new huanji(this);this.setContentPane(jiemian);this.show();}}class Face_jMenuItem7_actionAdapter implements ActionListener { private Face adaptee;Face_jMenuItem7_actionAdapter(Face adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jMenuItem7_actionPerformed(e);}}class Face_jMenuItem6_actionAdapter implements ActionListener { private Face adaptee;Face_jMenuItem6_actionAdapter(Face adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jMenuItem6_actionPerformed(e);}}class Face_jMenuItem5_actionAdapter implements ActionListener { private Face adaptee;Face_jMenuItem5_actionAdapter(Face adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jMenuItem5_actionPerformed(e);}}class Face_jMenuItem2_actionAdapter implements ActionListener { private Face adaptee;Face_jMenuItem2_actionAdapter(Face adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jMenuItem2_actionPerformed(e);}}class Face_jMenuItem1_actionAdapter implements ActionListener { private Face adaptee;Face_jMenuItem1_actionAdapter(Face adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jMenuItem1_actionPerformed(e);}}class Face_jMenuItem4_actionAdapter implements ActionListener { private Face adaptee;Face_jMenuItem4_actionAdapter(Face adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jMenuItem4_actionPerformed(e);}}class Face_jMenuItem3_actionAdapter implements ActionListener { private Face adaptee;Face_jMenuItem3_actionAdapter(Face adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jMenuItem3_actionPerformed(e);}}****************guanli类*****************package wbsys.dao;import java.awt.*;import java.awt.event.*;import java.sql.*;import javax.swing.*;import wbsys.entity.Lianjie;import wbsys.view.Face;import wbsys.view.Shangjiface;import wbsys.view.xiajiface;public class guanli extends JPanel {Face main;Lianjie co = new Lianjie();Statement s;Connection c;ResultSet rs;JLabel jLabel1 = new JLabel();JLabel jLabel2 = new JLabel();JLabel jLabel3 = new JLabel();JButton jButton2 = new JButton();JButton jButton3 = new JButton();JButton jButton4 = new JButton();JButton jButton5 = new JButton();JTextField jTextField2 = new JTextField();JTextField jTextField3 = new JTextField();JTextField jTextField4 = new JTextField();JTextField jTextField5 = new JTextField();JLabel jLabel5 = new JLabel();JPasswordField jPasswordField1 = new JPasswordField();JTextField jTextField8 = new JTextField();JLabel jLabel4 = new JLabel();JButton jButton1 = new JButton();JTextField jTextField1 = new JTextField();JPasswordField jPasswordField2 = new JPasswordField();JTextField jTextField6 = new JTextField();JTextField jTextField7 = new JTextField();JLabel jLabel6 = new JLabel();JOptionPane jOptionPane1 = new JOptionPane();JButton jButton6 = new JButton();public guanli(Face k) {try {main = k;jbInit();} catch (Exception exception) {exception.printStackTrace();}}private void jbInit() throws Exception {this.setLayout(null);jLabel1.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 15));jLabel1.setForeground(Color.magenta);jLabel1.setText("卡号");jLabel1.setBounds(new Rectangle(10, 80, 80, 20));jLabel2.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 15));jLabel2.setForeground(Color.magenta);jLabel2.setText("用户名");jLabel2.setBounds(new Rectangle(110, 80, 80, 20));jLabel3.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 15));jLabel3.setForeground(Color.magenta);jLabel3.setText("密码");jLabel3.setBounds(new Rectangle(210, 80, 80, 20));jButton2.setBounds(new Rectangle(510, 200, 80, 20));jButton2.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10));jButton2.setForeground(Color.magenta);jButton2.setText("用户充值");jButton2.addActionListener(new guanli_jButton2_actionAdapter(this)); jButton3.setBounds(new Rectangle(510, 260, 80, 20));jButton3.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10)); jButton3.setForeground(Color.magenta);jButton3.setText("添加用户");jButton3.addActionListener(new guanli_jButton3_actionAdapter(this)); jButton4.setBounds(new Rectangle(128, 366, 57, 20));jButton4.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10)); jButton4.setForeground(Color.magenta);jButton4.setText("上机");jButton4.addActionListener(new guanli_jButton4_actionAdapter(this)); jButton5.setBounds(new Rectangle(241, 367, 57, 20));jButton5.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10)); jButton5.setForeground(Color.magenta);jButton5.setText("下机");jButton5.addActionListener(new guanli_jButton5_actionAdapter(this)); jTextField2.setForeground(Color.magenta);jTextField2.setText("");jTextField2.setBounds(new Rectangle(110, 140, 80, 20));jTextField3.setForeground(Color.magenta);jTextField3.setText("");jTextField3.setBounds(new Rectangle(10, 200, 80, 20));jTextField4.setForeground(Color.magenta);jTextField4.setText("");jTextField4.setBounds(new Rectangle(110, 200, 80, 20));jTextField5.setForeground(Color.magenta);jTextField5.setText("");jTextField5.setBounds(new Rectangle(410, 200, 77, 20));jLabel5.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 15)); jLabel5.setForeground(Color.magenta);jLabel5.setText("金额");jLabel5.setBounds(new Rectangle(410, 80, 80, 20)); jPasswordField1.setForeground(Color.magenta);jPasswordField1.setText("");jPasswordField1.setBounds(new Rectangle(210, 260, 80, 20)); jTextField8.setForeground(Color.magenta);jTextField8.setText("");jTextField8.setBounds(new Rectangle(410, 260, 80, 20));jLabel4.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 15)); jLabel4.setForeground(Color.magenta);jLabel4.setText("重复密码");jLabel4.setBounds(new Rectangle(310, 80, 80, 20));jButton1.setBounds(new Rectangle(510, 140, 80, 20));jButton1.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10));jButton1.setForeground(Color.magenta);jButton1.setText("删除用户");jButton1.addActionListener(new guanli_jButton1_actionAdapter(this)); jTextField1.setForeground(Color.magenta);jTextField1.setText("");jTextField1.setBounds(new Rectangle(10, 140, 80, 20)); jPasswordField2.setForeground(Color.magenta);jPasswordField2.setText("");jPasswordField2.setBounds(new Rectangle(310, 260, 80, 20)); jTextField6.setForeground(Color.magenta);jTextField6.setText("");jTextField6.setBounds(new Rectangle(10, 260, 80, 20));jTextField7.setForeground(Color.magenta);jTextField7.setText("");jTextField7.setBounds(new Rectangle(110, 260, 80, 20));jLabel6.setText("");jLabel6.setBounds(new Rectangle(0, 30, 650, 488));jButton6.setBounds(new Rectangle(353, 366, 57, 20));jButton6.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10)); jButton6.setForeground(Color.magenta);jButton6.setText("换机");jButton6.addActionListener(new guanli_jButton6_actionAdapter(this)); this.add(jLabel3);this.add(jLabel1);this.add(jTextField1);this.add(jTextField3);this.add(jTextField6);this.add(jLabel2);this.add(jTextField2);this.add(jTextField4);this.add(jTextField7);this.add(jPasswordField1);this.add(jPasswordField2);this.add(jTextField8);this.add(jLabel5);this.add(jLabel4);this.add(jTextField5);this.add(jButton3);this.add(jButton2);this.add(jButton1);this.add(jButton4);this.add(jButton5);this.add(jButton6);this.add(jLabel6);c = co.con();s = c.createStatement();}public void jButton4_actionPerformed(ActionEvent e) {Shangjiface jiemian = new Shangjiface(main);main.setContentPane(jiemian);main.show();}public void jButton5_actionPerformed(ActionEvent e) {xiajiface xia = new xiajiface(main);xia.setSize(483, 344);Dimension dsize = xia.getPreferredSize();Dimension fsize = xia.getSize();Point loc = getLocation();xia.setLocation(5 * (fsize.width - dsize.width) / 6 + loc.x, 4 * (fsize.height - dsize.height) / 5 + loc.y);xia.show();}public void jButton1_actionPerformed(ActionEvent e) {String u = jTextField1.getText().toString();String p = jTextField2.getText().toString();try {rs = s.executeQuery("select *from card419 where name='" + p + "' and kahao='" + u + "'");if (rs.next()) {s.executeUpdate("update card419 set name=null, password=null,fee='0' where name like '" + p+ "' and kahao like '" + u + "'");jOptionPane1.showMessageDialog(this, "删除成功!");jTextField1.setText("");jTextField2.setText("");} elsejOptionPane1.showMessageDialog(this, "卡号与用户名不匹配!请重新输入");} catch (SQLException N) {System.out.println(N);}}public void jButton2_actionPerformed(ActionEvent e) {String u = jTextField3.getText().toString();String p = jTextField4.getText().toString();String n = jTextField5.getText().toString();try {rs = s.executeQuery("select fee from card419 where name like '" + p + "' and kahaolike '" + u + "'");if (rs.next()) {float y = rs.getFloat(1);int W = Integer.parseInt(n);float g = y + W;s.executeUpdate("update card419 set fee='" + g + "' where name like '" + p + "' and kahao like '" + u + "'");if (n.equals("") == false) {jOptionPane1.showMessageDialog(this, "冲值成功!金额总计为" + g + "元");jTextField3.setText("");jTextField4.setText("");jTextField5.setText("");}if (n.equals("") == true) {jOptionPane1.showMessageDialog(this, "未填写金额!!");}} elsejOptionPane1.showMessageDialog(this, "卡号与用户名不匹配!请重新输入");} catch (SQLException N) {jOptionPane1.showMessageDialog(this, "冲值失败!请检查金额书写格式!");System.out.println(N);} catch (Exception B) {jOptionPane1.showMessageDialog(this, "冲值失败!请检查金额书写格式!");}}public void jButton3_actionPerformed(ActionEvent e) {try {String u = jTextField6.getText().toString();String p = jTextField7.getText().toString();String n = jTextField8.getText().toString();String l = jPasswordField1.getText().toString();String m = jPasswordField2.getText().toString();if (u.equals("") == false && p.equals("") == false && n.equals("") == false && l.equals("") == false&& m.equals("") == false) {rs = s.executeQuery("select kahao from card419 where kahao like '" + u + "'and name <> 'null'");if (rs.next()) {jOptionPane1.showMessageDialog(this, "卡号" + u + "已经被使用!");}else {rs = s.executeQuery("select kahao from card419 where kahao like '" + u + "'");if (!rs.next())jOptionPane1.showMessageDialog(this, "卡号" + u + "不存在!");else {if (l.equals(m) == false) {jOptionPane1.showMessageDialog(this, "两次密码不同!!");}if (l.equals(m) == true) {s.executeUpdate("update card419 set name='" + p + "', password='" + m + "',fee='" + n+ "' where kahao='" + u + "'");jOptionPane1.showMessageDialog(this, "成功添加新卡号" + u + "!");jTextField6.setText("");jTextField7.setText("");jTextField8.setText("");jPasswordField1.setText("");jPasswordField2.setText("");}}}}else {jOptionPane1.showMessageDialog(this, "请输入完整!不能有空项");}}catch (SQLException E) {System.out.println(E);jOptionPane1.showMessageDialog(this, "添加失败!请检查书写格式!");} catch (Exception M) {jOptionPane1.showMessageDialog(this, "添加失败!请检查书写格式!");}}public void jButton6_actionPerformed(ActionEvent e) {huanji jiemian = new huanji(main);main.setContentPane(jiemian);main.show();}}class guanli_jButton6_actionAdapter implements ActionListener {private guanli adaptee;guanli_jButton6_actionAdapter(guanli adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jButton6_actionPerformed(e);}}class guanli_jButton3_actionAdapter implements ActionListener { private guanli adaptee;guanli_jButton3_actionAdapter(guanli adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jButton3_actionPerformed(e);}}class guanli_jButton2_actionAdapter implements ActionListener { private guanli adaptee;guanli_jButton2_actionAdapter(guanli adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jButton2_actionPerformed(e);}}class guanli_jButton1_actionAdapter implements ActionListener { private guanli adaptee;guanli_jButton1_actionAdapter(guanli adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jButton1_actionPerformed(e);}}class guanli_jButton4_actionAdapter implements ActionListener { private guanli adaptee;guanli_jButton4_actionAdapter(guanli adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jButton4_actionPerformed(e);}}class guanli_jButton5_actionAdapter implements ActionListener { private guanli adaptee;guanli_jButton5_actionAdapter(guanli adaptee) {this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jButton5_actionPerformed(e);}}***************guanlidenglu类********************package wbsys.view;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.*;import wbsys.dao.guanli;public class guanlidenglu extends JPanel {Face main;JButton jButton1 = new JButton();JButton jButton2 = new JButton();JLabel jLabel1 = new JLabel();JLabel jLabel2 = new JLabel();JTextField jTextField1 = new JTextField();JPasswordField jPasswordField1 = new JPasswordField();JLabel jLabel3 = new JLabel();JOptionPane jOptionPane1 = new JOptionPane();JLabel jLabel4 = new JLabel();public guanlidenglu(Face f) {try {main = f;jbInit();} catch (Exception exception) {exception.printStackTrace();}}private void jbInit() throws Exception {this.setLayout(null);jButton1.setBounds(new Rectangle(61, 350, 57, 20));jButton1.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10));jButton1.setForeground(Color.magenta);jButton1.setText("确定");jButton1.addActionListener(new guanlidenglu_jButton1_actionAdapter(this));jButton2.setBounds(new Rectangle(174, 351, 57, 20));jButton2.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10));jButton2.setForeground(Color.magenta);jButton2.setText("重置");jButton2.addActionListener(new guanlidenglu_jButton2_actionAdapter(this));jLabel1.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 15));jLabel1.setForeground(Color.magenta);jLabel1.setBounds(new Rectangle(42, 177, 97, 25));jLabel2.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 15));jLabel2.setForeground(Color.magenta);jLabel2.setText("密码");jLabel2.setBounds(new Rectangle(50, 230, 80, 20));jTextField1.setForeground(Color.magenta);jTextField1.setText("");jTextField1.setBounds(new Rectangle(110, 180, 80, 20));jPasswordField1.setForeground(Color.magenta);jPasswordField1.setText("");jPasswordField1.setBounds(new Rectangle(110, 230, 80, 20));jLabel3.setFont(new java.awt.Font("隶书", Font.PLAIN, 25));jLabel3.setForeground(Color.magenta);jLabel3.setText("请勿尝试破解密码!");jLabel3.setBounds(new Rectangle(20, 70, 390, 40));jOptionPane1.setBackground(Color.magenta);jOptionPane1.setForeground(Color.green);jLabel4.setText("");jLabel4.setBounds(new Rectangle(0, 0, 650, 488));this.add(jLabel2);this.add(jLabel1);this.add(jTextField1);this.add(jPasswordField1);this.add(jLabel3);this.add(jButton1);this.add(jButton2);this.add(jLabel4);}public void jButton1_actionPerformed(ActionEvent e) {String u = jTextField1.getText();String U = "root";String p = jPasswordField1.getText();String P = "1234";if (u.equals(U) == true && p.equals(P) == true){guanli shang = new guanli(main);main.setContentPane(shang);main.show();} else if (u.equals("") == false && p.equals("") == false) {jOptionPane1.showMessageDialog(this, "信息输入错误!请重新输入!");}}public void jButton2_actionPerformed(ActionEvent e) {jTextField1.setText("");}}class guanlidenglu_jButton2_actionAdapter implements ActionListener { private guanlidenglu adaptee;guanlidenglu_jButton2_actionAdapter(guanlidenglu adaptee) { this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jButton2_actionPerformed(e);}}class guanlidenglu_jButton1_actionAdapter implements ActionListener { private guanlidenglu adaptee;guanlidenglu_jButton1_actionAdapter(guanlidenglu adaptee) { this.adaptee = adaptee;}public void actionPerformed(ActionEvent e) {adaptee.jButton1_actionPerformed(e);}}****************huanji类********************package wbsys.dao;import java.awt.*;import java.awt.event.*;import java.sql.*;import javax.swing.*;import javax.swing.event.AncestorEvent;import javax.swing.event.AncestorListener;import wbsys.entity.Lianjie;import wbsys.view.Face;import wbsys.view.Shangjiface;import wbsys.view.xiajiface;public class huanji extends JPanel {Face main;Lianjie lian = new Lianjie();Connection con;Statement s;ResultSet rs;public huanji(Face g) {try {main = g;jbInit();} catch (Exception exception) {exception.printStackTrace();}}private void jbInit() throws Exception {this.setLayout(null);jComboBox1.setForeground(Color.magenta);jComboBox1.setBounds(new Rectangle(110, 140, 75, 20));jComboBox2.setForeground(Color.magenta);jComboBox2.setBounds(new Rectangle(110, 200, 75, 20));jTextField1.setForeground(Color.magenta);jTextField1.setText("");jTextField1.setBounds(new Rectangle(110, 260, 75, 20));jButton1.setBounds(new Rectangle(41, 349, 57, 20));jButton1.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10));jButton1.setForeground(Color.magenta);jButton1.setText("确定");jButton1.addActionListener(new huanji_jButton1_actionAdapter(this));jButton2.setBounds(new Rectangle(128, 349, 57, 20));jButton2.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10));jButton2.setForeground(Color.magenta);jButton2.setText("上机");jButton2.addActionListener(new huanji_jButton2_actionAdapter(this));jButton3.setBounds(new Rectangle(212, 350, 57, 20));jButton3.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 10));jButton3.setForeground(Color.magenta);jButton3.setText("下机");jButton3.addActionListener(new huanji_jButton3_actionAdapter(this));jLabel1.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 15));jLabel1.setForeground(Color.magenta);jLabel1.setText("原机号");jLabel1.setBounds(new Rectangle(30, 140, 64, 14));jLabel2.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 15));jLabel2.setForeground(Color.magenta);jLabel2.setText("新机号");jLabel2.setBounds(new Rectangle(30, 200, 53, 15));jLabel3.setFont(new java.awt.Font("楷体_GB2312", Font.PLAIN, 15));jLabel3.setForeground(Color.magenta);jLabel3.setText("卡号");jLabel3.setBounds(new Rectangle(30, 260, 42, 15));jOptionPane1.addAncestorListener(new huanji_jOptionPane1_ancestorAdapter(this));jLabel4.setText("");jLabel4.setBounds(new Rectangle(0, 0, 650, 488));this.add(jButton1);this.add(jButton2);this.add(jButton3);this.add(jComboBox1);this.add(jComboBox2);this.add(jTextField1);this.add(jLabel1);this.add(jLabel2);this.add(jLabel3);this.add(jLabel4);con = lian.con();s = con.createStatement();rs = s.executeQuery("select ID from computer419 where onuse='Y' order by ID");while (rs.next()) {jComboBox1.addItem(rs.getInt(1));}rs = s.executeQuery("select ID from computer419 where Onuse='N' order by ID");while (rs.next()) {jComboBox2.addItem(rs.getInt(1));}}JComboBox jComboBox1 = new JComboBox();JComboBox jComboBox2 = new JComboBox();JTextField jTextField1 = new JTextField();JButton jButton1 = new JButton();JButton jButton2 = new JButton();JButton jButton3 = new JButton();JLabel jLabel1 = new JLabel();JLabel jLabel2 = new JLabel();JLabel jLabel3 = new JLabel();JOptionPane jOptionPane1 = new JOptionPane();JLabel jLabel4 = new JLabel();public void jButton2_actionPerformed(ActionEvent e) {Shangjiface jiemian = new Shangjiface(main);main.setContentPane(jiemian);main.show();}public void jButton3_actionPerformed(ActionEvent e) {xiajiface xia = new xiajiface(main);xia.setSize(483, 344);Dimension dsize = xia.getPreferredSize();Dimension fsize = xia.getSize();Point loc = getLocation();xia.setLocation(5 * (fsize.width - dsize.width) / 6 + loc.x, 4 * (fsize.height - dsize.height) / 5 + loc.y);xia.show();}。