Commit 55f0d839b94524774cee5f302f6a60062cb68ab1
1 parent
774a0595
Exists in
yxb_dev
and in
2 other branches
no message
Showing
14 changed files
with
89 additions
and
52 deletions
Show diff stats
app/libs/processor.jar
No preview for this file type
app/src/main/AndroidManifest.xml
@@ -204,6 +204,10 @@ | @@ -204,6 +204,10 @@ | ||
204 | android:name=".ui.activity.report.ReportSceneActivity" | 204 | android:name=".ui.activity.report.ReportSceneActivity" |
205 | android:launchMode="singleInstance" /> | 205 | android:launchMode="singleInstance" /> |
206 | 206 | ||
207 | + <activity | ||
208 | + android:name=".ui.activity.apply.ApplyReplaceCardActivity" | ||
209 | + android:launchMode="singleInstance" /> | ||
210 | + | ||
207 | <service | 211 | <service |
208 | android:name=".ui.service.BadgeIntentService" | 212 | android:name=".ui.service.BadgeIntentService" |
209 | android:exported="false"></service> | 213 | android:exported="false"></service> |
app/src/main/java/com/shunzhi/parent/AppConfig.java
@@ -38,15 +38,15 @@ public class AppConfig { | @@ -38,15 +38,15 @@ public class AppConfig { | ||
38 | public static String APP_IS_START = "app_is_start"; | 38 | public static String APP_IS_START = "app_is_start"; |
39 | 39 | ||
40 | //http://campus.myjxt.com/ | 40 | //http://campus.myjxt.com/ |
41 | -// public static String BASE_URL="http://60.190.202.57:1000/"; | ||
42 | -// public static String BASE_URL_ORDER="http://60.190.202.57:8101/"; | ||
43 | -// public static String BASE_URL_FILE="http://60.190.202.57:8196"; | 41 | + public static String BASE_URL="http://60.190.202.57:1000/"; |
42 | + public static String BASE_URL_ORDER="http://60.190.202.57:8101/"; | ||
43 | + public static String BASE_URL_FILE="http://60.190.202.57:8196"; | ||
44 | 44 | ||
45 | 45 | ||
46 | //正式 | 46 | //正式 |
47 | - public static String BASE_URL="http://campus.myjxt.com/"; | ||
48 | - public static String BASE_URL_ORDER="http://parent.myjxt.com/"; | ||
49 | - public static String BASE_URL_FILE="http://manage.myjxt.com"; | 47 | +// public static String BASE_URL="http://campus.myjxt.com/"; |
48 | +// public static String BASE_URL_ORDER="http://parent.myjxt.com/"; | ||
49 | +// public static String BASE_URL_FILE="http://manage.myjxt.com"; | ||
50 | // public static final String url_version = BASE_URL + "api/Common/AppVersion?appType=3"; | 50 | // public static final String url_version = BASE_URL + "api/Common/AppVersion?appType=3"; |
51 | 51 | ||
52 | 52 |
app/src/main/java/com/shunzhi/parent/adapter/ReportAdapter.java
@@ -13,6 +13,7 @@ import com.share.mvpsdk.base.adapter.BaseRecyclerViewAdapter; | @@ -13,6 +13,7 @@ import com.share.mvpsdk.base.adapter.BaseRecyclerViewAdapter; | ||
13 | import com.share.mvpsdk.base.adapter.BaseRecyclerViewHolder; | 13 | import com.share.mvpsdk.base.adapter.BaseRecyclerViewHolder; |
14 | import com.shunzhi.parent.R; | 14 | import com.shunzhi.parent.R; |
15 | import com.shunzhi.parent.bean.ReportBean; | 15 | import com.shunzhi.parent.bean.ReportBean; |
16 | +import com.shunzhi.parent.ui.activity.apply.ApplyReplaceCardActivity; | ||
16 | import com.shunzhi.parent.ui.activity.report.ReportDetialActivity; | 17 | import com.shunzhi.parent.ui.activity.report.ReportDetialActivity; |
17 | import com.shunzhi.parent.views.CustomLinearLayoutManager; | 18 | import com.shunzhi.parent.views.CustomLinearLayoutManager; |
18 | 19 |
app/src/main/java/com/shunzhi/parent/api/ApplyReplaceCardApi.java
@@ -13,5 +13,5 @@ import retrofit2.http.Query; | @@ -13,5 +13,5 @@ import retrofit2.http.Query; | ||
13 | public interface ApplyReplaceCardApi { | 13 | public interface ApplyReplaceCardApi { |
14 | 14 | ||
15 | @GET("/api/OneCard/AddStuCard") | 15 | @GET("/api/OneCard/AddStuCard") |
16 | - Observable<JsonObject> getApplyReplaceCard(@Query("studentId,cardId") int studentId,String cardId); | 16 | + Observable<JsonObject> getApplyReplaceCard(@Query("studentId") int studentId,@Query("onecard") String cardId); |
17 | } | 17 | } |
app/src/main/java/com/shunzhi/parent/contract/apply/ApplyReplaceCardContract.java
1 | package com.shunzhi.parent.contract.apply; | 1 | package com.shunzhi.parent.contract.apply; |
2 | 2 | ||
3 | + | ||
4 | + | ||
5 | +import android.util.Log; | ||
6 | + | ||
3 | import com.google.gson.JsonObject; | 7 | import com.google.gson.JsonObject; |
4 | import com.share.mvpsdk.base.BasePresenter; | 8 | import com.share.mvpsdk.base.BasePresenter; |
5 | import com.share.mvpsdk.base.IBaseActivity; | 9 | import com.share.mvpsdk.base.IBaseActivity; |
6 | import com.share.mvpsdk.base.IBaseModel; | 10 | import com.share.mvpsdk.base.IBaseModel; |
7 | -import com.shunzhi.parent.bean.apply.ApplyReplaceCardBean; | 11 | +import com.share.mvpsdk.base.IBaseView; |
12 | +import com.share.mvpsdk.utils.ToastUtils; | ||
8 | 13 | ||
9 | -import java.util.List; | ||
10 | 14 | ||
11 | /** | 15 | /** |
12 | * Created by Administrator on 2018/4/18 0018. | 16 | * Created by Administrator on 2018/4/18 0018. |
@@ -14,15 +18,14 @@ import java.util.List; | @@ -14,15 +18,14 @@ import java.util.List; | ||
14 | 18 | ||
15 | public interface ApplyReplaceCardContract { | 19 | public interface ApplyReplaceCardContract { |
16 | 20 | ||
17 | - //IOrderDetailModel,IOrderDetailView | ||
18 | abstract class ApplyReplaceCardPreenter extends BasePresenter<IApplyReplaceCardModel,IApplyReplaceCardView>{ | 21 | abstract class ApplyReplaceCardPreenter extends BasePresenter<IApplyReplaceCardModel,IApplyReplaceCardView>{ |
19 | - public abstract void showReplaceCardDetail(int studentId,String cardId); | 22 | + public abstract void ReplaceCardDetail(int studentId,String cardId); |
20 | } | 23 | } |
21 | interface IApplyReplaceCardModel extends IBaseModel { | 24 | interface IApplyReplaceCardModel extends IBaseModel { |
22 | io.reactivex.Observable<JsonObject> getReplaceCardDetailResult(int studentId, String cardId); | 25 | io.reactivex.Observable<JsonObject> getReplaceCardDetailResult(int studentId, String cardId); |
23 | } | 26 | } |
24 | 27 | ||
25 | - interface IApplyReplaceCardView extends IBaseActivity{ | ||
26 | - void showReplaceCardDetail(List<ApplyReplaceCardBean> applyReplaceCardBean); | 28 | + interface IApplyReplaceCardView extends IBaseView{ |
29 | + void showTipsDialog(); | ||
27 | } | 30 | } |
28 | } | 31 | } |
app/src/main/java/com/shunzhi/parent/model/apply/ApplyReplaceCardModel.java
@@ -3,6 +3,7 @@ package com.shunzhi.parent.model.apply; | @@ -3,6 +3,7 @@ package com.shunzhi.parent.model.apply; | ||
3 | import com.google.gson.JsonObject; | 3 | import com.google.gson.JsonObject; |
4 | import com.share.mvpsdk.base.BaseModel; | 4 | import com.share.mvpsdk.base.BaseModel; |
5 | import com.share.mvpsdk.helper.RetrofitCreateHelper; | 5 | import com.share.mvpsdk.helper.RetrofitCreateHelper; |
6 | +import com.share.mvpsdk.helper.RxHelper; | ||
6 | import com.shunzhi.parent.AppConfig; | 7 | import com.shunzhi.parent.AppConfig; |
7 | import com.shunzhi.parent.AppContext; | 8 | import com.shunzhi.parent.AppContext; |
8 | import com.shunzhi.parent.api.ApplyReplaceCardApi; | 9 | import com.shunzhi.parent.api.ApplyReplaceCardApi; |
@@ -22,6 +23,6 @@ public class ApplyReplaceCardModel extends BaseModel implements ApplyReplaceCard | @@ -22,6 +23,6 @@ public class ApplyReplaceCardModel extends BaseModel implements ApplyReplaceCard | ||
22 | @Override | 23 | @Override |
23 | public Observable<JsonObject> getReplaceCardDetailResult(int studentId, String cardId) { | 24 | public Observable<JsonObject> getReplaceCardDetailResult(int studentId, String cardId) { |
24 | String user_id = AppConfig.getAppConfig(AppContext.getContext()).get(AppConfig.USER_ID); | 25 | String user_id = AppConfig.getAppConfig(AppContext.getContext()).get(AppConfig.USER_ID); |
25 | - return RetrofitCreateHelper.getInstance().createApi(ApplyReplaceCardApi.class,AppConfig.BASE_URL).getApplyReplaceCard(studentId,cardId); | 26 | + return RetrofitCreateHelper.getInstance().createApi(ApplyReplaceCardApi.class,AppConfig.BASE_URL).getApplyReplaceCard(studentId,cardId).compose(RxHelper.<JsonObject>rxSchedulerHelper()); |
26 | } | 27 | } |
27 | } | 28 | } |
app/src/main/java/com/shunzhi/parent/presenter/apply/ApplyReplaceCardPresenter.java
1 | package com.shunzhi.parent.presenter.apply; | 1 | package com.shunzhi.parent.presenter.apply; |
2 | 2 | ||
3 | +import android.annotation.SuppressLint; | ||
4 | +import android.text.TextUtils; | ||
5 | +import android.util.Log; | ||
6 | + | ||
3 | import com.google.gson.JsonObject; | 7 | import com.google.gson.JsonObject; |
4 | import com.share.mvpsdk.base.BasePresenter; | 8 | import com.share.mvpsdk.base.BasePresenter; |
5 | import com.share.mvpsdk.utils.ToastUtils; | 9 | import com.share.mvpsdk.utils.ToastUtils; |
6 | import com.shunzhi.parent.contract.apply.ApplyReplaceCardContract; | 10 | import com.shunzhi.parent.contract.apply.ApplyReplaceCardContract; |
7 | import com.shunzhi.parent.model.apply.ApplyReplaceCardModel; | 11 | import com.shunzhi.parent.model.apply.ApplyReplaceCardModel; |
12 | +import com.shunzhi.parent.views.ReplaceCardDialog; | ||
8 | 13 | ||
9 | import io.reactivex.functions.Consumer; | 14 | import io.reactivex.functions.Consumer; |
10 | 15 | ||
@@ -12,6 +17,10 @@ import io.reactivex.functions.Consumer; | @@ -12,6 +17,10 @@ import io.reactivex.functions.Consumer; | ||
12 | * Created by Administrator on 2018/4/18 0018. | 17 | * Created by Administrator on 2018/4/18 0018. |
13 | */ | 18 | */ |
14 | public class ApplyReplaceCardPresenter extends ApplyReplaceCardContract.ApplyReplaceCardPreenter { | 19 | public class ApplyReplaceCardPresenter extends ApplyReplaceCardContract.ApplyReplaceCardPreenter { |
20 | + | ||
21 | + private JsonObject json; | ||
22 | + private ReplaceCardDialog replaceCardDialog=null; | ||
23 | + | ||
15 | @Override | 24 | @Override |
16 | public ApplyReplaceCardContract.IApplyReplaceCardModel getModel() { | 25 | public ApplyReplaceCardContract.IApplyReplaceCardModel getModel() { |
17 | return ApplyReplaceCardModel.newInstance(); | 26 | return ApplyReplaceCardModel.newInstance(); |
@@ -23,12 +32,21 @@ public class ApplyReplaceCardPresenter extends ApplyReplaceCardContract.ApplyRep | @@ -23,12 +32,21 @@ public class ApplyReplaceCardPresenter extends ApplyReplaceCardContract.ApplyRep | ||
23 | } | 32 | } |
24 | 33 | ||
25 | @Override | 34 | @Override |
26 | - public void showReplaceCardDetail(int studentId, String cardId) { | ||
27 | - mRxManager.register(mIModel.getReplaceCardDetailResult(studentId,cardId).subscribe(new Consumer<JsonObject>() { | 35 | + public void ReplaceCardDetail(int studentId, String cardId) { |
36 | + mRxManager.register(mIModel.getReplaceCardDetailResult(studentId, cardId).subscribe(new Consumer<JsonObject>() { | ||
37 | + @SuppressLint("LongLogTag") | ||
28 | @Override | 38 | @Override |
29 | public void accept(JsonObject jsonObject) throws Exception { | 39 | public void accept(JsonObject jsonObject) throws Exception { |
30 | - ToastUtils.showToast(jsonObject.toString()); | ||
31 | - //接收到的json | 40 | + ToastUtils.showToast("data:" + jsonObject.toString()); |
41 | + | ||
42 | + json = jsonObject.getAsJsonObject("data"); | ||
43 | + String isShowTipDialog = json.get("data").getAsString(); | ||
44 | + if (isShowTipDialog.equals("true")) { | ||
45 | + //mIView.showTipsDialog(); | ||
46 | + replaceCardDialog.setTitle("补卡提示"); | ||
47 | + replaceCardDialog.setText("您已补卡成功!"); | ||
48 | + replaceCardDialog.show(); | ||
49 | + } | ||
32 | 50 | ||
33 | } | 51 | } |
34 | }, new Consumer<Throwable>() { | 52 | }, new Consumer<Throwable>() { |
app/src/main/java/com/shunzhi/parent/ui/activity/apply/ApplyReplaceCardActivity.java
@@ -23,7 +23,6 @@ import com.shunzhi.parent.ui.fragment.apply.ApplySigninFragment; | @@ -23,7 +23,6 @@ import com.shunzhi.parent.ui.fragment.apply.ApplySigninFragment; | ||
23 | * 补卡界面 | 23 | * 补卡界面 |
24 | */ | 24 | */ |
25 | 25 | ||
26 | -//OrderDetailContract.OrderDetailPreenter,OrderDetailContract.IOrderDetailModel | ||
27 | public class ApplyReplaceCardActivity extends BaseMVPCompatActivity implements View.OnClickListener{ | 26 | public class ApplyReplaceCardActivity extends BaseMVPCompatActivity implements View.OnClickListener{ |
28 | ApplyReplaceCardFragment applyReplaceCardFragment = null; | 27 | ApplyReplaceCardFragment applyReplaceCardFragment = null; |
29 | ImageView ivBack; | 28 | ImageView ivBack; |
app/src/main/java/com/shunzhi/parent/ui/fragment/apply/ApplyReplaceCardFragment.java
1 | package com.shunzhi.parent.ui.fragment.apply; | 1 | package com.shunzhi.parent.ui.fragment.apply; |
2 | 2 | ||
3 | +import android.annotation.SuppressLint; | ||
3 | import android.os.Bundle; | 4 | import android.os.Bundle; |
4 | import android.support.annotation.NonNull; | 5 | import android.support.annotation.NonNull; |
5 | import android.support.annotation.Nullable; | 6 | import android.support.annotation.Nullable; |
6 | import android.text.TextUtils; | 7 | import android.text.TextUtils; |
8 | +import android.util.Log; | ||
7 | import android.view.View; | 9 | import android.view.View; |
8 | import android.widget.Button; | 10 | import android.widget.Button; |
9 | import android.widget.EditText; | 11 | import android.widget.EditText; |
@@ -14,24 +16,24 @@ import com.share.mvpsdk.base.fragment.BaseMVPCompatFragment; | @@ -14,24 +16,24 @@ import com.share.mvpsdk.base.fragment.BaseMVPCompatFragment; | ||
14 | import com.share.mvpsdk.utils.ToastUtils; | 16 | import com.share.mvpsdk.utils.ToastUtils; |
15 | import com.shunzhi.parent.R; | 17 | import com.shunzhi.parent.R; |
16 | import com.shunzhi.parent.contract.apply.ApplyReplaceCardContract; | 18 | import com.shunzhi.parent.contract.apply.ApplyReplaceCardContract; |
19 | +import com.shunzhi.parent.presenter.apply.ApplyReplaceCardPresenter; | ||
17 | import com.shunzhi.parent.views.ReplaceCardDialog; | 20 | import com.shunzhi.parent.views.ReplaceCardDialog; |
18 | 21 | ||
19 | /** | 22 | /** |
20 | * Created by Administrator on 2018/4/10 0010. | 23 | * Created by Administrator on 2018/4/10 0010. |
21 | */ | 24 | */ |
22 | 25 | ||
23 | -public class ApplyReplaceCardFragment extends BaseMVPCompatFragment<ApplyReplaceCardContract.ApplyReplaceCardPreenter,ApplyReplaceCardContract.IApplyReplaceCardModel> implements View.OnClickListener{ | 26 | +public class ApplyReplaceCardFragment extends BaseMVPCompatFragment<ApplyReplaceCardContract.ApplyReplaceCardPreenter, ApplyReplaceCardContract.IApplyReplaceCardModel> implements View.OnClickListener { |
24 | private Button bt_sure; | 27 | private Button bt_sure; |
25 | private Button bt_cancel; | 28 | private Button bt_cancel; |
26 | - ReplaceCardDialog replaceCardDialog=null; | 29 | + ReplaceCardDialog replaceCardDialog = null; |
27 | private EditText et_cardnum; | 30 | private EditText et_cardnum; |
28 | - private String cardnum; | ||
29 | - private String cardid; | 31 | + private String cardnum =""; |
30 | 32 | ||
31 | @NonNull | 33 | @NonNull |
32 | @Override | 34 | @Override |
33 | public BasePresenter initPresenter() { | 35 | public BasePresenter initPresenter() { |
34 | - return null; | 36 | + return new ApplyReplaceCardPresenter(); |
35 | } | 37 | } |
36 | 38 | ||
37 | @Override | 39 | @Override |
@@ -41,35 +43,38 @@ public class ApplyReplaceCardFragment extends BaseMVPCompatFragment<ApplyReplace | @@ -41,35 +43,38 @@ public class ApplyReplaceCardFragment extends BaseMVPCompatFragment<ApplyReplace | ||
41 | 43 | ||
42 | @Override | 44 | @Override |
43 | public void initUI(View view, @Nullable Bundle savedInstanceState) { | 45 | public void initUI(View view, @Nullable Bundle savedInstanceState) { |
44 | - replaceCardDialog = new ReplaceCardDialog(getActivity()); | ||
45 | - bt_sure = view.findViewById(R.id.bt_sure); | ||
46 | - bt_cancel = view.findViewById(R.id.bt_cancle); | ||
47 | - et_cardnum = view.findViewById(R.id.et_cardnum); | 46 | + replaceCardDialog = new ReplaceCardDialog(getActivity()); |
47 | + bt_sure = view.findViewById(R.id.bt_sure); | ||
48 | + bt_cancel = view.findViewById(R.id.bt_cancle); | ||
49 | + et_cardnum = view.findViewById(R.id.et_cardnum); | ||
48 | 50 | ||
49 | - bt_sure.setOnClickListener(this); | 51 | + bt_sure.setOnClickListener(this); |
50 | 52 | ||
51 | - cardid = et_cardnum.getText().toString().trim(); | ||
52 | - if (TextUtils.isEmpty(cardid)) { | ||
53 | - ToastUtils.showToast("请输入新卡卡号!"); | ||
54 | - }else { | ||
55 | - //studentid 从成长界面获取 此处设置为“123” | ||
56 | - mPresenter.showReplaceCardDetail(123, cardid); | ||
57 | - } | ||
58 | } | 53 | } |
59 | 54 | ||
55 | + @SuppressLint("LongLogTag") | ||
60 | @Override | 56 | @Override |
61 | public void onClick(View view) { | 57 | public void onClick(View view) { |
62 | - switch (view.getId()){ | 58 | + switch (view.getId()) { |
63 | case R.id.bt_sure: | 59 | case R.id.bt_sure: |
64 | cardnum = et_cardnum.getText().toString().trim(); | 60 | cardnum = et_cardnum.getText().toString().trim(); |
65 | - if (TextUtils.isEmpty(cardnum)){ | ||
66 | - Toast.makeText(getActivity(),"卡号不能为空,请重新输入",Toast.LENGTH_SHORT).show(); | ||
67 | - } | ||
68 | - else { | ||
69 | - replaceCardDialog.setTitle("补卡提示"); | ||
70 | - replaceCardDialog.setText("您已补卡成功!"); | ||
71 | - replaceCardDialog.show(); | 61 | + ToastUtils.showToast("cardnum:" + cardnum); |
62 | + Log.i("ApplyReplaceCardFragment:data", cardnum); | ||
63 | + if (TextUtils.isEmpty(cardnum)) { | ||
64 | + ToastUtils.showToast("卡号不能为空,请重新输入!"); | ||
65 | + } else { | ||
66 | + //studentid 从成长界面获取 此处设置为“123” | ||
67 | + mPresenter.ReplaceCardDetail(12, cardnum); | ||
72 | } | 68 | } |
69 | + | ||
70 | +// cardnum = et_cardnum.getText().toString().trim(); | ||
71 | +// if (TextUtils.isEmpty(cardnum)) { | ||
72 | +// Toast.makeText(getActivity(), "卡号不能为空,请重新输入", Toast.LENGTH_SHORT).show(); | ||
73 | +// } else { | ||
74 | +// replaceCardDialog.setTitle("补卡提示"); | ||
75 | +// replaceCardDialog.setText("您已补卡成功!"); | ||
76 | +// replaceCardDialog.show(); | ||
77 | +// } | ||
73 | break; | 78 | break; |
74 | } | 79 | } |
75 | } | 80 | } |
app/src/main/java/com/shunzhi/parent/ui/fragment/report/ChengZhangFragment.java
1 | package com.shunzhi.parent.ui.fragment.report; | 1 | package com.shunzhi.parent.ui.fragment.report; |
2 | 2 | ||
3 | +import android.content.Intent; | ||
3 | import android.os.Bundle; | 4 | import android.os.Bundle; |
4 | import android.os.Handler; | 5 | import android.os.Handler; |
5 | import android.os.Message; | 6 | import android.os.Message; |
@@ -19,6 +20,10 @@ import com.shunzhi.parent.adapter.ReportAdapter; | @@ -19,6 +20,10 @@ import com.shunzhi.parent.adapter.ReportAdapter; | ||
19 | import com.shunzhi.parent.bean.ReportBean; | 20 | import com.shunzhi.parent.bean.ReportBean; |
20 | import com.shunzhi.parent.contract.report.ReportContract; | 21 | import com.shunzhi.parent.contract.report.ReportContract; |
21 | import com.shunzhi.parent.presenter.report.ReportPresenter; | 22 | import com.shunzhi.parent.presenter.report.ReportPresenter; |
23 | +import com.shunzhi.parent.ui.activity.apply.ApplyReplaceCardActivity; | ||
24 | +import com.shunzhi.parent.ui.activity.report.ReportDetialActivity; | ||
25 | +import com.shunzhi.parent.ui.activity.report.ReportSceneActivity; | ||
26 | +import com.shunzhi.parent.ui.fragment.apply.ApplyReplaceCardFragment; | ||
22 | 27 | ||
23 | import java.util.List; | 28 | import java.util.List; |
24 | 29 | ||
@@ -28,6 +33,7 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep | @@ -28,6 +33,7 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep | ||
28 | implements ReportContract.IReportView, View.OnClickListener { | 33 | implements ReportContract.IReportView, View.OnClickListener { |
29 | 34 | ||
30 | public static String TYPE_CHENGZHANG = "chengzhang", TYPE_REPORT = "report"; | 35 | public static String TYPE_CHENGZHANG = "chengzhang", TYPE_REPORT = "report"; |
36 | + ApplyReplaceCardFragment applyReplaceCardFragment = null; | ||
31 | 37 | ||
32 | public static ChengZhangFragment newInstance(String type) { | 38 | public static ChengZhangFragment newInstance(String type) { |
33 | Bundle bundle = new Bundle(); | 39 | Bundle bundle = new Bundle(); |
@@ -144,13 +150,12 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep | @@ -144,13 +150,12 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep | ||
144 | public void onClick(View view) { | 150 | public void onClick(View view) { |
145 | switch (view.getId()) { | 151 | switch (view.getId()) { |
146 | case R.id.layout_kaoqin: | 152 | case R.id.layout_kaoqin: |
147 | - | 153 | + ReportDetialActivity.getInstance(getActivity(),"2018-04-11",2,"34345"); |
148 | break; | 154 | break; |
149 | case R.id.layout_buka: | 155 | case R.id.layout_buka: |
150 | - | 156 | + ApplyReplaceCardActivity.getInstance(getActivity()); |
151 | break; | 157 | break; |
152 | case R.id.layout_qingjia: | 158 | case R.id.layout_qingjia: |
153 | - | ||
154 | break; | 159 | break; |
155 | } | 160 | } |
156 | } | 161 | } |
app/src/main/res/layout/fragment_apply_replacecard.xml
@@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
29 | android:layout_height="170dp" | 29 | android:layout_height="170dp" |
30 | android:background="@drawable/report_white" | 30 | android:background="@drawable/report_white" |
31 | android:orientation="vertical" | 31 | android:orientation="vertical" |
32 | - android:layout_margin="@dimen/margin_medium"> | 32 | + android:layout_margin="@dimen/margin_large"> |
33 | 33 | ||
34 | <LinearLayout | 34 | <LinearLayout |
35 | android:layout_width="match_parent" | 35 | android:layout_width="match_parent" |
@@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
41 | <TextView | 41 | <TextView |
42 | android:layout_weight="1" | 42 | android:layout_weight="1" |
43 | android:id="@+id/tv_carduser" | 43 | android:id="@+id/tv_carduser" |
44 | - android:paddingLeft="@dimen/margin_small" | 44 | + android:layout_margin="@dimen/dp_8" |
45 | android:layout_width="0dp" | 45 | android:layout_width="0dp" |
46 | android:layout_height="wrap_content" | 46 | android:layout_height="wrap_content" |
47 | android:text="补卡人:" | 47 | android:text="补卡人:" |
@@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
70 | android:layout_weight="1" | 70 | android:layout_weight="1" |
71 | android:layout_width="0dp" | 71 | android:layout_width="0dp" |
72 | android:layout_height="wrap_content" | 72 | android:layout_height="wrap_content" |
73 | - android:paddingLeft="@dimen/margin_small" | 73 | + android:layout_margin="@dimen/dp_8" |
74 | android:text="卡号:" | 74 | android:text="卡号:" |
75 | android:textColor="@color/hintTextColor" | 75 | android:textColor="@color/hintTextColor" |
76 | android:textSize="@dimen/textSize16" /> | 76 | android:textSize="@dimen/textSize16" /> |
@@ -100,7 +100,7 @@ | @@ -100,7 +100,7 @@ | ||
100 | android:id="@+id/tv_cardnumber" | 100 | android:id="@+id/tv_cardnumber" |
101 | android:layout_width="0dp" | 101 | android:layout_width="0dp" |
102 | android:layout_height="wrap_content" | 102 | android:layout_height="wrap_content" |
103 | - android:paddingLeft="@dimen/margin_small" | 103 | + android:layout_margin="@dimen/dp_8" |
104 | android:layout_weight="1" | 104 | android:layout_weight="1" |
105 | android:text="考勤次数:" | 105 | android:text="考勤次数:" |
106 | android:textColor="@color/hintTextColor" | 106 | android:textColor="@color/hintTextColor" |
app/src/main/res/layout/fragment_report.xml
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | android:layout_width="match_parent" | 68 | android:layout_width="match_parent" |
69 | android:layout_height="match_parent" | 69 | android:layout_height="match_parent" |
70 | android:background="@color/white" | 70 | android:background="@color/white" |
71 | - android:visibility="visible"> | 71 | + android:visibility="gone"> |
72 | 72 | ||
73 | <TextView | 73 | <TextView |
74 | android:id="@+id/tvNoData" | 74 | android:id="@+id/tvNoData" |
mvpsdk/src/main/res/values/dimens.xml
@@ -31,6 +31,7 @@ | @@ -31,6 +31,7 @@ | ||
31 | <dimen name="dp_066">0.66dp</dimen> | 31 | <dimen name="dp_066">0.66dp</dimen> |
32 | <dimen name="dp_4">4dp</dimen> | 32 | <dimen name="dp_4">4dp</dimen> |
33 | <dimen name="dp_5">5dp</dimen> | 33 | <dimen name="dp_5">5dp</dimen> |
34 | + <dimen name="dp_8">8dp</dimen> | ||
34 | <dimen name="dp_10">10dp</dimen> | 35 | <dimen name="dp_10">10dp</dimen> |
35 | <dimen name="dp_14">14dp</dimen> | 36 | <dimen name="dp_14">14dp</dimen> |
36 | <dimen name="dp_22">22dp</dimen> | 37 | <dimen name="dp_22">22dp</dimen> |