diff --git a/个人任务分工表_之前那个传错了.png b/个人任务分工表_之前那个传错了.png new file mode 100644 index 0000000..338edc1 Binary files /dev/null and b/个人任务分工表_之前那个传错了.png differ diff --git a/个人任务计划表_覃佳明_请同时查看readme.jpg b/个人任务计划表_覃佳明_请同时查看readme.jpg deleted file mode 100644 index c5683b4..0000000 Binary files a/个人任务计划表_覃佳明_请同时查看readme.jpg and /dev/null differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$1.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$1.class index 475a692..a9d3c77 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$1.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$1.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2$1$1.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2$1$1.class index 1654670..dad85aa 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2$1$1.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2$1$1.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2$1.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2$1.class index 9420222..3146fd9 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2$1.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2$1.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2.class index 7fce080..edcc504 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity$2.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity.class index 61a6242..d35f69b 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LibraryReservationActivity.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/LibraryReservationActivity.java b/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/LibraryReservationActivity.java index 9a2398f..d9da723 100644 --- a/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/LibraryReservationActivity.java +++ b/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/LibraryReservationActivity.java @@ -28,34 +28,28 @@ import cn.bmob.v3.listener.FindListener; import cn.bmob.v3.listener.SaveListener; public class LibraryReservationActivity extends Activity { - private Button btnLogin; private SimpleDateFormat dateFormat; - @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.layout_libraryreservation); - + TextView tvTitle = (TextView) findViewById(R.id.tv_title); tvTitle.setText("预定研修室"); - + final String roomId = getIntent().getStringExtra("roomId"); final String roomName = getIntent().getStringExtra("roomName"); - TextView tvRoom = (TextView) findViewById(R.id.tv_room); tvRoom.setText("研修室:" + roomName); - + btnLogin = (Button) findViewById(R.id.btn_login); - dateFormat = new SimpleDateFormat("yyyy年MM月dd日 HH:mm"); - // 查找Person表里面id为6b6c11c537的数据 BmobQuery bmobQuery = new BmobQuery(); bmobQuery.addWhereEqualTo("userId", User.userId); bmobQuery.addWhereEqualTo("roomId", roomId); bmobQuery.findObjects(LibraryReservationActivity.this, new FindListener() { - @Override public void onSuccess(List newsList) { if (!newsList.isEmpty() /*newsList.size() != 0*/) { @@ -68,7 +62,6 @@ public class LibraryReservationActivity extends Activity { Reservation gameScore = new Reservation(); gameScore.setObjectId(newsList.get(0).getObjectId()); gameScore.delete(LibraryReservationActivity.this); - } else { btnLogin.setEnabled(false); btnLogin.setText("已经预定" + (TextUtils.isEmpty(dateTime) ? "" : (" " + dateTime))); @@ -78,53 +71,39 @@ public class LibraryReservationActivity extends Activity { //e.printStackTrace(); logger.log(Level.SEVERE, "something may be wrong", e); } - } - } - @Override public void onError(int arg0, String arg1) { toast("查询失败"); } }); - btnLogin.setOnClickListener(new OnClickListener() { - @Override public void onClick(View v) { // TODO Auto-generated method stub - DateTimePickDialogUtil dateTimePicKDialog = new DateTimePickDialogUtil(LibraryReservationActivity.this, dateFormat.format(new Date())); dateTimePicKDialog.dateTimePicKDialog(new DateTimeListener() { - @Override public void onDateTimeChane(final String dateTime) { - // TODO Auto-generated method stub - Reservation reservation = new Reservation(); reservation.setRoomId(roomId); reservation.setRoomName(roomName); reservation.setUserId(User.userId); reservation.setDateTime(dateTime); - reservation.save(LibraryReservationActivity.this, new SaveListener() { - @Override public void onSuccess() { // TODO Auto-generated method stub toast("预定成功"); btnLogin.setEnabled(false); btnLogin.setText("已经预定 " + dateTime); - } - @Override public void onFailure(int arg0, String arg1) { // TODO Auto-generated method stub toast("预定失败"); - } }); } @@ -132,9 +111,7 @@ public class LibraryReservationActivity extends Activity { } }); - } - private void toast(String toast) { Toast.makeText(this, toast, Toast.LENGTH_SHORT).show(); }