一计划

(1)估计这个任务需要多少时间:8天

二开发

(1)需求分析:作为一名观众,我希望了解每一场的比赛成绩,以便加深对自己喜爱球队的了解,以及赛况。

(2)生成设计文档:

(3)设计复审(和同学交流讨论)

(4)代码规范:无

(5)具体设计:

class SqlHelper

{

private static readonly string constr = ConfigurationManager.ConnectionStrings["connectionStr"].ConnectionSt

public static int ExecuteNonQuery(string sql, params SqlParameter[] pms)

{//使用using关键字定义一个范围,在范围结束时骸自动调用这个类实例的Dispose处理

using (SqlConnection con = new SqlConnection(constr))

{  //创建执行DSql命令对象

using (SqlCommand cmd = new SqlCommand(sql, con))

{

if (pms != null)

{

cmd.Parameters.AddRange(pms);

}

con.Open();

}

}

}

public static object ExecuteScalar(string sql, params SqlParameter[] pms)

{

using (SqlConnection con = new SqlConnection(constr))

{

using (SqlCommand cmd = new SqlCommand(sql, con))

{

if (pms != null)

{

cmd.Parameters.AddRange(pms);

}

con.Open();

return cmd.ExecuteScalar();

}

}

}

//执行返回SqlDataReader

public static SqlDataReader ExecuteReader(string sql, params SqlParameter[] pms)

{

SqlConnection con = new SqlConnection(constr);

using (SqlCommand cmd = new SqlCommand(sql, con))

{

if (pms != null)

{

cmd.Parameters.AddRange(pms);

}

try

{

con.Open();

return cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection);

}

catch (Exception)

{

con.Close();

con.Dispose();

throw;

}

}

}

//执行返回DataTable

public static DataTable ExecuteDataTable(string sql, params SqlParameter[] pms)

{

DataTable dt = new DataTable();

using (SqlDataAdapter adapter = new SqlDataAdapter(sql, constr))

{

if (pms != null)

{

adapter.SelectCommand.Parameters.AddRange(pms);

}

adapter.Fill(dt);

}

return dt;

}

}

class Info

{

public string Name { get; set; }

public int First { get; set; }

public int Second { get; set; }

public int Third { get; set; }

public int Fourth { get; set; }

public int Fifth { get; set; }

public int Score { get; set; }

}

private void Select1_Click_1(object sender, EventArgs e)

{

string sql = "select * from Bifen where Name=@Name";

SqlParameter[] paras = new SqlParameter[]

{

new SqlParameter("@Name",Name),

};

using (SqlDataReader reader = SqlHelper.ExecuteReader(sql, paras))

{

if (reader.Read())

{

Info bf = new Info();

bf.Name = (string)reader["Name"];

bf.Second = reader.GetInt32(1);

bf.Third = reader.GetInt32(2);

bf.Fourth = reader.GetInt32(3);

bf.Fifth = reader.GetInt32(4);

bf.Score = reader.GetInt32(5);

}

}

}

private void button1_Click(object sender, EventArgs e)

