会议时间:2016年3月30日  13:00~13:20

会议成员:冉华,张敏,王巍,夏一鸣。

会议目的:汇报前一天工作,全体成员评论,确定会后修改内容或分配下一步任务。

会议内容:

1.前端,完成功能点为“将获取信息转化为中端所需格式”,“发送获取的信息给中端”。以下是代码部分

  1 package com.onezero.account;
  2
  3 import java.text.ParseException;
  4 import java.text.SimpleDateFormat;
  5 import java.util.Date;
  6
  7 import com.onezero.account.controller.Account;
  8 import com.onezero.account.controller.AccountManager;
  9 import com.onezero.account.controller.AccountManagerImpl;
 10
 11 import android.app.Activity;
 12 import android.os.Bundle;
 13 import android.util.Log;
 14 import android.view.Menu;
 15 import android.view.MenuItem;
 16 import android.view.View;
 17 import android.widget.Button;
 18 import android.widget.EditText;
 19 import android.widget.TextView;
 20 import android.widget.Toast;
 21
 22 public class add extends Activity {
 23
 24     @Override
 25     protected void onCreate(Bundle savedInstanceState) {
 26         super.onCreate(savedInstanceState);
 27         setContentView(R.layout.add_main);
 28         // 显示当前时间
 29         SimpleDateFormat formatter = new SimpleDateFormat(
 30                 "yyyy年MM月dd日    HH:mm:ss");
 31         Date curDate = new Date(System.currentTimeMillis());// 获取当前时间
 32         String str = formatter.format(curDate);
 33
 34         TextView mTime = (TextView) findViewById(R.id.mytime);
 35         mTime.setText(str);
 36
 37         // 实现事件类型选择,点击并改变显示。
 38         final TextView accounttype = (TextView) findViewById(R.id.accounttype);
 39         // 一般
 40         Button button1 = (Button) findViewById(R.id.button1);
 41         button1.setOnClickListener(new Button.OnClickListener() {
 42             public void onClick(View v) {
 43                 Button button1 = (Button) findViewById(R.id.button1);
 44                 accounttype.setText(button1.getText());
 45
 46             }
 47         });
 48         // 餐饮
 49         Button button2 = (Button) findViewById(R.id.button2);
 50         button2.setOnClickListener(new Button.OnClickListener() {
 51             public void onClick(View v) {
 52                 Button button2 = (Button) findViewById(R.id.button2);
 53                 accounttype.setText(button2.getText());
 54
 55             }
 56         });
 57
 58         // 购物
 59         Button button3 = (Button) findViewById(R.id.button3);
 60         button3.setOnClickListener(new Button.OnClickListener() {
 61             public void onClick(View v) {
 62                 Button button3 = (Button) findViewById(R.id.button3);
 63                 accounttype.setText(button3.getText());
 64
 65             }
 66         });
 67         // 交通
 68         Button button4 = (Button) findViewById(R.id.button4);
 69         button4.setOnClickListener(new Button.OnClickListener() {
 70             public void onClick(View v) {
 71                 Button button4 = (Button) findViewById(R.id.button4);
 72                 accounttype.setText(button4.getText());
 73
 74             }
 75         });
 76         // 娱乐
 77         Button button5 = (Button) findViewById(R.id.button5);
 78         button5.setOnClickListener(new Button.OnClickListener() {
 79             public void onClick(View v) {
 80                 Button button5 = (Button) findViewById(R.id.button5);
 81                 accounttype.setText(button5.getText());
 82
 83             }
 84         });
 85
 86         // 医疗
 87         Button button6 = (Button) findViewById(R.id.button6);
 88         button6.setOnClickListener(new Button.OnClickListener() {
 89             public void onClick(View v) {
 90                 Button button6 = (Button) findViewById(R.id.button6);
 91                 accounttype.setText(button6.getText());
 92
 93             }
 94         });
 95
 96         Button button7 = (Button) findViewById(R.id.button7);
 97         button7.setOnClickListener(new Button.OnClickListener() {
 98             public void onClick(View v) {
 99                 OK();
100
101             }
102         });
103
104     }
105
106     public boolean onCreateOptionsMenu(Menu menu) {
107         // Inflate the menu; this adds items to the action bar if it is present.
108         getMenuInflater().inflate(R.menu.add, menu);
109         return true;
110     }
111
112     @Override
113     public boolean onOptionsItemSelected(MenuItem item) {
114         // Handle action bar item clicks here. The action bar will
115         // automatically handle clicks on the Home/Up button, so long
116         // as you specify a parent activity in AndroidManifest.xml.
117
118         // 获取“录入”的返回键,并执行返回。
119         int id = item.getItemId();
120         if (id == R.id.action_add_back) {
121
122             onBackPressed();
123         }
124
125         return super.onOptionsItemSelected(item);
126     }
127
128     // OK按钮
129     public void OK() {
130
131         TextView mytime = (TextView) findViewById(R.id.mytime);
132         String text1 = mytime.getText().toString();
133
134         TextView accounttype = (TextView) findViewById(R.id.accounttype);
135         String text2 = accounttype.getText().toString();
136
137         EditText editText1 = (EditText) findViewById(R.id.editText1);
138         String text3 = editText1.getText().toString();
139
140         EditText editText2 = (EditText) findViewById(R.id.editText2);
141         String text4 = editText2.getText().toString();
142
143
144         if (text3.equals("")) {
145
146             Log.e("$%^", "toast");
147             Toast toast = Toast.makeText(add.this, "请输入金额。",
148                     Toast.LENGTH_SHORT);
149             toast.show();
150         }
151
152         else if(text3.equals(".")||text3.substring(0, 1).equals("0")){
153
154             Toast toast = Toast.makeText(add.this, "输入有误,请重新输入。",
155                     Toast.LENGTH_SHORT);
156             toast.show();
157
158
159
160         }
161
162         else{
163
164             AccountManager accountManager = new AccountManagerImpl();
165             Account account = new Account();
166             account.setAccountId(1);
167
168             try {
169                 account.setAccountDate(new SimpleDateFormat("yyyy年MM月dd日    HH:mm:ss").parse(text1));
170             } catch (ParseException e) {
171                 // TODO Auto-generated catch block
172                 e.printStackTrace();
173             }
174
175             account.setAccountType(text2);
176             account.setAccountSum(text3);
177             accountManager.addAcount(account);
178
179             onBackPressed();
180         }
181
182
183
184
185     }
186
187 }

