git-svn-id: http://192.168.1.226/svn/proxy@232 454eff88-639b-444f-9e54-f578c98de674
| | |
| | | |
| | | import com.bsk.zhangbo.demoforbsk.R; |
| | | import com.bsk.zhangbo.demoforbsk.ui.activity.MainActivity; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.VisitorRegisterFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.CheckInFragment; |
| | | import com.bsk.zhangbo.demoforbsk.util.AppApi; |
| | | import com.bsk.zhangbo.demoforbsk.util.WindowsUtil; |
| | | import com.camnter.easyrecyclerview.adapter.EasyRecyclerViewAdapter; |
| | |
| | | @Override |
| | | public void onClick(View view) { |
| | | MainActivity.selectPage(2); |
| | | VisitorRegisterFragment.getInstance().visitorCheckIn(item); |
| | | CheckInFragment.getInstance().visitorCheckIn(item); |
| | | } |
| | | }); |
| | | } else { |
| | |
| | | @Override |
| | | public void onClick(View view) { |
| | | MainActivity.selectPage(2); |
| | | VisitorRegisterFragment.getInstance().visitorCheckIn(item); |
| | | CheckInFragment.getInstance().visitorCheckIn(item); |
| | | } |
| | | }); |
| | | } |
| | |
| | |
|
| | | import com.bsk.zhangbo.demoforbsk.R;
|
| | | import com.bsk.zhangbo.demoforbsk.ui.activity.MainActivity;
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.VisitorRegisterFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.CheckInFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.util.AppApi;
|
| | | import com.bsk.zhangbo.demoforbsk.util.Constant;
|
| | | import com.camnter.easyrecyclerview.adapter.EasyRecyclerViewAdapter;
|
| | |
| | | Object data = getList().get(posistion);
|
| | | if (data instanceof VisitorQueryItem) {
|
| | | VisitorQueryItem item = (VisitorQueryItem) data;
|
| | | VisitorRegisterFragment.getInstance().setVisitorInfo(item);
|
| | | CheckInFragment.getInstance().setVisitorInfo(item);
|
| | | }
|
| | | }
|
| | | });
|
| | |
| | | Object data = getList().get(posistion);
|
| | | if (data instanceof VisitorQueryItem) {
|
| | | VisitorQueryItem item = (VisitorQueryItem) data;
|
| | | VisitorRegisterFragment.getInstance().setIntervieweeInfo(item);
|
| | | CheckInFragment.getInstance().setIntervieweeInfo(item);
|
| | | }
|
| | | }
|
| | | });
|
| | |
| | | package com.bsk.zhangbo.demoforbsk.service;
|
| | |
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.RegisterFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.VisitorRegisterFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.CheckInFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.util.AppApi;
|
| | |
|
| | | import org.xutils.http.RequestParams;
|
| | |
| | | idMap.put(CommonVariables.DictionaryType.VISIT_PURPOSE+item.getName(), item.getId()+"");
|
| | | visitPurposeList.add(item.getName());
|
| | | }
|
| | | VisitorRegisterFragment.getInstance().setVisitPurposeList(visitPurposeList);
|
| | | CheckInFragment.getInstance().setVisitPurposeList(visitPurposeList);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | package com.bsk.zhangbo.demoforbsk.service;
|
| | |
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.VisitorRegisterFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.CheckInFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.util.AppApi;
|
| | | import com.lidroid.xutils.HttpUtils;
|
| | |
|
| | |
| | | params.addBodyParameter(IntervieweeQueryCondition.FieldNames.name, name);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | VisitorRegisterFragment.getInstance().listChanged(getList(IntervieweeQueryItem.class), isClear);
|
| | | CheckInFragment.getInstance().listChanged(getList(IntervieweeQueryItem.class), isClear);
|
| | | }
|
| | | });
|
| | |
|
| | |
| | | import android.widget.Toast;
|
| | |
|
| | | import com.bsk.zhangbo.demoforbsk.base.BaseApplication;
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.OneFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.VisitorRegisterFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.HomeFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.CheckInFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.util.AppApi;
|
| | |
|
| | | import org.xutils.http.RequestParams;
|
| | | import org.xutils.x;
|
| | |
|
| | | import cn.com.basic.face.discern.common.BaseCommonCallBack;
|
| | | import cn.com.basic.face.discern.query.condition.IntervieweeQueryCondition;
|
| | | import cn.com.basic.face.discern.query.condition.VisitorQueryCondition;
|
| | | import cn.com.basic.face.discern.query.item.IntervieweeQueryItem;
|
| | | import cn.com.basic.face.discern.query.item.VisitorQueryItem;
|
| | |
|
| | | /**
|
| | |
| | | params.addBodyParameter(VisitorQueryCondition.FieldNames.name, name);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | VisitorRegisterFragment.getInstance().listChanged(getList(VisitorQueryItem.class), isClear);
|
| | | CheckInFragment.getInstance().listChanged(getList(VisitorQueryItem.class), isClear);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | params.addBodyParameter(VisitorQueryCondition.FieldNames.notCompanyId, BaseApplication.getInstance().getPlace().getCompanyId());
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | OneFragment.getInstance().visitorListChanged(getList(VisitorQueryItem.class));
|
| | | HomeFragment.getInstance().visitorListChanged(getList(VisitorQueryItem.class));
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | params.addBodyParameter(VisitorQueryCondition.FieldNames.name, name);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | VisitorRegisterFragment.getInstance().listChanged(getList(VisitorQueryItem.class), isClear);
|
| | | CheckInFragment.getInstance().listChanged(getList(VisitorQueryItem.class), isClear);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | package com.bsk.zhangbo.demoforbsk.service;
|
| | |
|
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.VisitorRegisterFragment;
|
| | | import com.bsk.zhangbo.demoforbsk.util.AppApi;
|
| | |
|
| | | import org.xutils.http.RequestParams;
|
| | |
| | | import com.bsk.zhangbo.demoforbsk.R; |
| | | import com.bsk.zhangbo.demoforbsk.adapter.MyFragmentPagerAdapter; |
| | | import com.bsk.zhangbo.demoforbsk.base.BaseActivity; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.AttendanceManagerFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.DeviceManagerFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.OneFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.AttendanceFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.DeviceFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.HomeFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.RegisterFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.TelPhoneFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.VisitorManagerFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.VisitorRegisterFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.PhoneCallFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.CheckInFragment; |
| | | import com.bsk.zhangbo.demoforbsk.ui.fragment.VisitFragment; |
| | | import com.bsk.zhangbo.demoforbsk.util.TabNameUtil; |
| | | |
| | | import java.util.Arrays; |
| | |
| | | List<String> tabNamesList = Arrays.asList(TabNameUtil.tabNames); |
| | | int[] tabIcons = TabNameUtil.tabIcons; |
| | | MyFragmentPagerAdapter myFragmentPagerAdapter = new MyFragmentPagerAdapter(getSupportFragmentManager(),MainActivity.this); |
| | | myFragmentPagerAdapter.addFragment(OneFragment.getInstance(), tabNamesList.get(0),tabIcons[0]); |
| | | myFragmentPagerAdapter.addFragment(HomeFragment.getInstance(), tabNamesList.get(0),tabIcons[0]); |
| | | myFragmentPagerAdapter.addFragment(RegisterFragment.getInstance(), tabNamesList.get(1),tabIcons[1]); |
| | | myFragmentPagerAdapter.addFragment(VisitorRegisterFragment.getInstance(), tabNamesList.get(2),tabIcons[2]); |
| | | myFragmentPagerAdapter.addFragment(TelPhoneFragment.newInstance(), tabNamesList.get(3),tabIcons[3]); |
| | | myFragmentPagerAdapter.addFragment(VisitorManagerFragment.newInstance(), tabNamesList.get(4),tabIcons[4]); |
| | | myFragmentPagerAdapter.addFragment(AttendanceManagerFragment.newInstance(), tabNamesList.get(5),tabIcons[5]); |
| | | myFragmentPagerAdapter.addFragment(DeviceManagerFragment.newInstance(), tabNamesList.get(6),tabIcons[6]); |
| | | myFragmentPagerAdapter.addFragment(CheckInFragment.getInstance(), tabNamesList.get(2),tabIcons[2]); |
| | | myFragmentPagerAdapter.addFragment(PhoneCallFragment.newInstance(), tabNamesList.get(3),tabIcons[3]); |
| | | myFragmentPagerAdapter.addFragment(VisitFragment.newInstance(), tabNamesList.get(4),tabIcons[4]); |
| | | myFragmentPagerAdapter.addFragment(AttendanceFragment.newInstance(), tabNamesList.get(5),tabIcons[5]); |
| | | myFragmentPagerAdapter.addFragment(DeviceFragment.newInstance(), tabNamesList.get(6),tabIcons[6]); |
| | | mViewPager.setAdapter(myFragmentPagerAdapter); |
| | | mViewPager.setOffscreenPageLimit(6);//viewpager缓存个数 |
| | | mTabLayout.setupWithViewPager(mViewPager); |
File was renamed from VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/AttendanceManagerFragment.java |
| | |
| | | * Created by Sinoe on 2017/2/23.
|
| | | */
|
| | |
|
| | | public class AttendanceManagerFragment extends MainUIBaseFragment implements EasyRecyclerViewHolder.OnItemClickListener{
|
| | | public class AttendanceFragment extends MainUIBaseFragment implements EasyRecyclerViewHolder.OnItemClickListener{
|
| | | private View mViewLeft,mViewRight;
|
| | | private EasyRecyclerView mRightRecyclerView,mLeftRecyclerView;
|
| | | private AttendanceRecyclerViewAdapter mRightAdapter;
|
| | | private VisitorManagerListAdapter mLeftAdapter;
|
| | | public static AttendanceManagerFragment newInstance(){
|
| | | return new AttendanceManagerFragment();
|
| | | public static AttendanceFragment newInstance(){
|
| | | return new AttendanceFragment();
|
| | | }
|
| | | @Override
|
| | | public View addLeftLayout() {
|
File was renamed from VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/VisitorRegisterFragment.java |
| | |
| | | * Created by Administrator on 2017/2/20 0020.
|
| | | */
|
| | |
|
| | | public class VisitorRegisterFragment extends MainUIBaseFragment {
|
| | | public class CheckInFragment extends MainUIBaseFragment {
|
| | | private View mViewLeft,mViewRight;
|
| | | private RadioGroup mRGTop,mRGClass;
|
| | | private LinearLayout mLlRadioGroupClass;
|
| | |
| | | private EasyRecyclerView mRecyclerView;
|
| | | private List mList = new ArrayList();;
|
| | |
|
| | | private static VisitorRegisterFragment instance = new VisitorRegisterFragment();
|
| | | private static CheckInFragment instance = new CheckInFragment();
|
| | | private TextView leftCompanyName;
|
| | | private TextView leftIdentityNumber;
|
| | | private ImageView leftPhoto;
|
| | |
| | | private RadioButton visitorRegisterCheckDepartment;
|
| | | private ImageView rightPhoto;
|
| | |
|
| | | public static VisitorRegisterFragment getInstance() {
|
| | | public static CheckInFragment getInstance() {
|
| | | return instance;
|
| | | }
|
| | |
|
| | |
| | | leftCompanyName.setText(item.getCompanyName());
|
| | | leftIdentityNumber.setText(item.getIdentify());
|
| | | leftPhoto.setImageURI(Uri.parse(AppApi.CHENXINGGROUND_IMAGEURL_BASE + item.getImagePath()));
|
| | | /*
|
| | | left = (VisitorView) mViewRight.findViewById(R.id.visitor_view_left);
|
| | | left.setType(Constant.VISITOR_FROM);
|
| | | left.setTitle("");
|
| | | leftCompanyName = (TextView) left.findViewById(R.id.visitor_view_left_company_name);
|
| | | leftIdentityNumber = (TextView) left.findViewById(R.id.visitor_view_left_identity_number);
|
| | | leftPhone = (TextView) left.findViewById(R.id.visitor_view_left_phone);
|
| | | leftPhoto = (ImageView) left.findViewById(R.id.visitor_view_left_photo);
|
| | |
|
| | | right = (VisitorView) mViewRight.findViewById(R.id.visitor_view_right);
|
| | | right.setType(Constant.VISITOR_TO);
|
| | | right.setTitle("");
|
| | | rightDepartment = (TextView) right.findViewById(R.id.view_visitor_right_deptartment);
|
| | | rightPost = (TextView) right.findViewById(R.id.view_visitor_right_post);
|
| | | rightMobilePhone = (TextView) right.findViewById(R.id.visitor_right_phone);
|
| | | rightTel = (TextView) right.findViewById(R.id.visitor_right_tel);
|
| | | rightPhoto = (ImageView) right.findViewById(R.id.visitor_view_right_photo);
|
| | | */
|
| | |
|
| | | }
|
| | |
|
| | | public void listChanged(List list, boolean isClear) {
|
File was renamed from VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/DeviceManagerFragment.java |
| | |
| | | * Created by Sinoe on 2017/2/23.
|
| | | */
|
| | |
|
| | | public class DeviceManagerFragment extends MainUIBaseFragment implements View.OnClickListener{
|
| | | public class DeviceFragment extends MainUIBaseFragment implements View.OnClickListener{
|
| | | private View mViewLeft,mViewRight;
|
| | | private RelativeLayout mLayoutWifi,mLayoutLandline,mLayoutSchool,mLayoutCamera1,mLayoutCamera2;
|
| | | private TextView mTvWifi,mTvLandline,mTvSchool,mTvCamera1,mTvCamera2;
|
| | | private CheckBox mCheckWifi,mCheckLandline,mCheckSchool,mCheckCamera1,mCheckCamera2;
|
| | | private List<CheckBox> listCheck = new ArrayList<>();
|
| | | public static DeviceManagerFragment newInstance() {
|
| | | return new DeviceManagerFragment();
|
| | | public static DeviceFragment newInstance() {
|
| | | return new DeviceFragment();
|
| | | }
|
| | |
|
| | | @Override
|
File was renamed from VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/OneFragment.java |
| | |
| | | * Created by zhangbo on 2017/2/15. |
| | | */ |
| | | |
| | | public class OneFragment extends BaseFragment { |
| | | public class HomeFragment extends BaseFragment { |
| | | |
| | | private RadioGroup mRadioGroup; |
| | | private RadioButton mRadioButton1, mRadioButton2; |
| | |
| | | } |
| | | |
| | | |
| | | private static OneFragment instance = new OneFragment(); |
| | | private static HomeFragment instance = new HomeFragment(); |
| | | |
| | | public static OneFragment getInstance() { |
| | | public static HomeFragment getInstance() { |
| | | return instance; |
| | | } |
| | | |
File was renamed from VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/TelPhoneFragment.java |
| | |
| | | * Created by Sinoe on 2017/2/23.
|
| | | */
|
| | |
|
| | | public class TelPhoneFragment extends MainUIBaseFragment {
|
| | | public class PhoneCallFragment extends MainUIBaseFragment {
|
| | |
|
| | |
|
| | | private View mViewLeft,mViewRight;
|
| | |
| | |
|
| | |
|
| | |
|
| | | public static TelPhoneFragment newInstance() {
|
| | | return new TelPhoneFragment();
|
| | | public static PhoneCallFragment newInstance() {
|
| | | return new PhoneCallFragment();
|
| | | }
|
| | | @Override
|
| | | public View addLeftLayout() {
|
File was renamed from VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/VisitorManagerFragment.java |
| | |
| | | package com.bsk.zhangbo.demoforbsk.ui.fragment;
|
| | |
|
| | | import android.support.v7.widget.LinearLayoutManager;
|
| | | import android.util.Log;
|
| | | import android.view.LayoutInflater;
|
| | | import android.view.View;
|
| | | import android.widget.CheckBox;
|
| | | import android.widget.LinearLayout;
|
| | | import android.widget.TextView;
|
| | | import android.widget.Toast;
|
| | |
| | | * Created by Sinoe on 2017/2/23.
|
| | | */
|
| | |
|
| | | public class VisitorManagerFragment extends MainUIBaseFragment implements EasyRecyclerViewHolder.OnItemClickListener{
|
| | | public class VisitFragment extends MainUIBaseFragment implements EasyRecyclerViewHolder.OnItemClickListener{
|
| | | private View mViewLeft,mViewRight;
|
| | | private LinearLayout mRowLayout1,mRowLayout2,mRowLayout3,mRowLayout4,mRowLayout5,mRowLayout6,mRowLayout7;
|
| | | private TextView mRow1TextViewLeft,mRow1TextViewRight,mRow2TextViewLeft,mRow2TextViewRight,mRow3TextViewLeft,mRow3TextViewRight,mRow4TextViewLeft,mRow4TextViewRight,
|
| | |
| | | private VisitorManagerListAdapter mAdapter;
|
| | | private EasyRecyclerView mRecyclerView;
|
| | | private int mOldPosition = 0,mNewPosition = 0;
|
| | | public static VisitorManagerFragment newInstance(){
|
| | | return new VisitorManagerFragment();
|
| | | public static VisitFragment newInstance(){
|
| | | return new VisitFragment();
|
| | | }
|
| | |
|
| | |
|