1.1.1
This commit is contained in:
parent
2c12943daf
commit
8d549ed082
@ -14,6 +14,7 @@ public class BusInfoBean implements Serializable {
|
|||||||
private String code;
|
private String code;
|
||||||
private String enterpriseName;
|
private String enterpriseName;
|
||||||
private String pwd;
|
private String pwd;
|
||||||
|
private String approvedBy;
|
||||||
private String unifiedSocialCreditCode;//统一社会信用代码
|
private String unifiedSocialCreditCode;//统一社会信用代码
|
||||||
private String nationalClassA;//国家A级
|
private String nationalClassA;//国家A级
|
||||||
private String businessType;//业务类型
|
private String businessType;//业务类型
|
||||||
@ -26,6 +27,14 @@ public class BusInfoBean implements Serializable {
|
|||||||
private String name;//厂区地址
|
private String name;//厂区地址
|
||||||
private ParamsDao params;
|
private ParamsDao params;
|
||||||
|
|
||||||
|
public String getApprovedBy() {
|
||||||
|
return approvedBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApprovedBy(String approvedBy) {
|
||||||
|
this.approvedBy = approvedBy;
|
||||||
|
}
|
||||||
|
|
||||||
public String getUnifiedSocialCreditCode() {
|
public String getUnifiedSocialCreditCode() {
|
||||||
return unifiedSocialCreditCode;
|
return unifiedSocialCreditCode;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import com.dahe.mylibrary.utils.ActivityUtils
|
|||||||
import com.dahe.pass.R
|
import com.dahe.pass.R
|
||||||
import com.dahe.pass.base.AppConfig
|
import com.dahe.pass.base.AppConfig
|
||||||
import com.dahe.pass.bean.BusInfoBean
|
import com.dahe.pass.bean.BusInfoBean
|
||||||
|
import com.dahe.pass.bean.CompanyBean
|
||||||
import com.dahe.pass.bean.JsonBean
|
import com.dahe.pass.bean.JsonBean
|
||||||
import com.dahe.pass.net.BaseObserver
|
import com.dahe.pass.net.BaseObserver
|
||||||
import com.dahe.pass.net.DataManager
|
import com.dahe.pass.net.DataManager
|
||||||
@ -40,6 +41,8 @@ import java.util.ArrayList
|
|||||||
* @Description TODO
|
* @Description TODO
|
||||||
*/
|
*/
|
||||||
class BusinessInfoActivity : BaseActivity(), View.OnClickListener {
|
class BusinessInfoActivity : BaseActivity(), View.OnClickListener {
|
||||||
|
lateinit var curCompanyBean: CompanyBean
|
||||||
|
|
||||||
override fun getLayout() = R.layout.activity_business_info
|
override fun getLayout() = R.layout.activity_business_info
|
||||||
|
|
||||||
override fun initView(savedInstanceState: Bundle?) {
|
override fun initView(savedInstanceState: Bundle?) {
|
||||||
@ -49,6 +52,7 @@ class BusinessInfoActivity : BaseActivity(), View.OnClickListener {
|
|||||||
tv_yszc.setOnClickListener(this)
|
tv_yszc.setOnClickListener(this)
|
||||||
etDj.setOnClickListener(this)
|
etDj.setOnClickListener(this)
|
||||||
etDz.setOnClickListener(this)
|
etDz.setOnClickListener(this)
|
||||||
|
etSpdw.setOnClickListener(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun initDate() {
|
override fun initDate() {
|
||||||
@ -79,9 +83,62 @@ class BusinessInfoActivity : BaseActivity(), View.OnClickListener {
|
|||||||
null,
|
null,
|
||||||
{ position, text -> etDj.text = text }).show()
|
{ position, text -> etDj.text = text }).show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
R.id.etSpdw -> spdw()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun spdw() {
|
||||||
|
KeyboardUtils.hideSoftInput(etQymc)
|
||||||
|
DataManager.getInstance().companyLst()
|
||||||
|
.compose(DataManager.setThread())
|
||||||
|
.subscribe(BaseObserver(mContext, object : RxHttpCallBack<List<CompanyBean>>(this) {
|
||||||
|
override fun onSuccess(t: CommonResponseBean<List<CompanyBean>>) {
|
||||||
|
super.onSuccess(t)
|
||||||
|
val data = t.data
|
||||||
|
|
||||||
|
|
||||||
|
val mutableListOf = mutableListOf<CompanyBean>()
|
||||||
|
val build = OptionsPickerBuilder(mContext
|
||||||
|
) { options1, options2, options3, v -> //返回的分别是三个级别的选中位置
|
||||||
|
curCompanyBean = mutableListOf.get(options1)
|
||||||
|
etSpdw.text = mutableListOf.get(options1).signName
|
||||||
|
}
|
||||||
|
.setTitleText("审批单位")
|
||||||
|
.setContentTextSize(20) //设置滚轮文字大小
|
||||||
|
.setDividerColor(Color.LTGRAY) //设置分割线的颜色
|
||||||
|
.setSelectOptions(0, 1) //默认选中项
|
||||||
|
.setTitleColor(Color.BLACK)
|
||||||
|
.setSubmitColor(Color.parseColor("#F1474B")) //确定按钮文字颜色
|
||||||
|
.setCancelColor(Color.parseColor("#F1474B")) //取消按钮文字颜色
|
||||||
|
.setTitleBgColor(Color.parseColor("#FFFFFF"))
|
||||||
|
.setBgColor(Color.parseColor("#F5F5F5"))
|
||||||
|
.setTextColorCenter(Color.LTGRAY)
|
||||||
|
.isRestoreItem(true) //切换时是否还原,设置默认选中第一项。
|
||||||
|
.isCenterLabel(false) //是否只显示中间选中项的label文字,false则每项item全部都带有label。
|
||||||
|
.setLabels("", "", "")
|
||||||
|
// .setOutSideColor(0x00000000) //设置外部遮罩颜色
|
||||||
|
.setOptionsSelectChangeListener { options1, options2, options3 ->
|
||||||
|
val str =
|
||||||
|
"options1: $options1\noptions2: $options2\noptions3: $options3"
|
||||||
|
// Toast.makeText(this@MainActivity, str, Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
|
.build<CompanyBean>()
|
||||||
|
|
||||||
|
data.forEach {
|
||||||
|
mutableListOf.add(it)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
build.setPicker(mutableListOf)
|
||||||
|
|
||||||
|
build.show()
|
||||||
|
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
fun go() {
|
fun go() {
|
||||||
val qymc = etQymc.text.toString()
|
val qymc = etQymc.text.toString()
|
||||||
// val ywlx = etYwlx.text.toString()
|
// val ywlx = etYwlx.text.toString()
|
||||||
@ -93,16 +150,16 @@ class BusinessInfoActivity : BaseActivity(), View.OnClickListener {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (ywlx.isNullOrEmpty()) {
|
|
||||||
// showToast("请输入业务类型")
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (etDz.isNullOrEmpty()) {
|
if (etDz.isNullOrEmpty()) {
|
||||||
showToast("请输入注册地址")
|
showToast("请输入注册地址")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!::curCompanyBean.isInitialized) {
|
||||||
|
showToast("请完善审批单位")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (etNsr.text.toString().isNullOrEmpty() || etFzr.text.toString().isNullOrEmpty() ||
|
if (etNsr.text.toString().isNullOrEmpty() || etFzr.text.toString().isNullOrEmpty() ||
|
||||||
etFzrPhone.text.toString().isNullOrEmpty() || etDj.text.toString().isNullOrEmpty() ||
|
etFzrPhone.text.toString().isNullOrEmpty() || etDj.text.toString().isNullOrEmpty() ||
|
||||||
etGsdz.text.toString().isNullOrEmpty()
|
etGsdz.text.toString().isNullOrEmpty()
|
||||||
@ -123,6 +180,7 @@ class BusinessInfoActivity : BaseActivity(), View.OnClickListener {
|
|||||||
busInfoBean.unifiedSocialCreditCode = etNsr.text.toString()
|
busInfoBean.unifiedSocialCreditCode = etNsr.text.toString()
|
||||||
busInfoBean.enterpriseName = qymc
|
busInfoBean.enterpriseName = qymc
|
||||||
busInfoBean.nationalClassA = etDj.text.toString()
|
busInfoBean.nationalClassA = etDj.text.toString()
|
||||||
|
busInfoBean.approvedBy = curCompanyBean.sign
|
||||||
// busInfoBean.businessType = ywlx
|
// busInfoBean.businessType = ywlx
|
||||||
busInfoBean.placeOfRegistration = etDz
|
busInfoBean.placeOfRegistration = etDz
|
||||||
busInfoBean.companyAddress = etGsdz.text.toString()
|
busInfoBean.companyAddress = etGsdz.text.toString()
|
||||||
|
BIN
app/src/main/res/drawable-xxhdpi/spdw.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/spdw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 716 B |
@ -151,6 +151,39 @@
|
|||||||
android:maxLines="1"></EditText>
|
android:maxLines="1"></EditText>
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:layout_marginLeft="26dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:layout_marginRight="26dp"
|
||||||
|
android:background="@drawable/shape_gray_bg25"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:paddingLeft="20dp"
|
||||||
|
android:paddingRight="20dp">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/spdw"></ImageView>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:textSize="16dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:id="@+id/etSpdw"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
android:layout_marginLeft="10dp"
|
||||||
|
android:background="@null"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:hint="请选择审批单位"
|
||||||
|
android:maxLength="11"
|
||||||
|
android:maxLines="1"></TextView>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
android:text="通行证编号"
|
android:text="通行证编号"
|
||||||
android:textColor="@color/black"></TextView>
|
android:textColor="@color/black"></TextView>
|
||||||
|
|
||||||
<EditText
|
<TextView
|
||||||
android:id="@+id/tvTxbh"
|
android:id="@+id/tvTxbh"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@ -36,7 +36,7 @@
|
|||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="请输入通行证编号"
|
android:hint="请输入通行证编号"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
android:textSize="14dp"></EditText>
|
android:textSize="14dp"></TextView>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -172,6 +172,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:singleLine="true"
|
||||||
android:hint="请输入车牌号"
|
android:hint="请输入车牌号"
|
||||||
android:paddingRight="6dp"
|
android:paddingRight="6dp"
|
||||||
android:textSize="14dp"></EditText>
|
android:textSize="14dp"></EditText>
|
||||||
@ -378,6 +380,8 @@
|
|||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="请输入起点"
|
android:hint="请输入起点"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:singleLine="true"
|
||||||
android:paddingRight="6dp"
|
android:paddingRight="6dp"
|
||||||
android:textSize="14dp"></EditText>
|
android:textSize="14dp"></EditText>
|
||||||
|
|
||||||
@ -411,6 +415,8 @@
|
|||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="请输入运终点"
|
android:hint="请输入运终点"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:singleLine="true"
|
||||||
android:paddingRight="6dp"
|
android:paddingRight="6dp"
|
||||||
android:textSize="14dp"></EditText>
|
android:textSize="14dp"></EditText>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user