add.java

2.中端,完成功能点为“接收前端发送的数据”,“发送数据给后端”,“提供查询接口”。以下是代码部分

  1 package com.onezero.account;
  2
  3 import java.text.ParseException;
  4 import java.text.SimpleDateFormat;
  5 import java.util.Date;
  6
  7 import com.onezero.account.controller.Account;
  8 import com.onezero.account.controller.AccountManager;
  9 import com.onezero.account.controller.AccountManagerImpl;
 10
 11 import android.app.Activity;
 12 import android.os.Bundle;
 13 import android.util.Log;
 14 import android.view.Menu;
 15 import android.view.MenuItem;
 16 import android.view.View;
 17 import android.widget.Button;
 18 import android.widget.EditText;
 19 import android.widget.TextView;
 20 import android.widget.Toast;
 21
 22 public class add extends Activity {
 23
 24     @Override
 25     protected void onCreate(Bundle savedInstanceState) {
 26         super.onCreate(savedInstanceState);
 27         setContentView(R.layout.add_main);
 28         // 显示当前时间
 29         SimpleDateFormat formatter = new SimpleDateFormat(
 30                 "yyyy年MM月dd日    HH:mm:ss");
 31         Date curDate = new Date(System.currentTimeMillis());// 获取当前时间
 32         String str = formatter.format(curDate);
 33
 34         TextView mTime = (TextView) findViewById(R.id.mytime);
 35         mTime.setText(str);
 36
 37         // 实现事件类型选择,点击并改变显示。
 38         final TextView accounttype = (TextView) findViewById(R.id.accounttype);
 39         // 一般
 40         Button button1 = (Button) findViewById(R.id.button1);
 41         button1.setOnClickListener(new Button.OnClickListener() {
 42             public void onClick(View v) {
 43                 Button button1 = (Button) findViewById(R.id.button1);
 44                 accounttype.setText(button1.getText());
 45
 46             }
 47         });
 48         // 餐饮
 49         Button button2 = (Button) findViewById(R.id.button2);
 50         button2.setOnClickListener(new Button.OnClickListener() {
 51             public void onClick(View v) {
 52                 Button button2 = (Button) findViewById(R.id.button2);
 53                 accounttype.setText(button2.getText());
 54
 55             }
 56         });
 57
 58         // 购物
 59         Button button3 = (Button) findViewById(R.id.button3);
 60         button3.setOnClickListener(new Button.OnClickListener() {
 61             public void onClick(View v) {
 62                 Button button3 = (Button) findViewById(R.id.button3);
 63                 accounttype.setText(button3.getText());
 64
 65             }
 66         });
 67         // 交通
 68         Button button4 = (Button) findViewById(R.id.button4);
 69         button4.setOnClickListener(new Button.OnClickListener() {
 70             public void onClick(View v) {
 71                 Button button4 = (Button) findViewById(R.id.button4);
 72                 accounttype.setText(button4.getText());
 73
 74             }
 75         });
 76         // 娱乐
 77         Button button5 = (Button) findViewById(R.id.button5);
 78         button5.setOnClickListener(new Button.OnClickListener() {
 79             public void onClick(View v) {
 80                 Button button5 = (Button) findViewById(R.id.button5);
 81                 accounttype.setText(button5.getText());
 82
 83             }
 84         });
 85
 86         // 医疗
 87         Button button6 = (Button) findViewById(R.id.button6);
 88         button6.setOnClickListener(new Button.OnClickListener() {
 89             public void onClick(View v) {
 90                 Button button6 = (Button) findViewById(R.id.button6);
 91                 accounttype.setText(button6.getText());
 92
 93             }
 94         });
 95
 96         Button button7 = (Button) findViewById(R.id.button7);
 97         button7.setOnClickListener(new Button.OnClickListener() {
 98             public void onClick(View v) {
 99                 OK();
100
101             }
102         });
103
104     }
105
106     public boolean onCreateOptionsMenu(Menu menu) {
107         // Inflate the menu; this adds items to the action bar if it is present.
108         getMenuInflater().inflate(R.menu.add, menu);
109         return true;
110     }
111
112     @Override
113     public boolean onOptionsItemSelected(MenuItem item) {
114         // Handle action bar item clicks here. The action bar will
115         // automatically handle clicks on the Home/Up button, so long
116         // as you specify a parent activity in AndroidManifest.xml.
117
118         // 获取“录入”的返回键,并执行返回。
119         int id = item.getItemId();
120         if (id == R.id.action_add_back) {
121
122             onBackPressed();
123         }
124
125         return super.onOptionsItemSelected(item);
126     }
127
128     // OK按钮
129     public void OK() {
130
131         TextView mytime = (TextView) findViewById(R.id.mytime);
132         String text1 = mytime.getText().toString();
133
134         TextView accounttype = (TextView) findViewById(R.id.accounttype);
135         String text2 = accounttype.getText().toString();
136
137         EditText editText1 = (EditText) findViewById(R.id.editText1);
138         String text3 = editText1.getText().toString();
139
140         EditText editText2 = (EditText) findViewById(R.id.editText2);
141         String text4 = editText2.getText().toString();
142
143
144         if (text3.equals("")) {
145
146             Log.e("$%^", "toast");
147             Toast toast = Toast.makeText(add.this, "请输入金额。",
148                     Toast.LENGTH_SHORT);
149             toast.show();
150         }
151
152         else if(text3.equals(".")||text3.substring(0, 1).equals("0")){
153
154             Toast toast = Toast.makeText(add.this, "输入有误,请重新输入。",
155                     Toast.LENGTH_SHORT);
156             toast.show();
157
158
159
160         }
161
162         else{
163
164             AccountManager accountManager = new AccountManagerImpl();
165             Account account = new Account();
166             account.setAccountId(1);
167
168             try {
169                 account.setAccountDate(new SimpleDateFormat("yyyy年MM月dd日    HH:mm:ss").parse(text1));
170             } catch (ParseException e) {
171                 // TODO Auto-generated catch block
172                 e.printStackTrace();
173             }
174
175             account.setAccountType(text2);
176             account.setAccountSum(text3);
177             accountManager.addAcount(account);
178
179             onBackPressed();
180         }
181
182
183
184
185     }
186
187 }

