d class="lines-num lines-num-new">
@@ -60,12 +63,14 @@ public class UploadActivity extends BaseActivity implements UploadContract.View
60 63
 
61 64
     @OnClick(R.id.iv_add_session)
62 65
     void jumpToNewSession(){
63
-        presenter.jumpToNewSession();
66
+        SessionBean sessionBean = new SessionBean();
67
+
68
+        jumpToSelectedSession(sessionBean);
64 69
     }
65 70
 
66 71
     @OnClick(R.id.iv_bt_status)
67 72
     void checkBTStatus(){
68
-        presenter.checkBTStatus();
73
+
69 74
     }
70 75
 
71 76
 
@@ -137,4 +142,15 @@ public class UploadActivity extends BaseActivity implements UploadContract.View
137 142
         });
138 143
     }
139 144
 
145
+
146
+    public void jumpToSelectedSession(SessionBean sessionBean) {
147
+        sessionBean.lensmanId = Preferences.getInstance(this).getLensManId();
148
+        sessionBean.sessionDate=20160813;
149
+        sessionBean.sessionSeq = new Random().nextInt(10000);
150
+        sessionBean.sessionId ="chengzhenyu_test";
151
+        Intent intent = new Intent(this, SessionActivity.class);
152
+        intent.putExtra("session",sessionBean);
153
+        startActivity(intent);
154
+    }
155
+
140 156
 }

+ 0 - 6
app/src/main/java/ai/pai/lensman/upload/UploadContract.java

@@ -20,16 +20,10 @@ public class UploadContract {
20 20
         void showSessionViews();
21 21
         void updateSessionUploadView(SessionBean bean);
22 22
         void refreshSessionViews(ArrayList<SessionBean> sessionList);
23
-
24 23
     }
25 24
 
26 25
     interface Presenter extends BasePresenter{
27 26
 
28
-        void checkBTStatus();
29
-        void jumpToBriefs();
30
-        void jumpToNewSession();
31
-        void jumpToSelectedSession(SessionBean sessionBean);
32
-
33 27
     }
34 28
 
35 29
 }

+ 2 - 34
app/src/main/java/ai/pai/lensman/upload/UploadPresenter.java

@@ -1,30 +1,20 @@
1 1
 package ai.pai.lensman.upload;
2 2
 
3
-import android.app.Activity;
4
-import android.content.Intent;
5
-
6 3
 import java.util.ArrayList;
7 4
 
8 5
 import ai.pai.lensman.bean.SessionBean;
9
-import ai.pai.lensman.session.SessionActivity;
10 6
 
