Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王海
TangKuPos
Commits
2dcd04f9
Commit
2dcd04f9
authored
Mar 16, 2018
by
zhang_z
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
094b38f6
49cd5cf6
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
14 deletions
+23
-14
app/libs/zx_print_library-debug.aar
app/libs/zx_print_library-debug.aar
+0
-0
app/src/main/java/com/xingdata/zzdpos/base/BaseDialog.java
app/src/main/java/com/xingdata/zzdpos/base/BaseDialog.java
+11
-4
app/src/main/java/com/xingdata/zzdpos/model/Cs.java
app/src/main/java/com/xingdata/zzdpos/model/Cs.java
+5
-5
app/src/main/java/com/xingdata/zzdpos/ui/dialog/LoadingDialog.java
...ain/java/com/xingdata/zzdpos/ui/dialog/LoadingDialog.java
+2
-2
app/src/main/java/com/xingdata/zzdpos/ui/manage/inventory/adpter/InventoryAdapter.java
...a/zzdpos/ui/manage/inventory/adpter/InventoryAdapter.java
+3
-1
app/src/main/java/com/xingdata/zzdpos/util/SystemUtil.java
app/src/main/java/com/xingdata/zzdpos/util/SystemUtil.java
+2
-2
No files found.
app/libs/zx_print_library-debug.aar
View file @
2dcd04f9
No preview for this file type
app/src/main/java/com/xingdata/zzdpos/base/BaseDialog.java
View file @
2dcd04f9
...
...
@@ -55,6 +55,8 @@ public abstract class BaseDialog<P extends BasePresenter, B extends ViewDataBind
public
boolean
isShowing
;
private
long
recLen
=
-
1
;
private
boolean
shutDown
=
false
;
//强制关闭时间
long
time
=
0
;
static
{
AppCompatDelegate
.
setCompatVectorFromResourcesEnabled
(
true
);
...
...
@@ -302,18 +304,24 @@ public abstract class BaseDialog<P extends BasePresenter, B extends ViewDataBind
}
}
/**
* 强制关闭dialog
*/
public
void
toughDismiss
()
{
if
(
shutDown
)
{
if
(
System
.
currentTimeMillis
()
-
time
<
500
)
{
dismiss
();
}
else
{
if
(
recLen
<=
0
)
{
dismiss
();
}
else
{
ToastUtils
.
showLong
(
recLen
+
"s 后可
关闭"
);
ToastUtils
.
showLong
(
recLen
+
"s 后可关闭,双击返回按钮可强制
关闭"
);
}
}
time
=
System
.
currentTimeMillis
();
}
}
/**
...
...
@@ -343,5 +351,4 @@ public abstract class BaseDialog<P extends BasePresenter, B extends ViewDataBind
mBaseBinding
.
btnConfirm
.
setText
(
OK
);
return
this
;
}
}
\ No newline at end of file
app/src/main/java/com/xingdata/zzdpos/model/Cs.java
View file @
2dcd04f9
...
...
@@ -259,11 +259,11 @@ public class Cs implements BaseOrderPrint, com.xingdata.zzdpos.base.BaseBean {
}
public
String
getOperName
()
{
if
(
operName
==
null
)
{
operName
=
DB
.
getInstance
().
get
(
InventoryPresenter
.
class
).
where
(
Oper
.
class
)
.
equalTo
(
"operId"
,
getCreateOperId
())
.
findFirst
().
getOperName
();
}
//
if (operName == null) {
//
operName = DB.getInstance().get(InventoryPresenter.class).where(Oper.class)
//
.equalTo("operId", getCreateOperId())
//
.findFirst().getOperName();
//
}
return
operName
;
}
@Override
...
...
app/src/main/java/com/xingdata/zzdpos/ui/dialog/LoadingDialog.java
View file @
2dcd04f9
...
...
@@ -31,10 +31,10 @@ public class LoadingDialog extends BaseDialog<BasePresenter, DialogLoadingBindin
this
.
getDialog
().
setOnKeyListener
(
new
DialogInterface
.
OnKeyListener
()
{
@Override
public
boolean
onKey
(
DialogInterface
dialogInterface
,
int
i
,
KeyEvent
keyEvent
)
{
if
(
i
==
keyEvent
.
KEYCODE_BACK
)
{
if
(
i
==
keyEvent
.
KEYCODE_BACK
&&
keyEvent
.
getAction
()
==
KeyEvent
.
ACTION_DOWN
)
{
toughDismiss
();
}
return
tru
e
;
return
fals
e
;
}
});
}
...
...
app/src/main/java/com/xingdata/zzdpos/ui/manage/inventory/adpter/InventoryAdapter.java
View file @
2dcd04f9
...
...
@@ -26,7 +26,9 @@ public class InventoryAdapter extends BaseAdapter<Cs, ItemInventoryBinding> {
@Override
protected
void
convert
(
ItemInventoryBinding
mViewBinding
,
Cs
item
)
{
if
(
item
.
getOperName
()
!=
null
)
{
mViewBinding
.
tvName
.
setText
(
item
.
getOperName
());
}
mViewBinding
.
tvPhone
.
setText
(
item
.
getOper_mobile
());
mViewBinding
.
tvDate
.
setText
(
TimeUtils
.
millis2String
(
item
.
getCreateTime
())
+
""
);
mViewBinding
.
tvNum
.
setText
(
item
.
getCsdetailCount
()
+
""
);
...
...
app/src/main/java/com/xingdata/zzdpos/util/SystemUtil.java
View file @
2dcd04f9
...
...
@@ -29,7 +29,7 @@ public final class SystemUtil {
*/
public
static
String
getDeviceModel
()
{
// return DeviceUtils.getModel();
return
"
AECRC1
0"
;
return
"
X99
0"
;
}
...
...
@@ -57,7 +57,7 @@ public final class SystemUtil {
e
.
printStackTrace
();
}
}
return
"test201
8
"
;
return
"test201
9
"
;
// return deviceSN;
}
...
...
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