Account.java

 1 package com.onezero.account.controller;
 2
 3 import java.util.List;
 4
 5 public interface AccountManager {
 6
 7     /**
 8      * 添加账本信息
 9      *
10      * @param account 帐本信息
11      * @return true 添加成功  false:添加失败
12      *
13      *TODO: 需要确认添加失败是否抛出异常,给用户友好提示
14      */
15     boolean addAcount(Account account);
16
17     /**
18      * 查询全部账本信息,返回信息按时间降序排序
19      *
20      * @return 全部账本信息
21      */
22     List<Account> queryAcount();
23 }

AccountManager.java

 1 package com.onezero.account.controller;
 2
 3 import java.util.Date;
 4 import java.util.List;
 5 import java.util.ArrayList;
 6 public class AccountManagerImpl implements AccountManager{
 7
 8     /**
 9      * 添加账本信息
10      *
11      * @param account 帐本信息
12      * @return true 添加成功  false:添加失败
13      *
14      *TODO: 需要确认添加失败是否抛出异常,给用户友好提示
15      */
16     public boolean addAcount(Account account){
17         // TODO:调用数据库层
18         return true;
19     }
20
21     /**
22      * 查询全部账本信息,返回信息按时间降序排序
23      *
24      * @return 全部账本信息
25      */
26     public List<Account> queryAcount(){
27         List<Account> accountList = new ArrayList<Account>();
28
29         // TODO: 调用数据库层 (暂时写假的)
30         Account account = new Account();
31         account.setAccountId(1);
32         account.setAccountDate(new Date());
33         account.setAccountType("transportation");
34         account.setAccountSum("50");
35
36         accountList.add(account);
37         return accountList;
38     }
39 }

