OneZero第二周第三次站立会议(2016.3.30)
会议时间:2016年3月30日 13:00~13:20
会议成员:冉华,张敏,王巍,夏一鸣。
会议目的:汇报前一天工作,全体成员评论,确定会后修改内容或分配下一步任务。
会议内容:
1.前端,完成功能点为“将获取信息转化为中端所需格式”,“发送获取的信息给中端”。以下是代码部分
package com.onezero.account; import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date; import com.onezero.account.controller.Account;
import com.onezero.account.controller.AccountManager;
import com.onezero.account.controller.AccountManagerImpl; import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast; public class add extends Activity { @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.add_main);
// 显示当前时间
SimpleDateFormat formatter = new SimpleDateFormat(
"yyyy年MM月dd日 HH:mm:ss");
Date curDate = new Date(System.currentTimeMillis());// 获取当前时间
String str = formatter.format(curDate); TextView mTime = (TextView) findViewById(R.id.mytime);
mTime.setText(str); // 实现事件类型选择,点击并改变显示。
final TextView accounttype = (TextView) findViewById(R.id.accounttype);
// 一般
Button button1 = (Button) findViewById(R.id.button1);
button1.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button1 = (Button) findViewById(R.id.button1);
accounttype.setText(button1.getText()); }
});
// 餐饮
Button button2 = (Button) findViewById(R.id.button2);
button2.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button2 = (Button) findViewById(R.id.button2);
accounttype.setText(button2.getText()); }
}); // 购物
Button button3 = (Button) findViewById(R.id.button3);
button3.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button3 = (Button) findViewById(R.id.button3);
accounttype.setText(button3.getText()); }
});
// 交通
Button button4 = (Button) findViewById(R.id.button4);
button4.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button4 = (Button) findViewById(R.id.button4);
accounttype.setText(button4.getText()); }
});
// 娱乐
Button button5 = (Button) findViewById(R.id.button5);
button5.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button5 = (Button) findViewById(R.id.button5);
accounttype.setText(button5.getText()); }
}); // 医疗
Button button6 = (Button) findViewById(R.id.button6);
button6.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button6 = (Button) findViewById(R.id.button6);
accounttype.setText(button6.getText()); }
}); Button button7 = (Button) findViewById(R.id.button7);
button7.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
OK(); }
}); } public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.add, menu);
return true;
} @Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml. // 获取“录入”的返回键,并执行返回。
int id = item.getItemId();
if (id == R.id.action_add_back) { onBackPressed();
} return super.onOptionsItemSelected(item);
} // OK按钮
public void OK() { TextView mytime = (TextView) findViewById(R.id.mytime);
String text1 = mytime.getText().toString(); TextView accounttype = (TextView) findViewById(R.id.accounttype);
String text2 = accounttype.getText().toString(); EditText editText1 = (EditText) findViewById(R.id.editText1);
String text3 = editText1.getText().toString(); EditText editText2 = (EditText) findViewById(R.id.editText2);
String text4 = editText2.getText().toString(); if (text3.equals("")) { Log.e("$%^", "toast");
Toast toast = Toast.makeText(add.this, "请输入金额。",
Toast.LENGTH_SHORT);
toast.show();
} else if(text3.equals(".")||text3.substring(0, 1).equals("0")){ Toast toast = Toast.makeText(add.this, "输入有误,请重新输入。",
Toast.LENGTH_SHORT);
toast.show(); } else{ AccountManager accountManager = new AccountManagerImpl();
Account account = new Account();
account.setAccountId(1); try {
account.setAccountDate(new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss").parse(text1));
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} account.setAccountType(text2);
account.setAccountSum(text3);
accountManager.addAcount(account); onBackPressed();
} } }
add.java
2.中端,完成功能点为“接收前端发送的数据”,“发送数据给后端”,“提供查询接口”。以下是代码部分
package com.onezero.account; import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date; import com.onezero.account.controller.Account;
import com.onezero.account.controller.AccountManager;
import com.onezero.account.controller.AccountManagerImpl; import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast; public class add extends Activity { @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.add_main);
// 显示当前时间
SimpleDateFormat formatter = new SimpleDateFormat(
"yyyy年MM月dd日 HH:mm:ss");
Date curDate = new Date(System.currentTimeMillis());// 获取当前时间
String str = formatter.format(curDate); TextView mTime = (TextView) findViewById(R.id.mytime);
mTime.setText(str); // 实现事件类型选择,点击并改变显示。
final TextView accounttype = (TextView) findViewById(R.id.accounttype);
// 一般
Button button1 = (Button) findViewById(R.id.button1);
button1.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button1 = (Button) findViewById(R.id.button1);
accounttype.setText(button1.getText()); }
});
// 餐饮
Button button2 = (Button) findViewById(R.id.button2);
button2.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button2 = (Button) findViewById(R.id.button2);
accounttype.setText(button2.getText()); }
}); // 购物
Button button3 = (Button) findViewById(R.id.button3);
button3.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button3 = (Button) findViewById(R.id.button3);
accounttype.setText(button3.getText()); }
});
// 交通
Button button4 = (Button) findViewById(R.id.button4);
button4.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button4 = (Button) findViewById(R.id.button4);
accounttype.setText(button4.getText()); }
});
// 娱乐
Button button5 = (Button) findViewById(R.id.button5);
button5.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button5 = (Button) findViewById(R.id.button5);
accounttype.setText(button5.getText()); }
}); // 医疗
Button button6 = (Button) findViewById(R.id.button6);
button6.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Button button6 = (Button) findViewById(R.id.button6);
accounttype.setText(button6.getText()); }
}); Button button7 = (Button) findViewById(R.id.button7);
button7.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
OK(); }
}); } public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.add, menu);
return true;
} @Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml. // 获取“录入”的返回键,并执行返回。
int id = item.getItemId();
if (id == R.id.action_add_back) { onBackPressed();
} return super.onOptionsItemSelected(item);
} // OK按钮
public void OK() { TextView mytime = (TextView) findViewById(R.id.mytime);
String text1 = mytime.getText().toString(); TextView accounttype = (TextView) findViewById(R.id.accounttype);
String text2 = accounttype.getText().toString(); EditText editText1 = (EditText) findViewById(R.id.editText1);
String text3 = editText1.getText().toString(); EditText editText2 = (EditText) findViewById(R.id.editText2);
String text4 = editText2.getText().toString(); if (text3.equals("")) { Log.e("$%^", "toast");
Toast toast = Toast.makeText(add.this, "请输入金额。",
Toast.LENGTH_SHORT);
toast.show();
} else if(text3.equals(".")||text3.substring(0, 1).equals("0")){ Toast toast = Toast.makeText(add.this, "输入有误,请重新输入。",
Toast.LENGTH_SHORT);
toast.show(); } else{ AccountManager accountManager = new AccountManagerImpl();
Account account = new Account();
account.setAccountId(1); try {
account.setAccountDate(new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss").parse(text1));
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} account.setAccountType(text2);
account.setAccountSum(text3);
accountManager.addAcount(account); onBackPressed();
} } }
Account.java
package com.onezero.account.controller; import java.util.List; public interface AccountManager { /**
* 添加账本信息
*
* @param account 帐本信息
* @return true 添加成功 false:添加失败
*
*TODO: 需要确认添加失败是否抛出异常,给用户友好提示
*/
boolean addAcount(Account account); /**
* 查询全部账本信息,返回信息按时间降序排序
*
* @return 全部账本信息
*/
List<Account> queryAcount();
}
AccountManager.java
package com.onezero.account.controller; import java.util.Date;
import java.util.List;
import java.util.ArrayList;
public class AccountManagerImpl implements AccountManager{ /**
* 添加账本信息
*
* @param account 帐本信息
* @return true 添加成功 false:添加失败
*
*TODO: 需要确认添加失败是否抛出异常,给用户友好提示
*/
public boolean addAcount(Account account){
// TODO:调用数据库层
return true;
} /**
* 查询全部账本信息,返回信息按时间降序排序
*
* @return 全部账本信息
*/
public List<Account> queryAcount(){
List<Account> accountList = new ArrayList<Account>(); // TODO: 调用数据库层 (暂时写假的)
Account account = new Account();
account.setAccountId(1);
account.setAccountDate(new Date());
account.setAccountType("transportation");
account.setAccountSum("50"); accountList.add(account);
return accountList;
}
}
AccountManagerImpl.java
3.后端,完成功能点为“将获取的数据插入数据库”。
会议体会:昨天布置的任务大家都顺利完成,继续努力。以下是本周的燃尽图,我对昨天的燃尽图进行了修改。
以上是OneZero第二周第三次站立会议。
OneZero第二周第三次站立会议(2016.3.30)的更多相关文章
- OneZero第二周第四次站立会议(2016.3.31)
会议时间:2016年3月30日 13:00~13:20 会议成员:冉华,张敏,王巍,夏一鸣. 会议目的:汇报前一天工作,全体成员评论,确定会后修改内容或分配下一步任务. 会议内容: 1.前端,夏.张 ...
- OneZero第二周第五次站立会议(2016.4.1)
会议时间:2016年4月1日 会议成员:冉华,张敏,夏一鸣.(王请假). 会议目的:汇报前一天工作,会议成员评论. 会议内容: 1.前端,由夏,张负责汇报,完成前端功能,待命. 2.数据逻辑控制,由王 ...
- OneZero第三周第三次站立会议(2016.4.6)
1. 时间: 13:05--13:15 共计10分钟. 2. 成员: X 夏一鸣 * 组长 (博客:http://www.cnblogs.com/xiaym896/), G 郭又铭 (博客:http ...
- OneZero第四周第三次站立会议(2016.4.13)
1. 时间: 15:15--15:30 共计15分钟. 2. 成员: X 夏一鸣 * 组长 (博客:http://www.cnblogs.com/xiaym896/), G 郭又铭 (博客:http ...
- OneZero第二周第二次站立会议(2016.3.29)
会议时间:2016年3月29日 13:05~13:16 会议成员:冉华,张敏,王巍,夏一鸣. 会议目的:汇报前一天工作,全体成员评论,确定会后修改内容或分配下一步任务. 会议内容:以下是会议插图 1 ...
- OneZero第二周第一次站立会议(2016.3.28)
会议时间:2016年3月28日 会议成员:冉华,张敏,王巍,夏一鸣. 会议目的:分配第二周任务. 会议内容:由于老师要求4月1日进行Alpha发布,我们决定最优先完成消息录入功能.工作具体分配如下 1 ...
- OneZero第三次站立会议(2016.3.23)
会议时间:2016年3月23日 13:00~13:15 会议成员:冉华,张敏,王巍,夏一鸣. 会议目的:汇报前一天工作,全体成员评论并修改. 会议内容:以下为会议插图 1.界面原型方面,夏在统计界面中 ...
- 《Spring1之第三次站立会议》
<第三次站立会议> 昨天:我对自己找到的代码进行了相关的了解后,把它们在编译环境中进行了编译以及接着对代码进行逐步深入了解: 今天:我把小组成员找到的写关于登录界面的代码加到了我的项目工程 ...
- 4月17日 (PS:由于时间问题,现在才发,望老师见谅)疯狂猜成语-----第三次站立会议 参会人员:杨霏,袁雪,胡潇丹,郭林林,尹亚男,赵静娜
疯狂猜成语-----第三次站立会议 参会人员:杨霏,袁雪,胡潇丹,郭林林,尹亚男,赵静娜 会议内容: 组员依次汇报自己的工作进度,并且提出自己在进行任务的过程中遇到的问题,是否解决以及解决办法. 以下 ...
随机推荐
- 2018-2019-2 20175308实验一 《Java开发环境的熟悉》实验报告
2018-2019-2-20175308 实验一 <Java开发环境的熟悉>实验报告 一.实验内容及步骤 (一)使用JDk编译.运行简单的Java程序 输入cd Code命令进入Code目 ...
- P1359 租用游艇
题目描述 长江游艇俱乐部在长江上设置了n 个游艇出租站1,2,…,n.游客可在这些游艇出租站租用游艇,并在下游的任何一个游艇出租站归还游艇.游艇出租站i 到游艇出租站j 之间的租金为r(i,j),1& ...
- zabbix部署(1)(lnmp转)
1.lnmp 首先 确保CentOS7上网络配置正确,可以正常访问互联网. 确保已经关闭了iptables. CentOS7上是firewall,关闭命令: 1 2 # systemctl stop ...
- laravel 5.5 《电商实战 》辅助函数
Laravel 提供了很多 辅助函数,有时候我们也需要创建自己的辅助函数. 这里介绍了 tinker,一个laravel内置的php交互式控制台,方便调试php代码 php artisan tinke ...
- mac开启Airdrop的硬件要求
OS X 10.13之后,新的airdrop需要硬件支持,需要蓝牙4.0 以及Wi-Fi 5GHz 开启!!!! 对于 OS X 10.12 以下的旧系统.即使是有线网络也可以使用,通过以下命令开启有 ...
- 20155210 Exp7 网络欺诈防范
Exp7 网络欺诈防范 SET工具建立冒名网站 首先利用lsof -i:80或者netstat -tupln |grep 80查询80端口的使用情况(我的电脑80端口没有被占用,如果被占用,则用kil ...
- java.lang.IllegalStateException: Cannot forward after response has been committe
参考:https://blog.csdn.net/lewky_liu/article/details/79845655 加上 return 搞定
- JS 获取每月有几周(每周五到周四算作一周)
原文地址:https://caochangkui.github.io/data-week/ 将每周五至周四算作一周,计算每月有几周,并获取到每周的起始时间. 日期格式化 Date.prototype. ...
- Flask学习-前言
前言 使用Flask断断续续加起来快一年了,但是一直没有从源码层去了解其实现原理.加上自己python基础不扎实,所以准备从看一个开源项目开始,希望能够从中窥得武功精髓,让自己水平更上一层楼. Fla ...
- 移动端效果之ScrollList
写在前面 列表一直是展示数据的一个重要方式,在手机端的列表展示又和PC端展示不同,毕竟手机端主要靠滑.之前手机端之前一直使用的IScroll,但是IScroll本身其实有很多兼容性BUG,想改动一下需 ...