毕业论文设计管理系统(papermanagement和ScoreInformation)

package myproject3;
import java.util.Scanner;
public class PaperManagement {
    static int sum=0;
    static Scanner sc = null;
    static ScoreInformation[] s = new ScoreInformation[5];
     public static int systemMenu() //主菜单界面
     { 
        sc = new Scanner(System.in);
        System.out.println(
                "*********************************************************** \n" + 
                "                     石家庄铁道大学软件工程系 \n" + 
                "                    毕业设计论文管理系统2021版\n" + 
                "***********************************************************  \n" + 
                "                      1、毕业设计论文提交 \n" + 
                "                      2、毕业设计论文查重 \n" + 
                "                      3、毕业设计论文审查 \n" + 
                "                      4、退出论文管理系统 \n" + 
                "*********************************************************** ");
        System.out.println("请选择:");
        int ch;
        ch = sc.nextInt();
        return ch;
    }
    
     public static void mainFrame() //主方法
     {
         int choose;
         choose = systemMenu();
         if(choose<=4&&choose>=1) {
             
             switch (choose) {
             case 1:
                 PaperManagement.tijiaoxuehao();
                 break;
             case 2:
                 PaperManagement.chachongxuehao();
                 break;
             case 3:
                 PaperManagement.shenchaxuehao();
                 break;
             case 4:
                 //退出界面
                 System.out.println(
                 "***********************************************************"+"\n"+
                 "               石家庄铁道大学软件工程系毕业设计论文管理系统2021版         "+"\n"+
                 "                       制作人:"+s[0].getName()           +"\n"+
                 "***********************************************************");
                 System.exit(0);
                 break;
             }
             }
         else
         {
             System.out.println("该选项不存在,请重新选择!");
             choose = systemMenu();
         }
        }
     
     //提交界面
     public static void tijiaoxuehao() //提交界面学号判断
     {
         System.out.println(
                  "*********************************************************** \n" + 
                  "           石家庄铁道大学软件工程系毕业设计论文管理系统2021版\n" + 
                  "                   毕业设计论文提交\n" + 
                  "***********************************************************  \n" + 
                  "                   请输入学生学号: \n" + 
                  "*********************************************************** ");
          System.out.println("请输入八位学号:");
          String stunumber;
            stunumber = sc.next();//从键盘输入字符串
            int count=0;
        for(int k=0;k<5;k++) {
            if(s[k].getStunumber().compareTo(stunumber)==0) 
                {
                sum=k;
                count++;
                break;
                }
        }
            if(count==1)
            {
               PaperManagement.timu(sum);
            }
            else
            {
                System.out.println("该用户不存在,请重新输入学号!");
                PaperManagement.tijiaoxuehao();
            }
     }
            
     public static void timu(int k) //提交界面论文题目判断
     {
         System.out.println(
                  "*********************************************************** \n" + 
                  "           石家庄铁道大学软件工程系毕业设计论文管理系统2021版\n" + 
                  "                     毕业设计论文提交\n" + 
                  "***********************************************************  \n" + 
                  "                 学生学号: " + s[k].getStunumber()+"\n"+
                  "                 学生姓名: " + s[k].getName()+"\n"+
                  "                 所在班级: " + s[k].getStuclass()+"\n"+
                  "                 请输入毕业设计论文题目: " + "\n"+
                  "*********************************************************** ");
        String papertitle;
         papertitle = sc.next();
         if(papertitle.length()<=10)
         {
             s[k].setPapertitle(papertitle);
             PaperManagement.zhengwen(k);
         }
         else
         {
             System.out.println("论文题目长度超过10,请重新输入毕业设计论文题目!");
             PaperManagement.timu(k);
         }
     }
     
     public static void zhengwen(int k) //提交界面论文正文判断
     {
         System.out.println(
                  "*********************************************************** \n" + 
                  "           石家庄铁道大学软件工程系毕业设计论文管理系统2021版\n" + 
                  "                    毕业设计论文提交\n" + 
                  "***********************************************************  \n" + 
                  "                 学生学号: " + s[k].getStunumber()+"\n"+
                  "                 学生姓名: " + s[k].getName() +"\n"+
                  "                 所在班级: " + s[k].getStuclass()+"\n"+
                  "                 毕业设计论文题目: " + s[k].getPapertitle() +"\n"+
                  "                 请输入毕业设计论文正文: \n" + 
                  "***********************************************************");
         String paperbody;
         paperbody = sc.next();
         if(paperbody.length()<=200)
         {
             s[k].setPaperbody(paperbody);
             PaperManagement.submit(k);
         }
         else
         {
             System.out.println("论文正文长度超过200,请重新输入毕业设计论文正文!");
             PaperManagement.zhengwen(k);
         }
     }
     