AccountManagerImpl.java

3.后端,完成功能点为“将获取的数据插入数据库”。

会议体会:昨天布置的任务大家都顺利完成,继续努力。以下是本周的燃尽图,我对昨天的燃尽图进行了修改。

以上是OneZero第二周第三次站立会议。

转载于:https://www.cnblogs.com/xiaym896/p/5338208.html

OneZero第二周第三次站立会议(2016.3.30)相关推荐

  1. 5月15日----疯狂猜成语-----三周第三次站立会议 参会人员:杨霏,袁雪,胡潇丹,郭林林,尹亚男,赵静娜...

    疯狂猜成语-----三周第三次站立会议 参会人员:杨霏,袁雪,胡潇丹,郭林林,尹亚男,赵静娜 会议内容:总结自己的工作任务,验收自己的任务成果,领取明日任务.并且在会议上讨论我们的最后作品要求以及离最 ...

  2. 5月17日、18日---疯狂猜成语-----三周第五次站立会议 杨霏,袁雪,胡潇丹,郭林林,尹亚男,赵静娜...

    疯狂猜成语-----三周第五次站立会议 参会人员:杨霏,袁雪,胡潇丹,郭林林,尹亚男,赵静娜 会议内容:一周的冲刺接近尾声,所以今天站立会议主要验收这一个星期的任务成果. 冲刺效果: 小组成员 已完成 ...

  3. 5月16日----疯狂猜成语-----三周第四次站立会议 参会人员:杨霏,袁雪,胡潇丹,郭林林,尹亚男,赵静娜...

    疯狂猜成语-----三周第四次站立会议 参会人员:杨霏,袁雪,胡潇丹,郭林林,尹亚男,赵静娜 会议内容:总结自己的工作任务,根据近期目标找到自己的定位. 已经完成任务: 小组成员 已完成的任务 尹亚男 ...

  4. 4月17日 (PS:由于时间问题,现在才发,望老师见谅)疯狂猜成语-----第三次站立会议 参会人员:杨霏,袁雪,胡潇丹,郭林林,尹亚男,赵静娜...

    疯狂猜成语-----第三次站立会议 参会人员:杨霏,袁雪,胡潇丹,郭林林,尹亚男,赵静娜 会议内容: 组员依次汇报自己的工作进度,并且提出自己在进行任务的过程中遇到的问题,是否解决以及解决办法. 以下 ...

  5. scrum立会报告+燃尽图(第二周第三次)

    此作业要求参考: https://edu.cnblogs.com/campus/nenu/2018fall/homework/2248 一.小组介绍 组名:杨老师粉丝群 组长:乔静玉 组员:吴奕瑶.公 ...

  6. python123《python语言程序设计》程序设计题第一周第二周第三周第四周第五周

    第一周学习 eval定义 eval(expression,globals=None,locals=None) -expression:该参数是一个字符串,python会使用globals字典和loca ...

  7. OneZero第四周第四次站立会议(2016.4.14)

    1. 时间: 15:00--15:10  共计10分钟. 2. 成员: X 夏一鸣 * 组长 (博客:http://www.cnblogs.com/xiaym896/), G 郭又铭 (博客:http ...

  8. Scrum立会报告+燃尽图(Beta阶段第二周第三次)

    此作业要求参见:https://edu.cnblogs.com/campus/nenu/2018fall/homework/2411 项目地址:https://coding.net/u/wuyy694 ...

  9. 北大青鸟培训第二周第三天:HTML和CSS相关知识 (持续更新)

    目录 盒子模型 举例子 1.内容区(content) 举例子 盒子模型边框 边框(border)元素设置边框 盒子模型内边距 盒子模型 1.网页中所有的元素都可以看成一个盒子,由 content + ...

  10. 第二阶段第三次站立会议

    昨天做了什么:写了部分购物车的功能 今天要干什么:修改后台代码的错误 遇到的困难:没有困难 转载于:https://www.cnblogs.com/jingxiaopu/p/7109774.html

最新文章

  1. linux进程间通信:FIFO应用 /var/log/ 系统日志的模拟实现
  2. 图解|深入理解Linux高性能网络架构的那些事
  3. c++多线程编程:常见面试题
  4. 网格分割算法(Random Walks)
  5. Python二十个小技巧
  6. python比较列表所有项是否有相同的部分_检查列表中的所有元素是否相同
  7. C# winform 上传文件 (多种方案)
  8. duckduckgo 国内_DuckDuckGo的Instant Answers项目的7课
  9. 递归法:求n个元素的全排列
  10. C#实现给图片加边框的方法
  11. clustMD r语言_R语言做聚类分析Kmeans时确定类的个数
  12. 2016天津成考计算机试题,2016年天津事业单位考试《职业能力测验》(部分)试题及答案解析...
  13. daimayuan每日一题#851 Good Permutations
  14. 联通光猫f677v2改桥接的辛酸历程
  15. CORBA的简单介绍及HelloWorld
  16. busybox文件系统制作
  17. RISC-V 实现整数运算指令(Part 1)
  18. mapgis10-10.28
  19. 网游实名制系统将升级:如何打击违规游戏平台
  20. winxp iso镜像u盘安装

热门文章

  1. 理财新技巧之一 玩转国债和企业债回购
  2. 编码消耗率CCR,“上帝代码”,反射,简洁代码
  3. CodeForces 32C Flea
  4. 海康威视错误代码0xf_海康威视视频智能分析整理文档
  5. 贴片电阻阻值识别方法
  6. 搜索引擎/网络蜘蛛程序代码
  7. win10内存占用率过高怎么办_win10磁盘占用和内存CPU占用率太高怎么办
  8. winform键盘操控之组合键
  9. Unity EmbeddedBrowser浏览器插件事件通讯
  10. 基于soot的过程内数据流分析