{

if(comboBox1.selectIndex==0)

{

txtbox1.Text = bf.first.ToString();

}

private void button1_Click(object sender, EventArgs e)

{

if (comboBox2.Text=="恒大:霹雳火"&&comboBox1.Text == "第一局") { textBox1.Text = "25:15"; }

if (comboBox2.Text == "恒大:霹雳火" && comboBox1.Text == "第二局") { textBox1.Text = "25:18"; }

if (comboBox2.Text == "恒大:霹雳火" && comboBox1.Text == "第三局") { textBox1.Text = "20:25"; }

if (comboBox2.Text == "恒大:霹雳火" && comboBox1.Text == "第四局") { textBox1.Text = "21:25"; }

if (comboBox2.Text == "恒大:霹雳火" && comboBox1.Text == "第五局") { textBox1.Text = "15:13"; }

}

private void button2_Click(object sender, EventArgs e)

{

if (comboBox2.Text == "恒大:霹雳火”) { textBox2.Text = "3:2"; }

if (comboBox2.Text == "恒大:霹雳火") { textBox2.Text = "3:1"; }

}

(6)代码复审:无

(7)测试:无

进行到此处,未完待续......

本周PSP流程进度的更多相关文章

  1. 本周psp

      本周PSP 类别 内容 开始时间 中止时间 终止时间 总用时 产品计划会议 定义产品的用户需求,以及从这个产品中得到什么.解决啥问题 18:00 0 20:00 120分钟 撰写博客 会议记录与个 ...

  2. 14TH本周工作量及进度统计

      14TH本周工作量及进度统计    本周psp:                    C(类别) C(内容) S(开始时间) ST(结束时间) I(中断时间) T(实际时间) 活动 本周会议 1 ...

  3. 本周psp(11月17-23)

    本周psp进度 11月19号 内容 开始时间 结束时间 打断时间 净时间 发布读书笔记 11:05 11:25 0 20m 看构建之法书 9:50 10:48 5m 53m 11月20号 内容 开始时 ...

  4. 8th 本周工作量及进度统计

    本周PSP: C(类别) C(内容) S(开始时间) ST(结束时间) I(中断时间) T(实际时间) 活动 本周站立会议 -- -- -- 340 撰写博客 构建之法有感 22:10 23:44 3 ...

  5. 本周PSP+历年作品评论

    本周PSP 类别 内容 开始时间 结束时间 间断时间 净时间(min) 9月11号 看书 构建之法 19:00 21:00 14 106 9月12号 写程序 词频统计多需求版 8:00 14:23 3 ...

  6. 12th 本周工作量及进度统计

    本周PSP: C(类别) C(内容) S(开始时间) ST(结束时间) I(中断时间) T(实际时间) 活动 1日—3日 用户调查 12月1日21:00 12月3日12:00 25小时 14小时 活动 ...

  7. 11th 本周工作量及进度统计

    本周PSP: C(类别) C(内容) S(开始时间) ST(结束时间) I(中断时间) T(实际时间) 文档 11月30日 回顾5个问题 13:00 13:50 2 48 11月30日 如果重新来过 ...

  8. 10th 本周工作量及进度统计

    本周PSP C(类别) C(内容) S(开始时间) ST(结束时间) I(中断时间) T(实际时间) 文档 11月22日 规格说明书练习 10:23­ 15:30 132 175 11月23日 知识点 ...

  9. 9th 本周工作量及进度统计

    本周psp C(类别) C(内容) S(开始时间) ST(结束时间) I(中断时间) T(实际时间) 文档 11月10日 Beta发布的评论 20:30 21:18 0:05 43 活动 11月12日 ...

随机推荐

  1. ASP.NET MVC RenderPartial和Partial的区别

    背景:ASP.NET MVC 4.0 @{ Html.RenderPartial(...); } public static void RenderPartial(this HtmlHelper ht ...

  2. iOS SpriteKit 问题

    今天偶然发现 向SKShapeNode添加子 node时,子node参考的是 SKShapeNode的parent的坐标系,但是如果使用SKSpriteNode却是使用自己的坐标系,带研究.而且sha ...

  3. day6

    开发一个简单的python计算器 实现加减乘除及拓号优先级解析 用户输入 1 - 2 * ( (60-30 +(-40/5) * (9-2*5/3 + 7 /3*99/4*2998 +10 * 568 ...

  4. ios 项目的.gitignore

    git作为代码管理工具,.gitignore文件用来忽略哪些哪些文件不用添加到仓库管理https://www.gitignore.io/ 这个网址输入变成语言会帮你生成常用的忽略文件如:IOS项目,输 ...

  5. iOS开发UI篇—CAlayer(自定义layer)

    iOS开发UI篇—CAlayer(自定义layer) 一.第一种方式 1.简单说明 以前想要在view中画东西,需要自定义view,创建一个类与之关联,让这个类继承自UIView,然后重写它的Draw ...

  6. October 26th Week 44th Wednesday 2016

    No matter how far you may fly, never forget where you come from. 无论飞得多高,也不要忘记起飞的地方. I never forget w ...

  7. 从SQLite获取数据完成一个产品信息展示

    在ios实际开发当中,我们常常用到Core Data做为数据储存首选.但在处理一些大量复杂的数据值且数据之间相互关联的时候,这就不得不使用关系型数据库来实现.例如一个导航程序,自身应该包含大量的地图自 ...

  8. PermGen space

    MyEclipse内存空间不足,调整空间操作: 1.点击"Run"-"Run Configurations",在打开的窗口中点击"Arguments& ...

  9. Java源码之 java.util.concurrent 学习笔记01

    准备花点时间看看 java.util.concurrent这个包的源代码,来提高自己对Java的认识,努力~~~ 参阅了@梧留柒的博客!边看源码,边通过前辈的博客学习! 包下的代码结构分类: 1.ja ...

  10. 【leetcode】Merge Sorted Array

    题目描述 Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assu ...