Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
ticket_half_auto
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李佳
ticket_half_auto
Commits
60130e2f
Commit
60130e2f
authored
Oct 26, 2021
by
李佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
半自动版本点击按钮打印报表会上传两次,干掉一次
parent
2e54d381
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
93 deletions
+103
-93
AutoPrintTabPage.cs
ChuPiao.AutoPrint.Desktop/AutoPrint/AutoPrintTabPage.cs
+8
-0
AutoPrintService.cs
ChuPiao.AutoPrint/Services/AutoPrint/AutoPrintService.cs
+95
-93
ChuPiao_Linux.suo
ChuPiao_Linux.suo
+0
-0
No files found.
ChuPiao.AutoPrint.Desktop/AutoPrint/AutoPrintTabPage.cs
View file @
60130e2f
...
@@ -183,11 +183,13 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
...
@@ -183,11 +183,13 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
void
service_PrintTimeReportOver
(
object
sender
,
EventArgs
e
)
void
service_PrintTimeReportOver
(
object
sender
,
EventArgs
e
)
{
{
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
true
;
Logger
.
Log
.
Info
(
"service_PrintTimeReportOver"
);
Logger
.
Log
.
Info
(
"service_PrintTimeReportOver"
);
}
}
void
service_PrintMoneyReportOver
(
object
sender
,
EventArgs
e
)
void
service_PrintMoneyReportOver
(
object
sender
,
EventArgs
e
)
{
{
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
true
;
Logger
.
Log
.
Info
(
"service_PrintMoneyReportOver"
);
Logger
.
Log
.
Info
(
"service_PrintMoneyReportOver"
);
}
}
...
@@ -636,6 +638,7 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
...
@@ -636,6 +638,7 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
}
}
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
false
;
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
false
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
false
;
try
try
{
{
...
@@ -652,6 +655,7 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
...
@@ -652,6 +655,7 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
{
{
MessageService
.
ShowMessage
(
"请选择机器号"
,
"操作提示"
);
MessageService
.
ShowMessage
(
"请选择机器号"
,
"操作提示"
);
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
true
;
return
;
return
;
}
}
}
}
...
@@ -659,12 +663,14 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
...
@@ -659,12 +663,14 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
{
{
LoggingService
.
Error
(
string
.
Concat
(
"上传天报表异常。"
,
ex
));
LoggingService
.
Error
(
string
.
Concat
(
"上传天报表异常。"
,
ex
));
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
true
;
}
}
}
}
void
ToolStripButtonUpdateMoney_Click
(
object
sender
,
EventArgs
e
)
void
ToolStripButtonUpdateMoney_Click
(
object
sender
,
EventArgs
e
)
{
{
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
false
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
false
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
false
;
try
try
{
{
...
@@ -680,6 +686,7 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
...
@@ -680,6 +686,7 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
if
(
selectedMachineNum
==
0
)
if
(
selectedMachineNum
==
0
)
{
{
MessageService
.
ShowMessage
(
"请选择机器号"
,
"操作提示"
);
MessageService
.
ShowMessage
(
"请选择机器号"
,
"操作提示"
);
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
true
;
return
;
return
;
...
@@ -688,6 +695,7 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
...
@@ -688,6 +695,7 @@ namespace ChuPiao.AutoPrint.Desktop.AutoPrint
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LoggingService
.
Error
(
string
.
Concat
(
"上传缴款报表异常。"
,
ex
));
LoggingService
.
Error
(
string
.
Concat
(
"上传缴款报表异常。"
,
ex
));
autoPrintToolStrip
.
ToolStripButtonPrintCurrentDayReport
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
true
;
autoPrintToolStrip
.
ToolStripButtonUpdateMoney
.
Enabled
=
true
;
}
}
...
...
ChuPiao.AutoPrint/Services/AutoPrint/AutoPrintService.cs
View file @
60130e2f
This diff is collapsed.
Click to expand it.
ChuPiao_Linux.suo
View file @
60130e2f
No preview for this file type
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