     public static void submit(int k) //提交界面判断是否提交或重新提交
     {
         System.out.println(
                  "*********************************************************** \n" + 
                  "          石家庄铁道大学软件工程系毕业设计论文管理系统2021版\n" + 
                  "                   毕业设计论文提交\n" + 
                  "***********************************************************  \n" + 
                  "                 学生学号: " + s[k].getStunumber()+"\n"+
                  "                 学生姓名: " + s[k].getName() +"\n"+
                  "                 所在班级: " + s[k].getStuclass()+"\n"+
                  "                 毕业设计论文题目: " + s[k].getPapertitle() +"\n"+
                  "                 请输入毕业设计论文正文: " + s[k].getPaperbody()+"\n"+
                  "                 该学生成绩已录入完毕,是否提交(Y/N) \n"+
                  "*********************************************************** ");
         String tijiao;
         tijiao = sc.next();
         if(tijiao.equals("Y"))
         {
             PaperManagement.mainFrame();
         }
         else 
         {
             if(tijiao.equals("N"))
             {
                 s[k].setPapertitle(null);
                 s[k].setPaperbody(null);
                 PaperManagement.tijiaoxuehao(); 
             }
             else
             {
                 System.out.println("信息错误,请重新输入是否提交!");
                 PaperManagement.submit(k);
             }
         }
     }
    
     //查重界面
     public static void chachongxuehao() //查重界面学号判断
     {
         System.out.println(
                   "*********************************************************** \n" + 
                   "        石家庄铁道大学软件工程系毕业设计论文管理系统2021版\n" + 
                   "                  毕业设计论文查重\n" + 
                   "***********************************************************  \n" + 
                   
                   "                  请输入学生学号: \n"+
                   "*********************************************************** ");
         System.out.println("请输入八位学号:");
          String stunumber;
            stunumber = sc.next();
            int count=0;
        for(int k=0;k<5;k++) {
            if(s[k].getStunumber().compareTo(stunumber)==0) 
                {
                sum=k;
                count++;
                break;
                }
        }
            if(count==1)
            {
               PaperManagement.chachonglv(sum);
            }
            else
            {
                System.out.println("该用户不存在,请重新输入学号!");
                PaperManagement.chachongxuehao();
            }
     }
     
     public static void chachonglv(int k) //查重界面查重率判断
     {
         System.out.println(
                   "*********************************************************** \n" + 
                   "         石家庄铁道大学软件工程系毕业设计论文管理系统2021版\n" + 
                   "                     毕业设计论文查重\n" + 
                   "***********************************************************  \n" + 
                   "                 学生学号: " + s[k].getStunumber()+"\n"+
                   "                 学生姓名: " + s[k].getName() +"\n"+
                   "                 所在班级: " + s[k].getStuclass()+"\n"+
                   "                 毕业设计论文题目: " + s[k].getPapertitle()+"\n"+
                   "                 毕业设计论文正文: " + s[k].getPaperbody()+"\n"+
                   "                 请输入毕业设计论文查重率:"+"\n"+
                   "*********************************************************** ");
         double paperpass;
            paperpass = sc.nextDouble();
            if(paperpass<=0.2)
            {
                s[k].setPaperpass(paperpass);
               PaperManagement.duplicate(k);
            }
            else
            {
               System.out.println("该学生毕业论文重复率超过20%,不允许进行论文审查!");
               PaperManagement.chachongxuehao();
            } 
     }
     
   public static void duplicate(int k) //查重界面判断是否继续查重或退出查重
     {
       System.out.println(
                  "*********************************************************** \n" + 
                  "         石家庄铁道大学软件工程系毕业设计论文管理系统2021版\n" + 
                  "                     毕业设计论文查重\n" + 
                  "***********************************************************  \n" + 
                  "                 学生学号: " + s[k].getStunumber()+"\n"+
                  "                 学生姓名: " + s[k].getName() +"\n"+
                  "                 所在班级: " + s[k].getStuclass()+"\n"+
                  "                 毕业设计论文题目: " + s[k].getPapertitle()+"\n"+
                  "                 毕业设计论文正文: " + s[k].getPaperbody()+"\n"+
                  "                 毕业设计论文查重率:"+ s[k].getPaperpass()+"\n"+
                  "                 该学生毕业设计论文查重率已录入完毕,是否继续查重(Y/N)"+"\n"+
                  "*********************************************************** ");
        String canjia;
        canjia = sc.next();
        if(canjia.equals("Y"))
        {
            PaperManagement.chachongxuehao();
        }
        else 
        {
            if(canjia.equals("N"))
            {
                PaperManagement.mainFrame(); 
            }
            else
            {
                System.out.println("信息错误,请重新输入是否继续查重!");
                PaperManagement.duplicate(k);
            }
        }
        
     }
   
