zoukankan      html  css  js  c++  java
  • 两只小熊队高级软件工程第七次作业敏捷冲刺6

    团队的作业:学生信息管理系统

    • 队员学号:

        周菲(队长) 201810812007

        孔繁燕    201810812001

    Alpha敏捷冲刺:

    1、 站立式会议照片

     

    2、每个人的工作:

    周菲:

    今天已完成:实现增加班级信息功能

    遇到的问题:无

    明天计划完成:修改班级信息功能

    孔繁燕:

    今天已完成:实现增加班级信息功能测试

    遇到的问题;无

    明天计划完成:修改班级信息功能

    3、项目燃尽图

     

    4、部分项目代码和截图:

    public class GradeAddDialog extends JInternalFrame
    {
    
        private static final long serialVersionUID = 1L;
        private JTextField txtGradeId;
        private JTextField txtGradeName;
        private IReload reload;
        private GradeService gradeService = new GradeService();
    
        public GradeAddDialog()
        {
            setIconifiable(true);
            setTitle("添加一条班级信息...");
            init();
    
        }
        private void init()
        {
            setClosable(true);
            setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    
            setBounds(100, 100, 450, 300);
            getContentPane().setLayout(null);
    
            JLabel label = new JLabel("班级编号");
    
            label.setBounds(53, 37, 111, 57);
            getContentPane().add(label);
    
            txtGradeId = new JTextField();
            txtGradeId.setBounds(142, 55, 158, 21);
            getContentPane().add(txtGradeId);
            txtGradeId.setColumns(10);
    
            JLabel label_1 = new JLabel("班级名称:");
    
            label_1.setBounds(53, 114, 111, 57);
            getContentPane().add(label_1);
    
            txtGradeName = new JTextField();
            txtGradeName.setColumns(10);
            txtGradeName.setBounds(142, 132, 158, 21);
            getContentPane().add(txtGradeName);
    
            JButton btnSave = new JButton("保存");
            btnSave.addActionListener(new ActionListener()
            {
                public void actionPerformed(ActionEvent e)
                {
    
                    int gradeId = Integer.parseInt(txtGradeId.getText());
                    String gradeName = txtGradeName.getText();
    
                    Grade grade = new Grade(gradeId, gradeName);
                    boolean isSave = gradeService.add(grade);
    
                    if (isSave)
                    {
                        reload.reload();
    
                        GradeAddDialog.this.setVisible(false);
    
                    } else
                    {
                        System.out.println("保存失败");
                    }
                }
            });
            btnSave.setBounds(53, 208, 93, 23);
            getContentPane().add(btnSave);
    
            JButton btnCancel = new JButton("取消");
            btnCancel.addActionListener(new ActionListener()
            {
                public void actionPerformed(ActionEvent e)
                {
    
                    GradeAddDialog.this.setVisible(false);
                }
            });
            btnCancel.setBounds(227, 208, 93, 23);
            getContentPane().add(btnCancel);
        }
    
        public GradeAddDialog(IReload reload)
        {
            this.reload = reload;
            init();
        }
  • 相关阅读:
    应对https协议的下载方式
    订单峰值激增 230%,Serverless 如何为世纪联华降本超 40%?|双11 云原生实践
    阿里云函数计算发布新功能,支持容器镜像,加速应用 Serverless 进程
    专访阿里云 Serverless 负责人:无服务器不会让后端失业
    从零入门 Serverless | SAE 的远程调试和云端联调
    我在阿里巴巴做 Serverless 云开发平台
    高德最佳实践:Serverless 规模化落地有哪些价值?
    [图论总结1]最大独立集(例题:Code Names)
    Excel导入SQL工具【3.02】
    学习笔记助手【2.01】base1 更新
  • 原文地址:https://www.cnblogs.com/sugarfei/p/10040984.html
Copyright © 2011-2022 走看看