Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laisi_AutoMES2
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiawei.su
Laisi_AutoMES2
Commits
350a94ae
Commit
350a94ae
authored
Feb 05, 2021
by
yiyu.li
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://test.siger-data.com:9000/jiawei.su/Laisi_AutoMES2
parents
ca524194
4cfcb355
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
AutomationFixtureToolsCategoryRepository.cs
.../Repositories/AutomationFixtureToolsCategoryRepository.cs
+1
-1
siger_wms_storage_locationRepository.cs
...tory/Repositories/siger_wms_storage_locationRepository.cs
+6
-6
No files found.
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsCategoryRepository.cs
View file @
350a94ae
...
@@ -68,7 +68,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
...
@@ -68,7 +68,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
if
(
string
.
IsNullOrEmpty
(
item
.
Fixture
))
if
(
string
.
IsNullOrEmpty
(
item
.
Fixture
))
{
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
ParameterMiss
}
"
);
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
ParameterMiss
}
"
);
}
}
var
data
=
_context
.
siger_automation_fixture_tools_category
.
FirstOrDefault
(
q
=>
q
.
projectId
==
projectid
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
name
==
item
.
Fixture
);
var
data
=
_context
.
siger_automation_fixture_tools_category
.
FirstOrDefault
(
q
=>
q
.
projectId
==
projectid
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
name
==
item
.
Fixture
);
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.WmsRepository/Repositories/siger_wms_storage_locationRepository.cs
View file @
350a94ae
...
@@ -221,11 +221,13 @@ namespace Siger.Middlelayer.WmsRepository.Repositories
...
@@ -221,11 +221,13 @@ namespace Siger.Middlelayer.WmsRepository.Repositories
if
(!
int
.
TryParse
(
loca
.
ID
,
out
int
id
))
if
(!
int
.
TryParse
(
loca
.
ID
,
out
int
id
))
{
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
PleaseInputNotZeroIntID
}
"
);
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
PleaseInputNotZeroIntID
}
"
);
return
new
CommonImportResult
(
0
,
string
.
Join
(
";"
,
errors
));
}
}
if
(
string
.
IsNullOrEmpty
(
loca
.
StorageName
))
if
(
string
.
IsNullOrEmpty
(
loca
.
StorageName
))
{
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
PleaseInputStorageName
}
"
);
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
PleaseInputStorageName
}
"
);
return
new
CommonImportResult
(
0
,
string
.
Join
(
";"
,
errors
));
}
}
if
(
loca
.
Locations
.
Count
!=
sonLocationTypes
.
Count
)
if
(
loca
.
Locations
.
Count
!=
sonLocationTypes
.
Count
)
...
@@ -238,6 +240,7 @@ namespace Siger.Middlelayer.WmsRepository.Repositories
...
@@ -238,6 +240,7 @@ namespace Siger.Middlelayer.WmsRepository.Repositories
if
(
storage
==
null
)
if
(
storage
==
null
)
{
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
StorageError
}
"
);
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
StorageError
}
"
);
return
new
CommonImportResult
(
0
,
string
.
Join
(
";"
,
errors
));
}
}
else
else
{
{
...
@@ -249,10 +252,12 @@ namespace Siger.Middlelayer.WmsRepository.Repositories
...
@@ -249,10 +252,12 @@ namespace Siger.Middlelayer.WmsRepository.Repositories
if
(
typeId
.
LocationType
==
0
)
if
(
typeId
.
LocationType
==
0
)
{
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
LocationLevelError
}
"
);
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
LocationLevelError
}
"
);
return
new
CommonImportResult
(
0
,
string
.
Join
(
";"
,
errors
));
}
}
if
(
string
.
IsNullOrEmpty
(
typeId
.
Location
))
if
(
string
.
IsNullOrEmpty
(
typeId
.
Location
))
{
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
PleaseInputLocation
}
"
);
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
PleaseInputLocation
}
"
);
return
new
CommonImportResult
(
0
,
string
.
Join
(
";"
,
errors
));
}
}
if
(
storage
!=
null
&&
typeId
.
LocationType
>
0
&&
loca
.
ID
.
ToInt
()
>
0
)
if
(
storage
!=
null
&&
typeId
.
LocationType
>
0
&&
loca
.
ID
.
ToInt
()
>
0
)
{
{
...
@@ -262,16 +267,11 @@ namespace Siger.Middlelayer.WmsRepository.Repositories
...
@@ -262,16 +267,11 @@ namespace Siger.Middlelayer.WmsRepository.Repositories
if
(
locationIdExist
!=
null
||
locations
.
Count
(
q
=>
q
.
StorageName
==
loca
.
StorageName
&&
q
.
ID
==
loca
.
ID
)
>
1
)
if
(
locationIdExist
!=
null
||
locations
.
Count
(
q
=>
q
.
StorageName
==
loca
.
StorageName
&&
q
.
ID
==
loca
.
ID
)
>
1
)
{
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
IDExist
}
"
);
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
IDExist
}
"
);
break
;
return
new
CommonImportResult
(
0
,
string
.
Join
(
";"
,
errors
))
;
}
}
}
}
}
}
if
(
errors
.
Any
())
{
return
new
CommonImportResult
(
0
,
string
.
Join
(
";"
,
errors
));
}
list
.
Add
(
loca
);
list
.
Add
(
loca
);
rowIndex
++;
rowIndex
++;
...
...
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