11 7
 public class UploadPresenter implements UploadContract.Presenter {
12 8
 
13
-    private Activity activity;
14 9
     private UploadContract.View uploadView;
15 10
     private ArrayList<SessionBean> sessionList;
16 11
 
17
-    private int seq = 0;
18
-    public UploadPresenter(Activity activity, UploadContract.View view){
19
-        this.activity = activity;
12
+
13
+    public UploadPresenter( UploadContract.View view){
20 14
         this.uploadView = view;
21 15
         sessionList = new ArrayList<>();
22 16
     }
23 17
 
24
-    @Override
25
-    public void checkBTStatus() {
26
-
27
-    }
28 18
 
29 19
     @Override
30 20
     public void start() {
@@ -41,26 +31,4 @@ public class UploadPresenter implements UploadContract.Presenter {
41 31
 
42 32
     }
43 33
 
44
-
45
-    @Override
46
-    public void jumpToBriefs() {
47
-
48
-    }
49
-
50
-    @Override
51
-    public void jumpToNewSession() {
52
-        seq ++;
53
-        SessionBean sessionBean = new SessionBean();
54
-        sessionBean.sessionSeq = seq;
55
-        sessionList.add(sessionBean);
56
-       jumpToSelectedSession(sessionBean);
57
-    }
58
-
59
-    @Override
60
-    public void jumpToSelectedSession(SessionBean sessionBean) {
61
-        Intent intent = new Intent(activity, SessionActivity.class);
62
-        intent.putExtra("session",sessionBean);
63
-        activity.startActivity(intent);
64
-    }
65
-
66 34
 }

Kodo/kodo - Gogs: Go Git Service

1841 Commits (5d34bd84b159627d77aef3c524713bf688056d13)

Author SHA1 Message Date
  FFIB daffade76f goods data add value 6 years ago
  huangqimin 1e39b1850b DeleteModelAdmin 6 years ago
  huangqimin 0e8a378332 :art: Opt 6 years ago
  huangqimin e3ff618d3b :art: Filter left_num gt 0 6 years ago
  huangqimin 96f6c2557f :bug: Fix Bug: Unknown column 'coupon_usercouponinfo.coupon_image' in 'field list' 6 years ago
  huangqimin b043b0ecf6 :bug: Fix Bug: maximum recursion depth exceeded while calling a Python object 6 years ago
  huangqimin bb320a1397 member_goods 6 years ago
  huangqimin 04b65067cf :art: Remove unused codes 6 years ago
  huangqimin d1b712e035 Opt coupon 6 years ago
  huangqimin ec4c2109cc only_for_member 6 years ago
  huangqimin a8239c077f :art: CouponInfo for coupon app 6 years ago
  huangqimin 104cd654f1 MEMBER_SEND_COUPON_LIST 6 years ago
  huangqimin a6c96a767a Merge branch 'tamron' of git.xfoto.com.cn:Kodo/kodo into tamron 6 years ago
  huangqimin 75ab3f5097 :art: Coupons 6 years ago
  FFIB 3819b73966 renew 6 years ago
  FFIB 450d9412c3 renew 6 years ago
  FFIB 5c5ca88030 renew 6 years ago
  huangqimin d0dbe0a705 Merge branch 'tamron' of git.xfoto.com.cn:Kodo/kodo into tamron 6 years ago
  huangqimin 608f25d6bc coupons 6 years ago
  FFIB b640429161 checkout serialNo 重复生成序列号问题 6 years ago
  huangqimin a08152d677 PEP8 & iSort 6 years ago
  huangqimin 4ce7f5c87b :art: Member Relative APIs 6 years ago
  FFIB b07a619193 MemberActivityInfo response slider_image 6 years ago
  FFIB 06325eef3d :fix bug: /member/activitys 6 years ago
  FFIB 8cdad87457 bug fix /activity/list crash 6 years ago
  FFIB f29e4d1725 add shot_memeber_name in modelInfo 6 years ago
  FFIB 5180e7a8bf 接口:/member/integral: model_name to model_full_name 6 years ago
  huangqimin 8cca797a82 :bug: Fix Bug: response error 6 years ago
  huangqimin a6df817410 :bug: Fix Bug: 'ModelInfo' object has no attribute 'shot_data' 6 years ago
  huangqimin 598d0be866 :art: Add more field for MemberActivity 6 years ago
  huangqimin 8224b85444 :art: tc.local_string 6 years ago
  huangqimin 7ba2bde353 :art: Levelx 6 years ago
  huangqimin 2941e5a938 :art: Right Type 6 years ago
  huangqimin 3d0d214667 :sparkles: Member Infos 6 years ago
  Brightcells 2c09b8b5b9 :art: Support pywe-wxa-cv to scanQrcode 6 years ago
  Brightcells f6e726578d :art: Opt 6 years ago
  FFIB ffaa7b3a9b zbar 去除空格 6 years ago
  FFIB 18f3944077 update 6 years ago
  FFIB 3c94a5c976 clerk/sale/submit 判断序列号是否重复 6 years ago
  FFIB c59a09037f mini/login 返回是否为网销 6 years ago
  FFIB e0808ad4a5 update 6 years ago
  FFIB 837d360998 saleclerkinfo 标识是否是网销。 6 years ago
  FFIB 69e8079fcf 标记被消费者扫过 6 years ago
  FFIB afdc092d2d django 后台显示 has_scan 6 years ago
  FFIB bbb2b9bed9 django 后台显示has_scan 6 years ago
  FFIB 5e717f152d 增加 has_scan 标记是否被消费者扫过。 6 years ago
  FFIB e634358bf0 增添/clerk/checkout/serialNo 校验序列号 6 years ago
  Brightcells 929fc2c108 Update 6 years ago
  Brightcells d7dc632b0e Update 6 years ago
  Brightcells 42b5199627 Merge branch 'tamron' of git.xfoto.com.cn:Kodo/kodo into tamron 6 years ago