非公组织详情

This commit is contained in:
itgaojian163 2021-11-04 20:54:53 +08:00
parent 1d65a0bcf0
commit 1a18808e3f
7 changed files with 1054 additions and 12 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="1.8" />
<bytecodeTargetLevel target="13" />
</component>
</project>

View File

@ -36,5 +36,10 @@
<option name="name" value="MavenLocal" />
<option name="url" value="file:$USER_HOME$/.m2/repository/" />
</remote-repository>
<remote-repository>
<option name="id" value="MavenLocal" />
<option name="name" value="MavenLocal" />
<option name="url" value="file:$USER_HOME$/.m2/repository" />
</remote-repository>
</component>
</project>

View File

@ -24,7 +24,7 @@
</map>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_13" default="true" project-jdk-name="13" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View File

@ -128,6 +128,8 @@ public class NonPublicOrgAddActivity extends BaseActivity {
SwitchCompat mSwHasLabour;
@BindView(R2.id.sw_has_party)
SwitchCompat mSwHasParty;
@BindView(R2.id.et_labour_count)
EditText mEtLabourCount;
@BindView(R2.id.sw_has_women)
SwitchCompat mSwHasWomen;
@BindView(R2.id.tv_danger_type)
@ -166,6 +168,10 @@ public class NonPublicOrgAddActivity extends BaseActivity {
RecyclerView mRlvWorkPhoto;
@BindView(R2.id.et_remark)
EditText mEtRemark;
@BindView(R2.id.et_legal_name)
EditText mEtLegalName;
@BindView(R2.id.et_legal_phone)
EditText mEtLegalPhone;
@BindView(R2.id.nsv_content)
NestedScrollView mNsvContent;
private Unbinder mBind;
@ -236,6 +242,7 @@ public class NonPublicOrgAddActivity extends BaseActivity {
* 7 工作场所
*/
private void initViews() {
initMap();
mTvArea.setOnClickListener(v -> onShowArea());
mTvGrid.setOnClickListener(v -> {
if (TextUtils.isEmpty(mSelAreaCode)) {
@ -826,7 +833,86 @@ public class NonPublicOrgAddActivity extends BaseActivity {
ids = ids.substring(0, ids.length() - 1);
bean.setFacadePhotos(ids);
}
bean.setHasLabourUnion(mHasLabour);
bean.setHasPartyOrg(mHasParty);
bean.setHasWomenFederation(mHasWomen);
if (mSelDanger != null) {
bean.setHiddenDangerTypeId(mSelDanger.getDataId());
bean.setHiddenDangerTypeId(mSelDanger.getDataName());
}
bean.setIsDanger(mIsDanger);
bean.setIsLogOff(mIsLogOff);
String labourCount = mEtLabourCount.getText().toString().trim();
if (!TextUtils.isEmpty(labourCount)) {
bean.setLabourUnionTotalPerson(Integer.parseInt(labourCount));
}
if (mSelCardType != null) {
bean.setLegalPersonIdCardCode(mSelCardType.getDataId());
}
String legalNumber = mEtLegalNumber.getText().toString().trim();
if (!TextUtils.isEmpty(legalNumber)) {
bean.setLegalPersonIdCard(legalNumber);
}
String legalName = mEtLegalName.getText().toString().trim();
if (!TextUtils.isEmpty(legalName)) {
bean.setLegalPersonName(legalName);
}
String legalPhone = mEtLegalPhone.getText().toString().trim();
if (!TextUtils.isEmpty(legalPhone)) {
bean.setLegalPersonPhone(legalPhone);
}
if (!TextUtils.isEmpty(mLegalZPhotoId)) {
bean.setLegalPersonIdCardFront(mLegalZPhotoId);
}
if (!TextUtils.isEmpty(mLegalFPhotoId)) {
bean.setLegalPersonIdCardBack(mLegalFPhotoId);
}
String masterName = mEtMasterName.getText().toString().trim();
if (!TextUtils.isEmpty(masterName)) {
bean.setMasterName(masterName);
}
String masterPhone = mEtMasterPhone.getText().toString().trim();
if (!TextUtils.isEmpty(masterPhone)) {
bean.setMasterPhone(masterPhone);
}
String masterIdCard = mEtMasterIdCard.getText().toString().trim();
if (!TextUtils.isEmpty(masterIdCard)) {
bean.setMasterIdCard(masterIdCard);
}
if (!TextUtils.isEmpty(mMasterZPhotoId)) {
bean.setMasterIdCardFromt(mMasterZPhotoId);
}
if (!TextUtils.isEmpty(mMasterFPhotoId)) {
bean.setMasterIdCardBack(mMasterFPhotoId);
}
String securityName = mEtSecurityName.getText().toString().trim();
if (!TextUtils.isEmpty(securityName)) {
bean.setSecurityPersonName(securityName);
}
String securityPhone = mEtSecurityPhone.getText().toString().trim();
if (!TextUtils.isEmpty(securityPhone)) {
bean.setSecurityPersonPhone(securityPhone);
}
String workerCount = mEtCompanyCount.getText().toString().trim();
if (!TextUtils.isEmpty(workerCount)) {
bean.setTotalPerson(Integer.parseInt(workerCount));
}
String womanCount = mEtCompanyWomanCount.getText().toString().trim();
if (!TextUtils.isEmpty(womanCount)) {
bean.setWomenTotalPerson(Integer.parseInt(womanCount));
}
if (mWorkPhotos.size() > 2) {
String ids = "";
for (int i = 0; i < mWorkPhotos.size(); i++) {
ids += mWorkPhotos.get(i).getId() + ",";
}
ids = ids.substring(0, ids.length() - 1);
bean.setWorkplacePhotos(ids);
}
String remark = mEtRemark.getText().toString().trim();
if (!TextUtils.isEmpty(remark)) {
bean.setRemarks(remark);
}
Gson gson = new Gson();
String obj = gson.toJson(bean);
RequestBody requestBody = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), obj);

View File

@ -593,6 +593,7 @@
<View style="@style/vertical_line" />
<EditText
android:id="@+id/et_labour_count"
style="@style/item_content"
android:hint="请输入工会会员数量"
android:inputType="number" />
@ -644,6 +645,7 @@
<View style="@style/vertical_line" />
<EditText
android:id="@+id/et_legal_name"
style="@style/item_content"
android:hint="请输入企业法人姓名" />
@ -660,6 +662,7 @@
<View style="@style/vertical_line" />
<EditText
android:id="@+id/et_legal_phone"
style="@style/item_content"
android:hint="请输入企业法人联系电话" />

View File

@ -1,9 +1,954 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/nsv_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".incident.activitys.orgmanage.NonPublicOrgDetailActivity">
android:background="@color/gray_bg"
android:orientation="vertical"
android:overScrollMode="never"
android:scrollbars="none">
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="8dp"
app:cardCornerRadius="5dp"
app:cardPreventCornerOverlap="true"
app:cardUseCompatPadding="false">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:orientation="vertical">
<TextView
android:id="@+id/tv_issue_base_info"
style="@style/issue_report_title"
android:drawablePadding="10dp"
android:padding="8dp"
android:text="基本信息"
android:textStyle="bold" />
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="地区" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_area"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="所在网格" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_grid"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray_vertical">
<TextView
style="@style/item_title_vertical"
android:text="营业执照照片" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_license_photo"
android:layout_width="200dp"
android:layout_height="100dp"
android:src="@drawable/ic_add_photo" />
</LinearLayout>
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:layout_weight="0.5"
android:text="营业执照开始时间" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_license_start_date"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:layout_weight="0.5"
android:text="营业执照结束时间" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_license_end_date"
style="@style/item_content" />
</LinearLayout>
<LinearLayout
style="@style/item_gray"
android:padding="5dp">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:layout_weight="0.5"
android:text="是否具备建立中共党组织条件" />
<View style="@style/vertical_line" />
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1">
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/sw_can_party"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/switch_ios_track_selector"
android:enabled="false"
android:switchMinWidth="40dp"
android:switchPadding="0dp"
android:textOff=""
android:textOn=""
app:showText="false"
app:splitTrack="false"
app:theme="@style/scstyle"
app:thumbTint="#00000000"
app:trackTint="#00000000" />
</RelativeLayout>
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:text="中共党员数量" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_party_count"
style="@style/item_content" />
</LinearLayout>
<LinearLayout
style="@style/item_gray"
android:padding="5dp">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:layout_weight="0.5"
android:text="是否有共青团" />
<View style="@style/vertical_line" />
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1">
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/sw_has_young"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/switch_ios_track_selector"
android:enabled="false"
android:switchMinWidth="40dp"
android:switchPadding="0dp"
android:textOff=""
android:textOn=""
app:showText="false"
app:splitTrack="false"
app:theme="@style/scstyle"
app:thumbTint="#00000000"
app:trackTint="#00000000" />
</RelativeLayout>
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:layout_weight="0.5"
android:text="共青团团员数量" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_young_count"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:text="关注度" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_degree_concern"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:text="详细地址" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_address"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:text="位置坐标" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_address_sel"
style="@style/item_content" />
</LinearLayout>
<com.baidu.mapapi.map.TextureMapView
android:id="@+id/tmv_map"
android:layout_width="match_parent"
android:layout_height="220dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="-5dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="2dp" />
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:text="企业名称" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_company_name"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="invisible" />
<TextView
style="@style/item_title"
android:text="联系电话" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_company_phone"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="企业类型" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_company_type"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray_vertical">
<TextView
style="@style/item_title_vertical"
android:text="门面照片" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rlv_face_photo"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
style="@style/item_gray"
android:padding="5dp">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:layout_weight="0.5"
android:text="是否有工会" />
<View style="@style/vertical_line" />
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1">
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/sw_has_labour"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/switch_ios_track_selector"
android:enabled="false"
android:switchMinWidth="40dp"
android:switchPadding="0dp"
android:textOff=""
android:textOn=""
app:showText="false"
app:splitTrack="false"
app:theme="@style/scstyle"
app:thumbTint="#00000000"
app:trackTint="#00000000" />
</RelativeLayout>
</LinearLayout>
<LinearLayout
style="@style/item_gray"
android:padding="5dp">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:layout_weight="0.5"
android:text="是否有党组织" />
<View style="@style/vertical_line" />
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1">
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/sw_has_party"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/switch_ios_track_selector"
android:enabled="false"
android:switchMinWidth="40dp"
android:switchPadding="0dp"
android:textOff=""
android:textOn=""
app:showText="false"
app:splitTrack="false"
app:theme="@style/scstyle"
app:thumbTint="#00000000"
app:trackTint="#00000000" />
</RelativeLayout>
</LinearLayout>
<LinearLayout
style="@style/item_gray"
android:padding="5dp">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:layout_weight="0.5"
android:text="是否有妇联" />
<View style="@style/vertical_line" />
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1">
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/sw_has_women"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/switch_ios_track_selector"
android:enabled="false"
android:switchMinWidth="40dp"
android:switchPadding="0dp"
android:textOff=""
android:textOn=""
app:showText="false"
app:splitTrack="false"
app:theme="@style/scstyle"
app:thumbTint="#00000000"
app:trackTint="#00000000" />
</RelativeLayout>
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="安全隐患" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_danger_type"
style="@style/item_content" />
</LinearLayout>
<LinearLayout
style="@style/item_gray"
android:padding="5dp">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:layout_weight="0.5"
android:text="是否危化企业" />
<View style="@style/vertical_line" />
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1">
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/sw_is_danger"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/switch_ios_track_selector"
android:enabled="false"
android:switchMinWidth="40dp"
android:switchPadding="0dp"
android:textOff=""
android:textOn=""
app:showText="false"
app:splitTrack="false"
app:theme="@style/scstyle"
app:thumbTint="#00000000"
app:trackTint="#00000000" />
</RelativeLayout>
</LinearLayout>
<LinearLayout
style="@style/item_gray"
android:padding="5dp">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:layout_weight="0.5"
android:text="是否注销" />
<View style="@style/vertical_line" />
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1">
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/sw_is_log_off"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/switch_ios_track_selector"
android:enabled="false"
android:switchMinWidth="40dp"
android:switchPadding="0dp"
android:textOff=""
android:textOn=""
app:showText="false"
app:splitTrack="false"
app:theme="@style/scstyle"
app:thumbTint="#00000000"
app:trackTint="#00000000" />
</RelativeLayout>
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="工会会员数量" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_labour_count"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="法人证件" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_legal_type"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="法人证件号码" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_legal_number"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="企业法人" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_legal_name"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="联系电话" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_legal_phone"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray_vertical">
<TextView
style="@style/item_title_vertical"
android:text="企业法人身份证照片" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/iv_iden_p_z"
android:layout_width="match_parent"
android:layout_height="100dp"
android:scaleType="fitXY"
android:src="@drawable/ic_add_photo" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="身份证正面"
android:textColor="@color/black"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/iv_iden_p_f"
android:layout_width="match_parent"
android:layout_height="100dp"
android:scaleType="fitXY"
android:src="@drawable/ic_add_photo" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="身份证反面"
android:textColor="@color/black"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="负责人姓名" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_master_name"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="负责人联系电话" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_master_phone"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="负责人身份证" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_master_id_card"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray_vertical">
<TextView
style="@style/item_title_vertical"
android:text="企业负责人身份证照片" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/iv_master_p_z"
android:layout_width="match_parent"
android:layout_height="100dp"
android:scaleType="fitXY"
android:src="@drawable/ic_add_photo" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="身份证正面"
android:textColor="@color/black"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/iv_master_p_f"
android:layout_width="match_parent"
android:layout_height="100dp"
android:scaleType="fitXY"
android:src="@drawable/ic_add_photo" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="身份证反面"
android:textColor="@color/black"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="治保负责人姓名" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_security_name"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="治保负责人联系电话" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_security_phone"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="员工数" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_company_count"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray">
<ImageView
style="@style/style_hint_star"
android:visibility="gone" />
<TextView
style="@style/item_title"
android:text="女性员工数量" />
<View style="@style/vertical_line" />
<TextView
android:id="@+id/tv_company_woman_count"
style="@style/item_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray_vertical">
<TextView
style="@style/item_title_vertical"
android:text="工作场所照片" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rlv_work_photo"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout style="@style/item_gray_vertical">
<TextView
style="@style/item_title_vertical"
android:text="备注" />
<TextView
android:id="@+id/tv_remark"
style="@style/item_content_ver"
android:minLines="3" />
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
</androidx.core.widget.NestedScrollView>

View File

@ -164,11 +164,14 @@ public class LoginActivity extends BaseActivity {
* 登录
*/
public void login() {
if (checkUserInputInfo()) {
String userName = mEtUserPhone.getText().toString().trim();
String pwd = mEtUserPwd.getText().toString().trim();
doLoginApp(userName, pwd);
}
ARouter.getInstance()
.build(PathConfig.PATH_MODULE_GRID_ACTIVITY_NON_PUBLIC_ORG_ADD)
.navigation();
// if (checkUserInputInfo()) {
// String userName = mEtUserPhone.getText().toString().trim();
// String pwd = mEtUserPwd.getText().toString().trim();
// doLoginApp(userName, pwd);
// }
}
/**