Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0d1488b8
由
LN
编写于
2021-04-15 10:18:26 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
bug修改。D7增加当前库位号上传。
1 个父辈
3120190e
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
16 行增加
和
12 行删除
source/AssemblyLineClient/App.config
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblymanager/EDataManager.cs
source/DeviceLibrary/assemblymanager/TrayManager.cs
source/DeviceLibrary/server/BoxInfo.cs
source/DeviceLibrary/server/LineServer.cs
source/LoadCVSLibrary/FileEncoding.cs
source/AssemblyLineClient/App.config
查看文件 @
0d1488b
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
<
add
key
=
"App_AutoRun"
value
=
"0"
/>
<
add
key
=
"App_AutoRun"
value
=
"0"
/>
<
add
key
=
"App_Title"
value
=
"流水线客户端"
/>
<
add
key
=
"App_Title"
value
=
"流水线客户端"
/>
<!--
Server
address
-->
<!--
Server
address
-->
<!--<
add
key
=
"http.server"
value
=
"http://192.168.100.14/myproject/service/store/emptyPosForPutin"
/>-->
<
add
key
=
"http.server"
value
=
"http://192.168.100.14/myproject/"
/>
<
add
key
=
"http.server"
value
=
"http://192.168.100.14/myproject/"
/>
<!--
storeType
-->
<!--
storeType
-->
<
add
key
=
"Line_moveEquip_count"
value
=
"7"
/>
<
add
key
=
"Line_moveEquip_count"
value
=
"7"
/>
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
0d1488b
...
@@ -648,6 +648,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -648,6 +648,8 @@ namespace OnlineStore.DeviceLibrary
if
(
OnlyProOutTray
)
if
(
OnlyProOutTray
)
{
{
InLog
(
"出料移栽 "
+
MoveInfo
.
SLog
+
",提前通知出料机构取料"
);
LineServer
.
StartInStore
(
DeviceID
,
MoveInfo
.
MoveParam
);
string
code
=
MoveInfo
.
MoveParam
.
WareCode
;
string
code
=
MoveInfo
.
MoveParam
.
WareCode
;
if
(
MoveInfo
.
MoveParam
.
IsNG
)
if
(
MoveInfo
.
MoveParam
.
IsNG
)
{
{
...
@@ -661,8 +663,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -661,8 +663,6 @@ namespace OnlineStore.DeviceLibrary
string
msg
=
SServerManager
.
arrive3fRobotLocation
(
Name
,
1
,
code
);
string
msg
=
SServerManager
.
arrive3fRobotLocation
(
Name
,
1
,
code
);
afterPutCutOK
=
true
;
afterPutCutOK
=
true
;
}
}
InLog
(
"出料移栽 "
+
MoveInfo
.
SLog
+
",提前通知出料机构取料"
);
LineServer
.
StartInStore
(
DeviceID
,
MoveInfo
.
MoveParam
);
}
}
else
else
{
{
...
...
source/DeviceLibrary/assemblymanager/EDataManager.cs
查看文件 @
0d1488b
...
@@ -101,7 +101,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -101,7 +101,7 @@ namespace OnlineStore.DeviceLibrary
lineList
.
Add
(
line
);
lineList
.
Add
(
line
);
}
}
}
}
FileEncoding
.
Writ
t
eFile
(
FilePath
,
lineList
.
ToArray
());
FileEncoding
.
WriteFile
(
FilePath
,
lineList
.
ToArray
());
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
source/DeviceLibrary/assemblymanager/TrayManager.cs
查看文件 @
0d1488b
...
@@ -202,7 +202,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -202,7 +202,7 @@ namespace OnlineStore.DeviceLibrary
lineList
.
Add
(
line
);
lineList
.
Add
(
line
);
}
}
}
}
FileEncoding
.
Writ
t
eFile
(
FilePath
,
lineList
.
ToArray
());
FileEncoding
.
WriteFile
(
FilePath
,
lineList
.
ToArray
());
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
source/DeviceLibrary/server/BoxInfo.cs
查看文件 @
0d1488b
...
@@ -71,6 +71,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -71,6 +71,11 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
public
int
HasTray
{
get
;
set
;
}
public
int
HasTray
{
get
;
set
;
}
public
List
<
string
>
WaitInStoreList
=
new
List
<
string
>();
public
List
<
string
>
WaitInStoreList
=
new
List
<
string
>();
/// <summary>
/// 当前出入库的库位号
/// </summary>
public
string
CurrPosId
{
get
;
set
;
}
}
}
}
}
source/DeviceLibrary/server/LineServer.cs
查看文件 @
0d1488b
...
@@ -98,8 +98,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -98,8 +98,9 @@ namespace OnlineStore.DeviceLibrary
LineRunStatus
runs
=
(
LineRunStatus
)
box
.
SRunStatus
;
LineRunStatus
runs
=
(
LineRunStatus
)
box
.
SRunStatus
;
if
(
runs
.
Equals
(
LineRunStatus
.
Busy
))
if
(
runs
.
Equals
(
LineRunStatus
.
Busy
))
{
{
if
(
status
.
Equals
(
LineStatus
.
OutStoreExecute
)
||
status
.
Equals
(
LineStatus
.
OutStoreBoxEnd
)
||
box
.
WaitInStoreList
.
Contains
(
posId
))
bool
isOutP
=
status
.
Equals
(
LineStatus
.
OutStoreExecute
)
||
status
.
Equals
(
LineStatus
.
OutStoreBoxEnd
);
{
if
((
isOutP
&&
box
.
CurrPosId
.
Equals
(
posId
))
||
box
.
WaitInStoreList
.
Contains
(
posId
))
{
return
true
;
return
true
;
}
}
}
}
...
...
source/LoadCVSLibrary/FileEncoding.cs
查看文件 @
0d1488b
...
@@ -9,7 +9,7 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -9,7 +9,7 @@ namespace OnlineStore.LoadCSVLibrary
{
{
public
class
FileEncoding
public
class
FileEncoding
{
{
public
static
bool
Writ
t
eFile
(
string
filePath
,
string
[]
lines
)
public
static
bool
WriteFile
(
string
filePath
,
string
[]
lines
)
{
{
try
try
{
{
...
@@ -43,13 +43,12 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -43,13 +43,12 @@ namespace OnlineStore.LoadCSVLibrary
{
{
File
.
Delete
(
filePath
);
File
.
Delete
(
filePath
);
}
}
File
.
WriteAllLines
(
filePath
,
lines
,
Encoding
.
UTF8
);
File
.
WriteAllLines
(
filePath
,
lines
,
Encoding
.
UTF8
);
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
ex
.
ToString
());
LogUtil
.
error
(
"WriteFile ["
+
filePath
+
"] error :"
+
ex
.
ToString
());
return
false
;
return
false
;
}
}
return
true
;
return
true
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论