Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
NS100
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 402a8ef0
由
刘韬
编写于
2024-04-16 16:49:12 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
标签数据对接smf
1 个父辈
ace7ed24
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
14 行增加
和
7 行删除
BLL/BLL.csproj
BLL/Extension/Item_General.cs
BLL/ServerCommunication.cs
BLL/UnifiedDataHandler.cs
SmartScan/Form/FrmMain.cs
SmartScan/ScanWork.cs
BLL/BLL.csproj
查看文件 @
402a8ef
...
@@ -135,6 +135,7 @@
...
@@ -135,6 +135,7 @@
<Compile Include="ServerCommunication.cs" />
<Compile Include="ServerCommunication.cs" />
<Compile Include="Setting_Str.cs" />
<Compile Include="Setting_Str.cs" />
<Compile Include="TextBlock.cs" />
<Compile Include="TextBlock.cs" />
<Compile Include="UnifiedDataHandler.cs" />
<Compile Include="UsersLogin.cs" />
<Compile Include="UsersLogin.cs" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
...
...
BLL/Extension/Item_General.cs
查看文件 @
402a8ef
/*
using
System
;
* kaifa
*
*/
using
System
;
using
System.Net
;
using
System.Net
;
using
System.Text
;
using
System.Text
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
...
...
BLL/ServerCommunication.cs
查看文件 @
402a8ef
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
using
Model
;
using
Model
;
using
Newtonsoft.Json
;
using
Newtonsoft.Json
;
using
Newtonsoft.Json.Converters
;
using
Newtonsoft.Json.Converters
;
using
OnlineStore.Common.util
;
using
System
;
using
System
;
using
System.Collections.Concurrent
;
using
System.Collections.Concurrent
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
...
@@ -124,6 +125,7 @@ namespace BLL
...
@@ -124,6 +125,7 @@ namespace BLL
DateTime
time
=
DateTime
.
Now
;
DateTime
time
=
DateTime
.
Now
;
//构建发送给服务器的对象
//构建发送给服务器的对象
Operation
lineOperation
=
getStatus
();
Operation
lineOperation
=
getStatus
();
lineOperation
.
data
=
lineOperation
.
data
.
Union
(
UnifiedDataHandler
.
PrintNgMESData
()).
ToDictionary
(
x
=>
x
.
Key
,
x
=>
x
.
Value
);
var
returntxt
=
Http
.
PostJson
(
GetPostApi
(),
new
Dictionary
<
string
,
string
>(),
lineOperation
,
900
,
false
);
var
returntxt
=
Http
.
PostJson
(
GetPostApi
(),
new
Dictionary
<
string
,
string
>(),
lineOperation
,
900
,
false
);
Operation
resultOperation
=
JsonConvert
.
DeserializeObject
<
Operation
>(
returntxt
);
Operation
resultOperation
=
JsonConvert
.
DeserializeObject
<
Operation
>(
returntxt
);
if
(
resultOperation
==
null
)
if
(
resultOperation
==
null
)
...
@@ -257,6 +259,7 @@ namespace BLL
...
@@ -257,6 +259,7 @@ namespace BLL
public
int
seq
;
public
int
seq
;
public
int
op
;
public
int
op
;
public
List
<
EquipMsg
>
msgList
=
new
List
<
EquipMsg
>();
public
List
<
EquipMsg
>
msgList
=
new
List
<
EquipMsg
>();
public
Dictionary
<
string
,
string
>
data
=
new
Dictionary
<
string
,
string
>();
}
}
public
class
EquipMsg
{
public
class
EquipMsg
{
...
...
BLL/UnifiedDataHandler.cs
0 → 100644
查看文件 @
402a8ef
此文件的差异被折叠,
点击展开。
SmartScan/Form/FrmMain.cs
查看文件 @
402a8ef
...
@@ -3,6 +3,7 @@ using BLL;
...
@@ -3,6 +3,7 @@ using BLL;
using
DocumentFormat.OpenXml.Bibliography
;
using
DocumentFormat.OpenXml.Bibliography
;
using
Model
;
using
Model
;
using
Newtonsoft.Json
;
using
Newtonsoft.Json
;
using
OnlineStore.Common.util
;
using
SmartScan.Form
;
using
SmartScan.Form
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
...
@@ -214,8 +215,11 @@ namespace SmartScan
...
@@ -214,8 +215,11 @@ namespace SmartScan
//Bitmap labelBmp = Common.labelEdit.PrintImage(Common.config.DefaultPrintLabel, content, out _);
//Bitmap labelBmp = Common.labelEdit.PrintImage(Common.config.DefaultPrintLabel, content, out _);
BLLCommon
.
labelEdit
.
PrintLast
(
BLLCommon
.
config
.
DefaultPrintLabel
,
BLLCommon
.
config
.
PrinterName
,
BLLCommon
.
config
.
PrintLandscape
,
content
,
out
string
[]
barcode
);
BLLCommon
.
labelEdit
.
PrintLast
(
BLLCommon
.
config
.
DefaultPrintLabel
,
BLLCommon
.
config
.
PrinterName
,
BLLCommon
.
config
.
PrintLandscape
,
content
,
out
string
[]
barcode
);
LogNet
.
log
.
Info
(
string
.
Format
(
"打印标签 Label[{0}] Printer[{1}]"
,
BLLCommon
.
config
.
DefaultPrintLabel
,
BLLCommon
.
config
.
PrinterName
));
LogNet
.
log
.
Info
(
string
.
Format
(
"打印标签 Label[{0}] Printer[{1}]"
,
BLLCommon
.
config
.
DefaultPrintLabel
,
BLLCommon
.
config
.
PrinterName
));
var
bmp
=
BLLCommon
.
labelEdit
.
PrintImage
(
BLLCommon
.
config
.
DefaultPrintLabel
,
content
,
out
_
);
_
=
UnifiedDataHandler
.
PostSmfImageAsync
(
bmp
,
new
Dictionary
<
string
,
string
>
{
{
"cid"
,
BLLCommon
.
config
.
CID
+
"_2"
}
},
bmp
.
Width
,
bmp
.
Height
);
bmp
.
Dispose
();
//SaveRetrospect(labelBmp, barcode);
//SaveRetrospect(labelBmp, barcode);
UnifiedDataHandler
.
RecordPrintNg
(
false
,
true
,
out
string
[]
strarrys
);
if
(
BLLCommon
.
config
.
PrintCompletedClear
)
if
(
BLLCommon
.
config
.
PrintCompletedClear
)
BLLCommon
.
extension
.
Clear
();
BLLCommon
.
extension
.
Clear
();
}
}
...
...
SmartScan/ScanWork.cs
查看文件 @
402a8ef
using
Asa.FaceControl
;
using
Asa.FaceControl
;
using
BLL
;
using
BLL
;
using
Model
;
using
Model
;
using
OnlineStore.Common.util
;
using
SmartScan.Form
;
using
SmartScan.Form
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
...
@@ -234,7 +235,10 @@ namespace SmartScan
...
@@ -234,7 +235,10 @@ namespace SmartScan
List
<
Bitmap
>
image
=
new
List
<
Bitmap
>(
Camera
.
CaptureAndGetCode
(
out
workCodeInfo
));
List
<
Bitmap
>
image
=
new
List
<
Bitmap
>(
Camera
.
CaptureAndGetCode
(
out
workCodeInfo
));
if
(
image
.
Count
>
0
&&
!
BLL
.
Config
.
Backgrounder
)
picShow
.
Image
=
image
[
0
];
if
(
image
.
Count
>
0
&&
!
BLL
.
Config
.
Backgrounder
)
picShow
.
Image
=
image
[
0
];
if
(
image
.
Count
>
0
)
if
(
image
.
Count
>
0
)
{
BLLCommon
.
mateEdit
.
CurrntBitmap
=
image
[
0
];
BLLCommon
.
mateEdit
.
CurrntBitmap
=
image
[
0
];
_
=
UnifiedDataHandler
.
PostSmfImageAsync
(
BLLCommon
.
mateEdit
.
CurrntBitmap
,
new
Dictionary
<
string
,
string
>
{
{
"cid"
,
BLLCommon
.
config
.
CID
+
"_1"
}
},
BLLCommon
.
mateEdit
.
CurrntBitmap
.
Width
,
BLLCommon
.
mateEdit
.
CurrntBitmap
.
Height
);
}
if
(
BLLCommon
.
config
.
TriggerOpenLight
)
if
(
BLLCommon
.
config
.
TriggerOpenLight
)
BLLCommon
.
lightSource
.
TurnOff
();
BLLCommon
.
lightSource
.
TurnOff
();
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论