From 5dd0fd3b77523003162d502ead72583d595dd9b1 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期三, 19 四月 2017 10:53:35 +0800 Subject: [PATCH] --- VisitFace/DemoForBsk/app/src/main/res/layout/fragment_check_in_right.xml | 8 ++++++-- VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/CheckInFragment.java | 5 +++++ VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/CheckInMng.java | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/CheckInFragment.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/CheckInFragment.java index 2402045..2b63d0e 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/CheckInFragment.java +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/CheckInFragment.java @@ -186,6 +186,11 @@ CheckInMng.getInstance().add(params, visitReasonId); } + @OnClick(R.id.fragment_check_in_right_visitor_reason_text_view) + public void fragment_check_in_right_visitor_reason_linear_layout_click(View view) { + //fragment_check_in_right_visitor_reason_click(view); + } + @OnClick(R.id.fragment_check_in_right_visitor_reason) public void fragment_check_in_right_visitor_reason_click(View view) { new SelectDialog(getView(), Constant.DialogSelectType.VISIT_REASON, new OkClickedListener() { diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/CheckInMng.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/CheckInMng.java index e19794a..6f6ae8d 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/CheckInMng.java +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/CheckInMng.java @@ -37,7 +37,7 @@ public void success() { Toast.makeText(BaseApplication.getInstance(),"娣诲姞鎴愬姛", Toast.LENGTH_SHORT).show(); CheckInFragment.getInstance().resetForm(); - if (visitReasonId != null && !"".equals(visitReasonId)) { + if (visitReasonId == null || "".equals(visitReasonId)) { DictionaryMng.getInstance().loadVisitReasonList(); } } diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_check_in_right.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_check_in_right.xml index 8321132..0b6805c 100644 --- a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_check_in_right.xml +++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_check_in_right.xml @@ -67,13 +67,16 @@ android:layout_height="wrap_content" android:layout_marginTop="20dp" android:orientation="vertical"> + <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@color/colorPrimary" android:textStyle="bold" android:textSize="@dimen/text_size_big" - android:text="@string/visitor_reason"/> + android:text="@string/visitor_reason" + android:id="@+id/fragment_check_in_right_visitor_reason_text_view" + /> <TextView android:id="@+id/fragment_check_in_right_visitor_reason" android:layout_width="match_parent" @@ -83,7 +86,8 @@ android:layout_marginBottom="12dp" android:text="" android:textSize="@dimen/text_size_normal" - android:textColor="@color/colorText_b"/> + android:textColor="@color/colorText_b" + /> <View android:layout_width="match_parent" android:layout_height="@dimen/view_size_1" -- Gitblit v1.8.0