|
@@ -1,7 +1,6 @@
|
|
|
package com.pan_american.android.ui.workspace
|
|
package com.pan_american.android.ui.workspace
|
|
|
|
|
|
|
|
import android.content.Intent
|
|
import android.content.Intent
|
|
|
-import android.net.Uri
|
|
|
|
|
import android.os.Bundle
|
|
import android.os.Bundle
|
|
|
import android.view.Gravity
|
|
import android.view.Gravity
|
|
|
import android.view.LayoutInflater
|
|
import android.view.LayoutInflater
|
|
@@ -10,6 +9,8 @@ import android.view.View.OnClickListener
|
|
|
import android.view.ViewGroup
|
|
import android.view.ViewGroup
|
|
|
import android.widget.PopupWindow
|
|
import android.widget.PopupWindow
|
|
|
import android.widget.TextView
|
|
import android.widget.TextView
|
|
|
|
|
+import androidx.core.net.toUri
|
|
|
|
|
+import androidx.core.view.isGone
|
|
|
import com.pan_american.android.OASystem
|
|
import com.pan_american.android.OASystem
|
|
|
import com.pan_american.android.R
|
|
import com.pan_american.android.R
|
|
|
import com.pan_american.android.base.BaseFragment
|
|
import com.pan_american.android.base.BaseFragment
|
|
@@ -105,7 +106,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
//财务模块
|
|
//财务模块
|
|
|
OASystem.DAILY_PAYMENT -> {
|
|
OASystem.DAILY_PAYMENT -> {
|
|
|
if (OASystem.authorization(OASystem.DAILY_PAYMENT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.DAILY_PAYMENT, OASystem.VIEW)) {
|
|
|
- if (binding.financialModule.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.financialModule.isGone) {
|
|
|
binding.financialModule.visibility = View.VISIBLE
|
|
binding.financialModule.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.dailyPayment.visibility = View.VISIBLE
|
|
binding.dailyPayment.visibility = View.VISIBLE
|
|
@@ -115,7 +116,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.ACCOUNT_RECEIVABLE_REPORT -> {
|
|
OASystem.ACCOUNT_RECEIVABLE_REPORT -> {
|
|
|
if (OASystem.authorization(OASystem.DAILY_PAYMENT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.DAILY_PAYMENT, OASystem.VIEW)) {
|
|
|
- if (binding.financialModule.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.financialModule.isGone) {
|
|
|
binding.financialModule.visibility = View.VISIBLE
|
|
binding.financialModule.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.accountReceivableReport.visibility = View.VISIBLE
|
|
binding.accountReceivableReport.visibility = View.VISIBLE
|
|
@@ -125,7 +126,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.PAYMENT_REFUND -> {
|
|
OASystem.PAYMENT_REFUND -> {
|
|
|
if (OASystem.authorization(OASystem.DAILY_PAYMENT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.DAILY_PAYMENT, OASystem.VIEW)) {
|
|
|
- if (binding.financialModule.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.financialModule.isGone) {
|
|
|
binding.financialModule.visibility = View.VISIBLE
|
|
binding.financialModule.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.paymentRefund.visibility = View.VISIBLE
|
|
binding.paymentRefund.visibility = View.VISIBLE
|
|
@@ -135,7 +136,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.COLLECTION_BILL -> {
|
|
OASystem.COLLECTION_BILL -> {
|
|
|
if (OASystem.authorization(OASystem.DAILY_PAYMENT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.DAILY_PAYMENT, OASystem.VIEW)) {
|
|
|
- if (binding.financialModule.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.financialModule.isGone) {
|
|
|
binding.financialModule.visibility = View.VISIBLE
|
|
binding.financialModule.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.collectionBill.visibility = View.VISIBLE
|
|
binding.collectionBill.visibility = View.VISIBLE
|
|
@@ -146,7 +147,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
//人事模块
|
|
//人事模块
|
|
|
OASystem.MATERIAL_APPLICATION -> {
|
|
OASystem.MATERIAL_APPLICATION -> {
|
|
|
if (OASystem.authorization(OASystem.MATERIAL_APPLICATION, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.MATERIAL_APPLICATION, OASystem.VIEW)) {
|
|
|
- if (binding.personnelModule.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.personnelModule.isGone) {
|
|
|
binding.personnelModule.visibility = View.VISIBLE
|
|
binding.personnelModule.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.materialOperate.visibility = View.VISIBLE
|
|
binding.materialOperate.visibility = View.VISIBLE
|
|
@@ -157,7 +158,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
//团组酒店
|
|
//团组酒店
|
|
|
OASystem.HOTEL_RESOURCE -> {
|
|
OASystem.HOTEL_RESOURCE -> {
|
|
|
if (OASystem.authorization(OASystem.HOTEL_RESOURCE, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.HOTEL_RESOURCE, OASystem.VIEW)) {
|
|
|
- if (binding.groupHotel.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupHotel.isGone) {
|
|
|
binding.groupHotel.visibility = View.VISIBLE
|
|
binding.groupHotel.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.hotelResource.visibility = View.VISIBLE
|
|
binding.hotelResource.visibility = View.VISIBLE
|
|
@@ -167,7 +168,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.HOTEL_PREDETERMINE -> {
|
|
OASystem.HOTEL_PREDETERMINE -> {
|
|
|
if (OASystem.authorization(OASystem.HOTEL_PREDETERMINE, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.HOTEL_PREDETERMINE, OASystem.VIEW)) {
|
|
|
- if (binding.groupHotel.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupHotel.isGone) {
|
|
|
binding.groupHotel.visibility = View.VISIBLE
|
|
binding.groupHotel.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.hotelPredetermine.visibility = View.VISIBLE
|
|
binding.hotelPredetermine.visibility = View.VISIBLE
|
|
@@ -178,7 +179,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
//团组OP
|
|
//团组OP
|
|
|
OASystem.GUIDE_RESOURCE -> {
|
|
OASystem.GUIDE_RESOURCE -> {
|
|
|
if (OASystem.authorization(OASystem.GUIDE_RESOURCE, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.GUIDE_RESOURCE, OASystem.VIEW)) {
|
|
|
- if (binding.groupOp.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupOp.isGone) {
|
|
|
binding.groupOp.visibility = View.VISIBLE
|
|
binding.groupOp.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.guideResource.visibility = View.VISIBLE
|
|
binding.guideResource.visibility = View.VISIBLE
|
|
@@ -188,7 +189,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.CAR_RESOURCE -> {
|
|
OASystem.CAR_RESOURCE -> {
|
|
|
if (OASystem.authorization(OASystem.CAR_RESOURCE, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.CAR_RESOURCE, OASystem.VIEW)) {
|
|
|
- if (binding.groupOp.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupOp.isGone) {
|
|
|
binding.groupOp.visibility = View.VISIBLE
|
|
binding.groupOp.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.carResource.visibility = View.VISIBLE
|
|
binding.carResource.visibility = View.VISIBLE
|
|
@@ -203,7 +204,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
OASystem.VIEW
|
|
OASystem.VIEW
|
|
|
)
|
|
)
|
|
|
) {
|
|
) {
|
|
|
- if (binding.groupOp.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupOp.isGone) {
|
|
|
binding.groupOp.visibility = View.VISIBLE
|
|
binding.groupOp.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.groundConveyPaymentInsert.visibility = View.VISIBLE
|
|
binding.groundConveyPaymentInsert.visibility = View.VISIBLE
|
|
@@ -214,7 +215,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
//团组商邀公务
|
|
//团组商邀公务
|
|
|
OASystem.INVITE_DATA -> {
|
|
OASystem.INVITE_DATA -> {
|
|
|
if (OASystem.authorization(OASystem.INVITE_DATA, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.INVITE_DATA, OASystem.VIEW)) {
|
|
|
- if (binding.groupInviteOfficial.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupInviteOfficial.isGone) {
|
|
|
binding.groupInviteOfficial.visibility = View.VISIBLE
|
|
binding.groupInviteOfficial.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.inviteData.visibility = View.VISIBLE
|
|
binding.inviteData.visibility = View.VISIBLE
|
|
@@ -224,7 +225,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.INVITE_OFFICIAL_PAYMENT -> {
|
|
OASystem.INVITE_OFFICIAL_PAYMENT -> {
|
|
|
if (OASystem.authorization(OASystem.INVITE_OFFICIAL_PAYMENT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.INVITE_OFFICIAL_PAYMENT, OASystem.VIEW)) {
|
|
|
- if (binding.groupInviteOfficial.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupInviteOfficial.isGone) {
|
|
|
binding.groupInviteOfficial.visibility = View.VISIBLE
|
|
binding.groupInviteOfficial.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.inviteOfficialPayment.visibility = View.VISIBLE
|
|
binding.inviteOfficialPayment.visibility = View.VISIBLE
|
|
@@ -234,7 +235,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.OFFICIAL_VISITS -> {
|
|
OASystem.OFFICIAL_VISITS -> {
|
|
|
if (OASystem.authorization(OASystem.OFFICIAL_VISITS, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.OFFICIAL_VISITS, OASystem.VIEW)) {
|
|
|
- if (binding.groupInviteOfficial.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupInviteOfficial.isGone) {
|
|
|
binding.groupInviteOfficial.visibility = View.VISIBLE
|
|
binding.groupInviteOfficial.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.officialVisits.visibility = View.VISIBLE
|
|
binding.officialVisits.visibility = View.VISIBLE
|
|
@@ -245,7 +246,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
//团组经理主管
|
|
//团组经理主管
|
|
|
OASystem.GROUP_INFORMATION -> {
|
|
OASystem.GROUP_INFORMATION -> {
|
|
|
if (OASystem.authorization(OASystem.GROUP_INFORMATION, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.GROUP_INFORMATION, OASystem.VIEW)) {
|
|
|
- if (binding.groupManager.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupManager.isGone) {
|
|
|
binding.groupManager.visibility = View.VISIBLE
|
|
binding.groupManager.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.groupOperation.visibility = View.VISIBLE
|
|
binding.groupOperation.visibility = View.VISIBLE
|
|
@@ -255,7 +256,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.ENTRY_AND_EXIT_FEE_DETAIL -> {
|
|
OASystem.ENTRY_AND_EXIT_FEE_DETAIL -> {
|
|
|
if (OASystem.authorization(OASystem.ENTRY_AND_EXIT_FEE_DETAIL, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.ENTRY_AND_EXIT_FEE_DETAIL, OASystem.VIEW)) {
|
|
|
- if (binding.groupManager.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupManager.isGone) {
|
|
|
binding.groupManager.visibility = View.VISIBLE
|
|
binding.groupManager.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.entryAndExitFeeDetail.visibility = View.VISIBLE
|
|
binding.entryAndExitFeeDetail.visibility = View.VISIBLE
|
|
@@ -265,7 +266,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.ENTRY_AND_EXIT_FEE_DRAFT -> {
|
|
OASystem.ENTRY_AND_EXIT_FEE_DRAFT -> {
|
|
|
if (OASystem.authorization(OASystem.ENTRY_AND_EXIT_FEE_DRAFT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.ENTRY_AND_EXIT_FEE_DRAFT, OASystem.VIEW)) {
|
|
|
- if (binding.groupManager.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupManager.isGone) {
|
|
|
binding.groupManager.visibility = View.VISIBLE
|
|
binding.groupManager.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.entryAndExitFeeDraft.visibility = View.VISIBLE
|
|
binding.entryAndExitFeeDraft.visibility = View.VISIBLE
|
|
@@ -276,7 +277,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
//团组签证
|
|
//团组签证
|
|
|
OASystem.VISA_PAYMENT_INSERT -> {
|
|
OASystem.VISA_PAYMENT_INSERT -> {
|
|
|
if (OASystem.authorization(OASystem.VISA_PAYMENT_INSERT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.VISA_PAYMENT_INSERT, OASystem.VIEW)) {
|
|
|
- if (binding.groupVisa.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupVisa.isGone) {
|
|
|
binding.groupVisa.visibility = View.VISIBLE
|
|
binding.groupVisa.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.visaPaymentInsert.visibility = View.VISIBLE
|
|
binding.visaPaymentInsert.visibility = View.VISIBLE
|
|
@@ -286,7 +287,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.INSURANCE_PAYMENT_INSERT -> {
|
|
OASystem.INSURANCE_PAYMENT_INSERT -> {
|
|
|
if (OASystem.authorization(OASystem.INSURANCE_PAYMENT_INSERT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.INSURANCE_PAYMENT_INSERT, OASystem.VIEW)) {
|
|
|
- if (binding.groupVisa.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupVisa.isGone) {
|
|
|
binding.groupVisa.visibility = View.VISIBLE
|
|
binding.groupVisa.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.insurancePaymentInsert.visibility = View.VISIBLE
|
|
binding.insurancePaymentInsert.visibility = View.VISIBLE
|
|
@@ -297,7 +298,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
//客户资料模块
|
|
//客户资料模块
|
|
|
OASystem.MARKET_CUSTOMER -> {
|
|
OASystem.MARKET_CUSTOMER -> {
|
|
|
if (OASystem.authorization(OASystem.MARKET_CUSTOMER, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.MARKET_CUSTOMER, OASystem.VIEW)) {
|
|
|
- if (binding.customerResource.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.customerResource.isGone) {
|
|
|
binding.customerResource.visibility = View.VISIBLE
|
|
binding.customerResource.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.companyCustomerResource.visibility = View.VISIBLE
|
|
binding.companyCustomerResource.visibility = View.VISIBLE
|
|
@@ -312,7 +313,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.MARKET_SALES_REVENUE -> {
|
|
OASystem.MARKET_SALES_REVENUE -> {
|
|
|
if (OASystem.authorization(OASystem.MARKET_SALES_REVENUE, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.MARKET_SALES_REVENUE, OASystem.VIEW)) {
|
|
|
- if (binding.customerResource.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.customerResource.isGone) {
|
|
|
binding.customerResource.visibility = View.VISIBLE
|
|
binding.customerResource.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.marketSalesRevenue.visibility = View.VISIBLE
|
|
binding.marketSalesRevenue.visibility = View.VISIBLE
|
|
@@ -322,7 +323,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.RELATED_INVITEE -> {
|
|
OASystem.RELATED_INVITEE -> {
|
|
|
if (OASystem.authorization(OASystem.RELATED_INVITEE, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.RELATED_INVITEE, OASystem.VIEW)) {
|
|
|
- if (binding.customerResource.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.customerResource.isGone) {
|
|
|
binding.customerResource.visibility = View.VISIBLE
|
|
binding.customerResource.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.relatedInvitee.visibility = View.VISIBLE
|
|
binding.relatedInvitee.visibility = View.VISIBLE
|
|
@@ -333,7 +334,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
//团组公共模块
|
|
//团组公共模块
|
|
|
OASystem.BILL_MANAGEMENT -> {
|
|
OASystem.BILL_MANAGEMENT -> {
|
|
|
if (OASystem.authorization(OASystem.BILL_MANAGEMENT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.BILL_MANAGEMENT, OASystem.VIEW)) {
|
|
|
- if (binding.groupCommonModel.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupCommonModel.isGone) {
|
|
|
binding.groupCommonModel.visibility = View.VISIBLE
|
|
binding.groupCommonModel.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.billManagement.visibility = View.VISIBLE
|
|
binding.billManagement.visibility = View.VISIBLE
|
|
@@ -343,7 +344,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.COMMISSION_CONFIRM -> {
|
|
OASystem.COMMISSION_CONFIRM -> {
|
|
|
if (OASystem.authorization(OASystem.BILL_MANAGEMENT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.BILL_MANAGEMENT, OASystem.VIEW)) {
|
|
|
- if (binding.groupCommonModel.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupCommonModel.isGone) {
|
|
|
binding.groupCommonModel.visibility = View.VISIBLE
|
|
binding.groupCommonModel.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.commissionConfirm.visibility = View.VISIBLE
|
|
binding.commissionConfirm.visibility = View.VISIBLE
|
|
@@ -354,7 +355,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
//团组机票
|
|
//团组机票
|
|
|
OASystem.THREE_CODE_RESOURCE -> {
|
|
OASystem.THREE_CODE_RESOURCE -> {
|
|
|
if (OASystem.authorization(OASystem.THREE_CODE_RESOURCE, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.THREE_CODE_RESOURCE, OASystem.VIEW)) {
|
|
|
- if (binding.groupAirplaneTicket.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupAirplaneTicket.isGone) {
|
|
|
binding.groupAirplaneTicket.visibility = View.VISIBLE
|
|
binding.groupAirplaneTicket.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.airplaneThreeCode.visibility = View.VISIBLE
|
|
binding.airplaneThreeCode.visibility = View.VISIBLE
|
|
@@ -364,7 +365,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
OASystem.AIRPLANE_PAYMENT_INSERT -> {
|
|
OASystem.AIRPLANE_PAYMENT_INSERT -> {
|
|
|
if (OASystem.authorization(OASystem.AIRPLANE_PAYMENT_INSERT, OASystem.VIEW)) {
|
|
if (OASystem.authorization(OASystem.AIRPLANE_PAYMENT_INSERT, OASystem.VIEW)) {
|
|
|
- if (binding.groupAirplaneTicket.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.groupAirplaneTicket.isGone) {
|
|
|
binding.groupAirplaneTicket.visibility = View.VISIBLE
|
|
binding.groupAirplaneTicket.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.airplanePaymentInsert.visibility = View.VISIBLE
|
|
binding.airplanePaymentInsert.visibility = View.VISIBLE
|
|
@@ -379,7 +380,7 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (OASystem.userInfo.userId == 21 || OASystem.userInfo.userId == 22) {
|
|
if (OASystem.userInfo.userId == 21 || OASystem.userInfo.userId == 22) {
|
|
|
- if (binding.financialModule.visibility == View.GONE) {
|
|
|
|
|
|
|
+ if (binding.financialModule.isGone) {
|
|
|
binding.financialModule.visibility = View.VISIBLE
|
|
binding.financialModule.visibility = View.VISIBLE
|
|
|
}
|
|
}
|
|
|
binding.expenseApproval.visibility = View.VISIBLE
|
|
binding.expenseApproval.visibility = View.VISIBLE
|
|
@@ -578,7 +579,8 @@ class WorkspaceFragment : BaseFragment<FragmentWorkspaceBinding>(), OnClickListe
|
|
|
|
|
|
|
|
//需求收集
|
|
//需求收集
|
|
|
binding.requireGather.setOnClickListener {
|
|
binding.requireGather.setOnClickListener {
|
|
|
- val uri = Uri.parse("http://oa.pan-american-intl.com:4399/#/MarketplacePick?userid=${OASystem.userInfo.userId}")
|
|
|
|
|
|
|
+ val uri =
|
|
|
|
|
+ "http://oa.pan-american-intl.com:4399/#/MarketplacePick?userid=${OASystem.userInfo.userId}".toUri()
|
|
|
startActivity(Intent(Intent.ACTION_VIEW, uri))
|
|
startActivity(Intent(Intent.ACTION_VIEW, uri))
|
|
|
// val intent = Intent(OASystem.context, RequireGatherActivity::class.java)
|
|
// val intent = Intent(OASystem.context, RequireGatherActivity::class.java)
|
|
|
// startActivity(intent)
|
|
// startActivity(intent)
|