Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王宇航
supplier
Commits
4ad0cf15
Commit
4ad0cf15
authored
Jul 21, 2021
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增供應商閃退bug
parent
679817da
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/presenter/NewSupplierPresenter.java
+5
-1
library-ui/src/main/java/com/gingersoft/gsa/cloud/ui/adapter/multi/InputProvider.java
+1
-1
No files found.
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/presenter/NewSupplierPresenter.java
View file @
4ad0cf15
...
@@ -140,20 +140,24 @@ public class NewSupplierPresenter extends BasePresenter<NewSupplierContract.Mode
...
@@ -140,20 +140,24 @@ public class NewSupplierPresenter extends BasePresenter<NewSupplierContract.Mode
MultiInputBean
price
=
new
MultiInputBean
(
InfoMultiBean
.
ITEM_TYPE_INPUT
,
"最低採購金額"
,
false
,
"請輸入最低金額"
,
new
InputFilter
[]{
InputFilterUtils
.
getLengthFilter
(
mContext
,
9
)},
EditorInfo
.
TYPE_CLASS_NUMBER
|
EditorInfo
.
TYPE_NUMBER_FLAG_DECIMAL
);
MultiInputBean
price
=
new
MultiInputBean
(
InfoMultiBean
.
ITEM_TYPE_INPUT
,
"最低採購金額"
,
false
,
"請輸入最低金額"
,
new
InputFilter
[]{
InputFilterUtils
.
getLengthFilter
(
mContext
,
9
)},
EditorInfo
.
TYPE_CLASS_NUMBER
|
EditorInfo
.
TYPE_NUMBER_FLAG_DECIMAL
);
con
.
setOnFocusChangeListener
((
v
,
hasFocus
)
->
{
con
.
setOnFocusChangeListener
((
v
,
hasFocus
)
->
{
if
(
supplierBean
!=
null
)
{
if
(
hasFocus
&&
TextUtil
.
isNotEmptyOrNullOrUndefined
(
supplierBean
.
getContactInformation
()))
{
if
(
hasFocus
&&
TextUtil
.
isNotEmptyOrNullOrUndefined
(
supplierBean
.
getContactInformation
()))
{
supplierBean
.
setContactInformation
(
""
);
supplierBean
.
setContactInformation
(
""
);
infoMultiBeans
.
get
(
telephoneIndex
).
setShowValue
(
""
);
infoMultiBeans
.
get
(
telephoneIndex
).
setShowValue
(
""
);
infoMultiAdapter
.
notifyItemChanged
(
telephoneIndex
);
infoMultiAdapter
.
notifyItemChanged
(
telephoneIndex
);
}
}
}
});
});
price
.
setOnFocusChangeListener
((
v
,
hasFocus
)
->
{
price
.
setOnFocusChangeListener
((
v
,
hasFocus
)
->
{
if
(
supplierBean
!=
null
)
{
String
minimumAmount
=
infoMultiBeans
.
get
(
lowPurchaseAmount
).
getShowValue
();
String
minimumAmount
=
infoMultiBeans
.
get
(
lowPurchaseAmount
).
getShowValue
();
if
(
hasFocus
&&
TextUtil
.
isNotEmptyOrNullOrUndefined
(
minimumAmount
))
{
if
(
hasFocus
&&
TextUtil
.
isNotEmptyOrNullOrUndefined
(
minimumAmount
))
{
supplierBean
.
setMinimumAmount
(
0
d
);
supplierBean
.
setMinimumAmount
(
0
d
);
infoMultiBeans
.
get
(
lowPurchaseAmount
).
setShowValue
(
""
);
infoMultiBeans
.
get
(
lowPurchaseAmount
).
setShowValue
(
""
);
infoMultiAdapter
.
notifyItemChanged
(
lowPurchaseAmount
);
infoMultiAdapter
.
notifyItemChanged
(
lowPurchaseAmount
);
}
}
}
});
});
infoMultiBeans
.
add
(
con
);
infoMultiBeans
.
add
(
con
);
infoMultiBeans
.
add
(
price
);
infoMultiBeans
.
add
(
price
);
...
...
library-ui/src/main/java/com/gingersoft/gsa/cloud/ui/adapter/multi/InputProvider.java
View file @
4ad0cf15
...
@@ -55,7 +55,7 @@ public class InputProvider<T extends InfoMultiBean> extends MyBaseItemProvider<T
...
@@ -55,7 +55,7 @@ public class InputProvider<T extends InfoMultiBean> extends MyBaseItemProvider<T
baseViewHolder
.
setVisible
(
R
.
id
.
tv_expect
,
true
);
baseViewHolder
.
setVisible
(
R
.
id
.
tv_expect
,
true
);
baseViewHolder
.
setText
(
R
.
id
.
tv_expect
,
infoMultiBean
.
getHint
());
baseViewHolder
.
setText
(
R
.
id
.
tv_expect
,
infoMultiBean
.
getHint
());
}
else
{
}
else
{
baseViewHolder
.
setGone
(
R
.
id
.
tv_expect
,
fals
e
);
baseViewHolder
.
setGone
(
R
.
id
.
tv_expect
,
tru
e
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment