议程管理系统功能:用于加入一项会议内容到会议存储表中

源代码在线查看: delete.java

软件大小: 29 K
上传用户: jipigu
关键词: 管理系统 存储
下载地址: 免注册下载 普通下载 VIP

相关代码

				package agenda;
				
				
				/**
				 * 类名:Delete
				 * 功能:用于删除一项会议内容
				 * 作者:孟欣(05376053)
				 * 开发环境:Eclipse 3.2、JDK 1.5.0
				 * 版本号:3.0
				 * 日期:  2008/4/9
				 *
				 */
				public class Delete {
					
					private Users tpUsers = null;
				
					public Delete(String Rname, String Rpassword, String table)
					{
						
						if(Register.hashUser.containsKey(Rname)){
							tpUsers = Register.hashUser.get(Rname);
						
						   if(tpUsers.userName.equals(Rname) && tpUsers.password.equals(Rpassword)){
						    	if(Add.hashMeeting.containsKey(table)){
						    		Add.hashMeeting.remove(table);
						    		System.out.println("Congratulations! Delete your meetings \""+table+"\" is succeed!\n");
						    	}
					        	else System.out.println("Sorry, you don'n have any meeting like that...\n");
						   }
						   else System.out.println("Your password is not correct...\n");
						}
						else {
							System.out.println("Sorry,the name \""+Rname+"\" isn't exist!");
							System.out.println("Please regist a new accounts first...\n");
						}
					}
				}
							

相关资源