Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liudong1993
Property
Commits
fbf86b1b
Commit
fbf86b1b
authored
Apr 14, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码修复
parent
9bb347eb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
QRCodeHelper.cs
Property.Common/Plugin/QRCodeHelper.cs
+1
-1
PropertyModule.cs
Property.Modele.FixedAssets/PropertyModule.cs
+2
-2
No files found.
Property.Common/Plugin/QRCodeHelper.cs
View file @
fbf86b1b
...
...
@@ -88,7 +88,7 @@ namespace REBORN.Common.Plugin
QRCodeData
codeData
=
generator
.
CreateQrCode
(
url
,
QRCodeGenerator
.
ECCLevel
.
M
,
true
);
QRCoder
.
QRCode
qrcode
=
new
QRCoder
.
QRCode
(
codeData
);
Bitmap
icon
=
new
Bitmap
(
logoPath
);
Bitmap
qrImage
=
qrcode
.
GetGraphic
(
pixel
,
Color
.
Black
,
Color
.
White
,
icon
,
1
5
,
6
,
true
);
Bitmap
qrImage
=
qrcode
.
GetGraphic
(
pixel
,
Color
.
Black
,
Color
.
White
,
icon
,
1
0
,
3
,
true
);
#
region
参数介绍
//GetGraphic方法参数介绍
//pixelsPerModule //生成二维码图片的像素大小 ,我这里设置的是5
...
...
Property.Modele.FixedAssets/PropertyModule.cs
View file @
fbf86b1b
...
...
@@ -657,7 +657,7 @@ namespace Property.Module.FixedAssets
string
logoPath
=
basepath
+
"\\ExportFile\\Branch\\Logo.png"
;
try
{
QRCodeHelper
.
Create_CodeImages
(
"PropertyCheck|Id="
+
demodel
.
Id
,
3
,
logoPath
,
path_server
,
System
.
Drawing
.
Imaging
.
ImageFormat
.
Png
);
QRCodeHelper
.
Create_CodeImages
(
"PropertyCheck|Id="
+
demodel
.
Id
,
5
,
logoPath
,
path_server
,
System
.
Drawing
.
Imaging
.
ImageFormat
.
Png
);
}
catch
(
Exception
ex
)
{
...
...
@@ -743,7 +743,7 @@ namespace Property.Module.FixedAssets
string
logoPath
=
basepath
+
"\\ExportFile\\Branch\\Logo.png"
;
try
{
QRCodeHelper
.
Create_CodeImages
(
"PropertyCheck|Id="
+
PropertyId
,
3
,
logoPath
,
path_server
,
System
.
Drawing
.
Imaging
.
ImageFormat
.
Png
);
QRCodeHelper
.
Create_CodeImages
(
"PropertyCheck|Id="
+
PropertyId
,
5
,
logoPath
,
path_server
,
System
.
Drawing
.
Imaging
.
ImageFormat
.
Png
);
}
catch
(
Exception
ex
)
{
...
...
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