   //审查界面
   public static void shenchaxuehao() //审查界面学号判断
   {
       System.out.println(
                 "*********************************************************** \n" + 
                 "          石家庄铁道大学软件工程系毕业设计论文管理系统2021版\n" + 
                 "                  毕业设计论文审查\n" + 
                 "***********************************************************  \n" + 
                
                 "                  请输入学生学号:\n"+
                 "*********************************************************** ");
       System.out.println("请输入八位学号:");
          String stunumber;
          stunumber = sc.next();
          int count=0;
        for(int k=0;k<5;k++) {
            if(s[k].getStunumber().compareTo(stunumber)==0) 
                {
                sum=k;
                count++;
                break;
                }
        }
          if(count==1)
          {
             PaperManagement.examine(sum);
          }
          else
          {
              System.out.println("该用户不存在,请重新输入学号!");
              PaperManagement.shenchaxuehao();
          }
    }
    
     public static void examine(int k) //审查界面判断是否参加答辩并继续审查或不同意参加答辩并退出审查
     {
         System.out.println(
                   "*********************************************************** \n" + 
                   "         石家庄铁道大学软件工程系毕业设计论文管理系统2021版\n" + 
                   "                     毕业设计论文查重\n" + 
                   "***********************************************************  \n" + 
                   "                 学生学号: " + s[k].getStunumber()+"\n"+
                   "                 学生姓名: " + s[k].getName() +"\n"+
                   "                 所在班级: " + s[k].getStuclass()+"\n"+
                   "                 毕业设计论文题目: " + s[k].getPapertitle()+"\n"+
                   "                 毕业设计论文正文: " + s[k].getPaperbody()+"\n"+
                   "                 毕业设计论文查重率:"+ s[k].getPaperpass()+"\n"+
                   "                 是否同意该学生参加毕业设计答辩并继续审查(Y/N)"+"\n"+
                   "*********************************************************** ");
        String canjiadabian;
        canjiadabian = sc.next();
          if(canjiadabian.equals("Y"))
          {
              s[k].setPaperreview(true);
              PaperManagement.shenchaxuehao();
          }
          else 
          {
              if(canjiadabian.equals("N"))
              {
                  s[k].setPaperreview(false);
                  PaperManagement.mainFrame(); 
              }
              else
              {
                  System.out.println("信息错误,请重新输入是否提交!");
                  PaperManagement.examine(k);
              }
          }    
     }
     
   public static void main(String[] args) {
        s[0]= new ScoreInformation("20203972","卢彦妃","信2005-2班",null,null,0.0,false);
        s[1]= new ScoreInformation("20203973","王琳凯","信2005-2班",null,null,0.0,false);
        s[2] = new ScoreInformation("20203974","黄明昊","信2005-3班",null,null,0.0,false);
        s[3] = new ScoreInformation("20203975","范丞丞","信2005-4班",null,null,0.0,false);
        s[4]= new ScoreInformation("20203976","尤长靖","信2005-5班",null,null,0.0,false);
        PaperManagement.mainFrame();
  }    
}

 

package myproject3;
public class ScoreInformation {
	private String stunumber;
	private String name;
	private String stuclass;
	private String papertitle;
	private String paperbody;
	private double paperpass;
	private boolean paperreview;
    
	ScoreInformation(String stunumber,String name,String stuclass,String papertitle,String paperbody,double paperpass,boolean paperreview)
    {
        this.stunumber=stunumber;
        this.name = name;
        this.stuclass = stuclass;
        this.papertitle = papertitle;
        this.paperbody = paperbody;
        this.paperpass = paperpass;
        this.paperreview = paperreview;
    }
    
     public String getStunumber() {
        return stunumber;
    }
    public void setStunumber(String stunumber) {
        this.stunumber = stunumber;
    }
    
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    
    public String getStuclass() {
        return stuclass;
    }
    public void setStuclass(String stuclass) {
        this.stuclass = stuclass;
    }

    public String getPapertitle() {
        return papertitle;
    }
    public void setPapertitle(String papertitle) {
        this.papertitle = papertitle;
    }
    
    public String getPaperbody() {
        return paperbody;
    }
    public void setPaperbody(String paperbody) {
        this.paperbody = paperbody;
    }
    
    public double getPaperpass() {
        return paperpass;
    }
    public void setPaperpass(double paperpass) {
        this.paperpass = paperpass;
    }
       
    public boolean isPaperreview() {
        return paperreview;
    }
    public void setPaperreview(boolean paperreview) {
        this.paperreview = paperreview;
    }
}

 

posted @ 2021-09-18 23:38  Lindseyyip  阅读(418)  评论(0编辑  收藏  举报