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
25fcbe09
Commit
25fcbe09
authored
Jun 02, 2020
by
宁斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上次清机时间修改
parent
a1de44ce
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
base-module/src/main/java/com/gingersoft/gsa/cloud/base/utils/crash/AppCrashHandler.java
+10
-7
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/SettlementActivity.java
+1
-1
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/SettlementReportActivity.java
+3
-3
main-module/src/main/res/layout/activity_settlement.xml
+1
-1
No files found.
base-module/src/main/java/com/gingersoft/gsa/cloud/base/utils/crash/AppCrashHandler.java
View file @
25fcbe09
...
...
@@ -5,6 +5,7 @@ import android.content.Context;
import
android.os.Build
;
import
android.os.Environment
;
import
android.os.Looper
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.widget.Toast
;
...
...
@@ -201,15 +202,17 @@ public class AppCrashHandler implements UncaughtExceptionHandler {
@Override
public
void
onNext
(
String
data
)
{
BaseResult
result
=
JsonUtils
.
parseObject
(
data
,
BaseResult
.
class
);
if
(
result
.
isSuccess
())
{
//上傳成功后刪除對應文件
for
(
File
dfile
:
file
.
listFiles
())
{
boolean
delete
=
dfile
.
delete
();
LogUtil
.
d
(
TAG
,
"delete result : "
+
delete
);
if
(!
TextUtils
.
isEmpty
(
data
)){
BaseResult
result
=
JsonUtils
.
parseObject
(
data
,
BaseResult
.
class
);
if
(
result
!=
null
&&
result
.
isSuccess
())
{
//上傳成功后刪除對應文件
for
(
File
dfile
:
file
.
listFiles
())
{
boolean
delete
=
dfile
.
delete
();
LogUtil
.
d
(
TAG
,
"delete result : "
+
delete
);
}
}
XLog
.
d
(
TAG
,
"sendFileMultipart onNext: "
+
data
);
}
XLog
.
d
(
TAG
,
"sendFileMultipart onNext: "
+
data
);
}
@Override
...
...
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/SettlementActivity.java
View file @
25fcbe09
...
...
@@ -158,7 +158,7 @@ public class SettlementActivity extends BaseActivity<SettlementPresenter> implem
this
.
mSettlementReportBean
=
datasBean
;
if
(
mSettlementReportBean
.
getRestaurantOperation
()
!=
null
)
{
String
lastSettlementText
=
LanguageUtils
.
get_language_system
(
this
,
""
,
"上次清機時間:"
);
setLastTime
(
lastSettlementText
+
TimeUtils
.
getStringByFormat
(
mSettlementReportBean
.
getRestaurantOperation
().
get
Create
Time
(),
TimeUtils
.
dateFormatYMDHMS
)
);
setLastTime
(
lastSettlementText
+
TimeUtils
.
getStringByFormat
(
mSettlementReportBean
.
getRestaurantOperation
().
get
Operation
Time
(),
TimeUtils
.
dateFormatYMDHMS
)
);
}
}
...
...
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/SettlementReportActivity.java
View file @
25fcbe09
...
...
@@ -284,7 +284,7 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
SettlementReport
.
DataBean
.
RestaurantOperationBean
restaurantOperationBean
=
datasBean
.
getRestaurantOperation
();
if
(
restaurantOperationBean
!=
null
)
{
tv_business_area_title
.
setText
(
dailyBusinessReportText
);
tv_last_time
.
setText
(
lastSettlementText
+
TimeUtils
.
getStringByFormat
(
restaurantOperationBean
.
get
Create
Time
(),
TimeUtils
.
dateFormatYMDHMS
));
tv_last_time
.
setText
(
lastSettlementText
+
TimeUtils
.
getStringByFormat
(
restaurantOperationBean
.
get
Operation
Time
(),
TimeUtils
.
dateFormatYMDHMS
));
}
tv_start_time
.
setText
(
byBusinessDateText
+
datasBean
.
getStartTime
());
...
...
@@ -390,11 +390,11 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
if
(
amount
>
0
)
{
canteenPercentage
=
(
int
)
(
MoneyUtil
.
divide
(
amount
,
voBean
.
getTotamount
(),
2
)
*
100
)
+
""
;
}
if
(!
GsaCloudApplication
.
mV2
.
contains
(
Build
.
MODEL
)
&&
!
GsaCloudApplication
.
mN5
.
contains
(
Build
.
MODEL
))
{
if
(!
GsaCloudApplication
.
mV2
.
contains
(
Build
.
MODEL
)
&&
!
GsaCloudApplication
.
mN5
.
contains
(
Build
.
MODEL
))
{
settlementReportItem5s
.
add
(
new
SectionTextItem5
(
canteenText
,
canteenNum
,
canteenTotamout
,
canteenAveragePrice
,
canteenPercentage
));
}
}
else
{
takeway
Text
=
""
;
canteen
Text
=
""
;
}
//外賣
...
...
main-module/src/main/res/layout/activity_settlement.xml
View file @
25fcbe09
...
...
@@ -17,7 +17,7 @@
android:textColor=
"@color/theme_red_color"
android:gravity=
"center"
android:textSize=
"@dimen/sp_14"
android:text=
"上次清機時間:
2020-3-4 22:00:00
"
android:text=
"上次清機時間:"
android:layout_marginTop=
"@dimen/dp_10"
/>
<com.qmuiteam.qmui.alpha.QMUIAlphaButton
...
...
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