xuxiuxi
2017-05-05 a691c82c836ede72bb8b4ec8813826b3d2d1e3fc


git-svn-id: http://192.168.1.226/svn/proxy@608 454eff88-639b-444f-9e54-f578c98de674
2个文件已添加
3个文件已修改
97 ■■■■ 已修改文件
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/CheckInFragment.java 40 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/res/drawable/u36.png 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/res/drawable/u38.png 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/res/layout/fragment_check_in_right.xml 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_left.xml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/CheckInFragment.java
@@ -1,13 +1,14 @@
package cn.com.basic.face.fragment;
import android.content.Context;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.widget.Toast;
import com.bsk.zhangbo.demoforbsk.R;
@@ -32,9 +33,7 @@
import org.xutils.http.RequestParams;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import cn.com.basic.face.discern.common.CommonVariables;
import cn.com.basic.face.discern.entity.Visit;
@@ -60,7 +59,7 @@
    @ViewInject(R.id.fragment_check_in_right_remark)
    private EditText fragment_check_in_right_remark;
    @ViewInject(R.id.fragment_check_in_right_visitor_reason)
    private TextView fragment_check_in_right_visitor_reason;
    private EditText fragment_check_in_right_visitor_reason;
    @ViewInject(R.id.fragment_check_in_left_search_edit_text)
    private EditText fragment_check_in_left_search_edit_text;
    @ViewInject(R.id.fragment_check_in_left_visitor_radio)
@@ -192,13 +191,44 @@
        //fragment_check_in_right_visitor_reason_click(view);
    }
    @OnClick(R.id.fragment_check_in_right_visitor_reason)
    //@OnClick(R.id.fragment_check_in_right_visitor_reason)
    public void fragment_check_in_right_visitor_reason_click(View view) {
    }
    @OnClick(R.id.fragment_check_in_right_visitor_reason_more)
    public void fragment_check_in_right_visitor_reason_more_click(View view) {
        InputMethodManager imm = (InputMethodManager)MainActivity.getInstance().getSystemService(
                Context.INPUT_METHOD_SERVICE);
        imm.hideSoftInputFromWindow(fragment_check_in_right_visitor_reason.getWindowToken(), 0);
        new SelectDialog(getView(), Constant.DialogSelectType.VISIT_REASON, new OkClickedListener() {
            public void onSelected(String value) {
                fragment_check_in_right_visitor_reason.setText(value);
            }
        });
//        fragment_check_in_right_visitor_reason.setFocusable(false);
//        fragment_check_in_right_visitor_reason.setClickable(false);
    }
    @OnClick(R.id.fragment_check_in_right_parent)
    public void fragment_check_in_right_linear_layout_click(View view) {
        InputMethodManager imm = (InputMethodManager)MainActivity.getInstance().getSystemService(
                Context.INPUT_METHOD_SERVICE);
        imm.hideSoftInputFromWindow(fragment_check_in_right_visitor_reason.getWindowToken(), 0);
    }
    @OnClick(R.id.fragment_check_in_left_parent)
    public void fragment_check_in_left_parent_click(View view) {
        InputMethodManager imm = (InputMethodManager)MainActivity.getInstance().getSystemService(
                Context.INPUT_METHOD_SERVICE);
        imm.hideSoftInputFromWindow(fragment_check_in_right_visitor_reason.getWindowToken(), 0);
    }
    @OnClick(R.id.fragment_check_in_right_visitor_reason_edit)
    public void fragment_check_in_right_visitor_reason_edit_click(View view) {
        fragment_check_in_right_visitor_reason.setFocusableInTouchMode(true);
        fragment_check_in_right_visitor_reason.requestFocus();
        InputMethodManager imm = (InputMethodManager)MainActivity.getInstance().getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
    }
    public void checkInFromHomePage(CheckInQueryItem item) {
VisitFace/DemoForBsk/app/src/main/res/drawable/u36.png
VisitFace/DemoForBsk/app/src/main/res/drawable/u38.png
VisitFace/DemoForBsk/app/src/main/res/layout/fragment_check_in_right.xml
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent">
    android:layout_height="match_parent"
    >
    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">
@@ -9,7 +10,9 @@
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center_horizontal"
            android:orientation="vertical">
            android:orientation="vertical"
            android:id="@+id/fragment_check_in_right_parent"
            >
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="@dimen/h76dp"
@@ -78,7 +81,6 @@
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/h20dp"
                android:orientation="vertical">
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
@@ -88,17 +90,37 @@
                    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"
                    android:layout_height="wrap_content"
                    android:background="@null"
                    android:layout_marginTop="@dimen/h15dp"
                    android:layout_marginBottom="@dimen/h12dp"
                    android:text=""
                    android:textSize="@dimen/w14dp"
                    android:textColor="@color/colorText_b"
                    />
                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content">
                    <EditText
                        android:id="@+id/fragment_check_in_right_visitor_reason"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:background="@null"
                        android:layout_marginTop="@dimen/h15dp"
                        android:layout_marginBottom="@dimen/h12dp"
                        android:text=""
                        android:textSize="@dimen/w14dp"
                        android:textColor="@color/colorText_b"
                        />
                    <ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="@drawable/u36"
                        android:id="@+id/fragment_check_in_right_visitor_reason_edit"
                        android:layout_alignParentRight="true"
                        />
                    <ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="@drawable/u38"
                        android:id="@+id/fragment_check_in_right_visitor_reason_more"
                        android:layout_toLeftOf="@id/fragment_check_in_right_visitor_reason_edit"
                        android:layout_marginRight="@dimen/w10dp"
                        />
                </RelativeLayout>
                <View
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/view_size_1"
VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_left.xml
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent">
    android:layout_height="match_parent"
    android:id="@+id/fragment_check_in_left_parent"
    >
    <TextView
        android:id="@+id/fragment_device_back"
        android:layout_width="wrap_content"
@@ -17,7 +19,8 @@
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/colorSearch"
        android:orientation="vertical">
        android:orientation="vertical"
        >
        <EditText
            android:id="@+id/fragment_device_left_search"
            android:layout_width="match_parent"