Personal project Maker (PSP)

Source: Internet
Author: User

Plan:

The implementation of this feature of the software, the personal estimate takes a week's time.

Development phase:

Requirements Analysis:

1> athletes want the software to record their own scoring items.

2> athletes want the software to record their scoring details.

3> athletes want the software to record their points of entry.

4> athletes want the software to record their total score.

5> athletes hope the software can give themselves advice.

Design Documentation:

1) Athletes can log in to their scoring interface.

2) Athletes can record their scores clearly in the interface.

3 athletes can record their points of losing in points.

4 athletes can calculate their total score, and view their ability to analyze.

5 The software will give the athlete some advice.

The software has a three-tier architecture,

One layer of UI layer of business logic layer of data access layer,

Use an entity class to describe an athlete's identity.

The software can be scored and can be queried for past records.

The software can analyze the data and then summarize it.

Specific design:

Specific code:

private void Form4_load (object sender, EventArgs e)
{
Panel1. Hide ();
}

private void Button3_Click (object sender, EventArgs e)
{
Form1 FR = new Form1 ();
This. Close ();
Fr. Show ();
}

private void Button1_Click (object sender, EventArgs e)
{
Panel1. Show ();
User. Text = "Welcome entry:" + TextBox1.Text + "!";

}

private void Button2_Click (object sender, EventArgs e)
{
Panel1. Hide ();
TextBox1.Text = "";
User. Text = "";
Faqiu. Text = "";
Lanwang. Text = "";
Yichuan. Text = "";
Erchuan. Text = "";
Textbox7.text = "";
Kouqiu. Text = "";
Jushu. Text = "";
}

private void Textbox4_textchanged (object sender, EventArgs e)
{

}

private void Button5_click (object sender, EventArgs e)
{

}

private void Button5_click_1 (object sender, EventArgs e)
{
FORM5 FR = new FORM5 ();
Fr. Show ();
}

private void Button4_Click (object sender, EventArgs e)
{
Qiuyuan qy = new Qiuyuan ();
Qy.faqiu = Int. Parse (Faqiu. Text);
Qy.beizhu = Textbox7.text;
Qy.erchuan = Int. Parse (Erchuan. Text);
Qy.yichuan = Int. Parse (Yichuan. Text);
Qy.name = TextBox1.Text;
Qy.kouqiu =int. Parse (Kouqiu. Text);
Qy.lanwang = Int. Parse (Lanwang. Text);
JILUFENSHUBLL bl = new JILUFENSHUBLL ();
if (Bl.add (QY) >0)
{
Label10. Text = "record Success";
Faqiu. Text = "";
Lanwang. Text = "";
Yichuan. Text = "";
Erchuan. Text = "";
Textbox7.text = "";
Kouqiu. Text = "";
Jushu. Text = "";
}

}

private void textBox1_TextChanged (object sender, EventArgs e)
{

}

private void Button1_Click (object sender, EventArgs e)
{
TextBox1.Text = "Overall good results, continue to refuel";
}

private void Button2_Click (object sender, EventArgs e)
{
TextBox2.Text = "Not in some ways, it takes a little more time to exercise";
}

public class Jilufenshu
{
public int Add (Qiuyuan q) {
String sql = "INSERT INTO score values (@n,@f,@k,@l,@y,@e,@j,@b)";
Sqlparameter[] PS = {
New SqlParameter ("@n", Q.name),
New SqlParameter ("@f", Q.faqiu),
New SqlParameter ("@k", Q.kouqiu),
New SqlParameter ("@l", Q.lanwang),
New SqlParameter ("@y", Q.yichuan),
New SqlParameter ("@e", Q.erchuan),
New SqlParameter ("@j", Q.jushu),
New SqlParameter ("@b", Q.beizhu)
};
Return Sqlheper.executenonquery (SQL,PS);

}

public class Qiuyuan
{
public string name;
public int Jushu;
public int Faqiu;
public int Kouqiu;
public int Yichuan;
public int Erchuan;
public int Lanwang;
public string Beizhu;
}

Code review:

The code is reviewed by me and the students in the dorm.

Test:

You and your classmates tested the implementation of software functions. The problem is not present.

Summarize:

This software function programming, altogether spent a week of time, the software function already can realize concretely.  

In the programming of the project also encountered and solved a number of problems. Strengthened the panel's discussions. The ability of the group

Has also been promoted. After the completion of software production, the final feeling is that the software process relative to the compilation

Code is more important, the idea of software is very important.

Personal project Maker (PSP)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.