Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FTT_Board
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
Administrator
FTT_Board
Commits
9498540c
Commit
9498540c
authored
Sep 30, 2020
by
朱天博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1sop看板
parent
372faa25
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
65 deletions
+61
-65
FactoryBoardSopController.cs
...TT.Board.Api/Controllers/API/FactoryBoardSopController.cs
+58
-62
FTT.Board.csproj.user
FTT.Board/FTT.Board.Api/FTT.Board.csproj.user
+1
-1
FolderProfile.pubxml.user
....Api/Properties/PublishProfiles/FolderProfile.pubxml.user
+2
-2
No files found.
FTT.Board/FTT.Board.Api/Controllers/API/FactoryBoardSopController.cs
View file @
9498540c
...
@@ -19,64 +19,56 @@ namespace FTT.Board.Controllers.API
...
@@ -19,64 +19,56 @@ namespace FTT.Board.Controllers.API
/// </summary>
/// </summary>
public
ModuleModel
ModuleName
=>
ModuleModel
.
PDM
;
public
ModuleModel
ModuleName
=>
ModuleModel
.
PDM
;
/// <summary>
/// <summary>
///
模糊搜索
列表
///
根据款式号返回
列表
/// </summary>
/// </summary>
/// <param name="request"></param>
/// <param name="request"></param>
/// <returns></returns>
/// <returns></returns>
[
Http
Pos
t
]
[
Http
Ge
t
]
public
string
GetS
earchList
([
FromBody
]
GetSearchListRequest
request
)
public
string
GetS
tyleCodeList
(
string
StyleCode
,
int
PageIndex
,
int
PageSize
)
{
{
DataTable
dataTable
=
Dbo
.
Create
(
this
.
ModuleName
).
GetDataTable
(
$@"
if
(
PageIndex
<
1
)
PageIndex
=
1
;
SELECT DISTINCT * FROM (
if
(
PageSize
<
1
)
PageSize
=
20
;
SELECT a.StyleCode FROM dbo.MES_StyleProcess a
DataSet
dataSet
=
Dbo
.
Create
(
this
.
ModuleName
).
GetDataSet
(
$@"
SELECT DISTINCT * into #Temp FROM (
SELECT a.StyleCode,b.Name AS CustomStyleCode,c.CustomName FROM dbo.MES_StyleProcess a
INNER JOIN dbo.SM_Style b ON a.StyleCode=b.Code
INNER JOIN dbo.SM_Style b ON a.StyleCode=b.Code
INNER JOIN V_PDM_SmStyle_GroupbyCode V ON B.ID=V.id
INNER JOIN dbo.Custom c ON b.CustomID = c.ID WHERE a.WorkSectionID=800
INNER JOIN dbo.Custom c ON b.CustomID = c.ID WHERE a.WorkSectionID=800
UNION
UNION
SELECT b.Code AS StyleCode FROM SM_SampleIE a
SELECT b.Code AS StyleCode,b.Name AS CustomStyleCode,c.CustomName FROM SM_SampleIE a
INNER JOIN dbo.SM_Style b ON b.Code = a.StyleCode
INNER JOIN dbo.SM_Style b ON a.StyleCode=b.Code
INNER JOIN V_PDM_SmStyle_GroupbyCode V ON B.ID=V.id
INNER JOIN dbo.Custom c ON b.CustomID = c.ID WHERE a.WorkSectionID<>800
INNER JOIN dbo.Custom c ON b.CustomID = c.ID WHERE a.WorkSectionID<>800
) a WHERE a.StyleCode LIKE '%
{
request
.
SearchText
}
%'
) a
"
,
true
);
JsonSerializerSettings
jsSettings
=
new
JsonSerializerSettings
();
SELECT * FROM #Temp WHERE StyleCode LIKE '%
{
StyleCode
}
%'
jsSettings
.
ReferenceLoopHandling
=
ReferenceLoopHandling
.
Ignore
;
Order by StyleCode asc OFFSET (
{
PageIndex
}
- 1) *
{
PageSize
}
rows fetch next
{
PageSize
}
rows only
return
JsonConvert
.
SerializeObject
(
Table2Model
.
ToModelList
<
GetStyleCodeListRequest
>(
dataTable
),
jsSettings
).
ToString
();
}
/// <summary>
SELECT COUNT(*) FROM #Temp"
);
/// 根据款式号返回列表
/// </summary>
GetStyleCodeListResponse
model
=
new
GetStyleCodeListResponse
();
/// <param name="request"></param>
model
.
StyleCodeInfos
=
Table2Model
.
ToModelList
<
StyleCodeInfo
>(
dataSet
.
Tables
[
0
]);
/// <returns></returns>
model
.
Total
=
int
.
Parse
(
dataSet
.
Tables
[
1
].
Rows
[
0
][
0
].
ToString
());
[
HttpPost
]
public
string
GetStyleCodeList
([
FromBody
]
GetStyleCodeListRequest
request
)
{
DataTable
dataTable
=
Dbo
.
Create
(
this
.
ModuleName
).
GetDataTable
(
"[SP_APP_StyleIEDefend]"
,
new
{
SearchText
=
request
.
StyleCode
,
Flag
=
0
},
true
);
JsonSerializerSettings
jsSettings
=
new
JsonSerializerSettings
();
JsonSerializerSettings
jsSettings
=
new
JsonSerializerSettings
();
jsSettings
.
ReferenceLoopHandling
=
ReferenceLoopHandling
.
Ignore
;
jsSettings
.
ReferenceLoopHandling
=
ReferenceLoopHandling
.
Ignore
;
return
JsonConvert
.
SerializeObject
(
Table2Model
.
ToModelList
<
GetStyleCodeListResponse
>(
dataTable
)
,
jsSettings
).
ToString
();
return
JsonConvert
.
SerializeObject
(
model
,
jsSettings
).
ToString
();
}
}
/// <summary>
/// <summary>
/// IE详情
/// IE详情
/// </summary>
/// </summary>
/// <param name="request"></param>
/// <param name="request"></param>
/// <returns></returns>
/// <returns></returns>
[
Http
Pos
t
]
[
Http
Ge
t
]
public
string
GetIEStyleInfo
(
[
FromBody
]
GetIEStyleInfoRepuest
request
)
public
string
GetIEStyleInfo
(
string
StyleCode
,
int
WorkSectionID
)
{
{
DataSet
dataSet
=
Dbo
.
Create
(
this
.
ModuleName
).
GetDataSet
(
"[SP_APP_StyleIEDefend]"
,
new
DataSet
dataSet
=
Dbo
.
Create
(
this
.
ModuleName
).
GetDataSet
(
"[SP_APP_StyleIEDefend]"
,
new
{
{
WorkSectionID
=
request
.
WorkSectionID
,
WorkSectionID
=
WorkSectionID
,
StyleCode
=
request
.
StyleCode
,
StyleCode
=
StyleCode
,
Flag
=
1
Flag
=
1
},
true
);
},
true
);
...
@@ -84,6 +76,21 @@ namespace FTT.Board.Controllers.API
...
@@ -84,6 +76,21 @@ namespace FTT.Board.Controllers.API
model
=
Table2Model
.
ToModel
<
GetIEStyleInfoResponse
>(
dataSet
.
Tables
[
0
]);
model
=
Table2Model
.
ToModel
<
GetIEStyleInfoResponse
>(
dataSet
.
Tables
[
0
]);
model
.
IEDetails
=
Table2Model
.
ToModelList
<
IEDetail
>(
dataSet
.
Tables
[
1
]);
model
.
IEDetails
=
Table2Model
.
ToModelList
<
IEDetail
>(
dataSet
.
Tables
[
1
]);
string
strUrl
=
dataSet
.
Tables
[
4
].
Rows
[
0
][
0
].
ToString
();
model
.
IEDetails
.
ForEach
(
item
=>
{
item
.
IEPictures
=
new
List
<
string
>();
if
(!
string
.
IsNullOrEmpty
(
item
.
IEPicture
))
item
.
IEPictures
.
Add
(
strUrl
+
item
.
IEPicture
);
if
(!
string
.
IsNullOrEmpty
(
item
.
IEPicture1
))
item
.
IEPictures
.
Add
(
strUrl
+
item
.
IEPicture1
);
if
(!
string
.
IsNullOrEmpty
(
item
.
IEPicture2
))
item
.
IEPictures
.
Add
(
strUrl
+
item
.
IEPicture2
);
if
(!
string
.
IsNullOrEmpty
(
item
.
IEPicture3
))
item
.
IEPictures
.
Add
(
strUrl
+
item
.
IEPicture3
);
if
(!
string
.
IsNullOrEmpty
(
item
.
IEPicture4
))
item
.
IEPictures
.
Add
(
strUrl
+
item
.
IEPicture4
);
if
(
item
.
PartName
!=
null
&&
item
.
PartName
.
Contains
(
"原材料-"
))
item
.
PartName
=
item
.
PartName
.
Replace
(
"原材料-"
,
""
);
});
JsonSerializerSettings
jsSettings
=
new
JsonSerializerSettings
();
JsonSerializerSettings
jsSettings
=
new
JsonSerializerSettings
();
jsSettings
.
ReferenceLoopHandling
=
ReferenceLoopHandling
.
Ignore
;
jsSettings
.
ReferenceLoopHandling
=
ReferenceLoopHandling
.
Ignore
;
...
@@ -91,18 +98,6 @@ namespace FTT.Board.Controllers.API
...
@@ -91,18 +98,6 @@ namespace FTT.Board.Controllers.API
}
}
/// <summary>
/// 模糊搜索列表
/// </summary>
public
class
GetSearchListRequest
{
/// <summary>
/// 搜索字段
/// </summary>
public
string
SearchText
{
get
;
set
;
}
}
/// <summary>
/// <summary>
/// 根据款式号返回列表
/// 根据款式号返回列表
/// </summary>
/// </summary>
...
@@ -120,26 +115,17 @@ namespace FTT.Board.Controllers.API
...
@@ -120,26 +115,17 @@ namespace FTT.Board.Controllers.API
public
class
GetStyleCodeListResponse
public
class
GetStyleCodeListResponse
{
{
/// <summary>
/// <summary>
///
款式号
///
总页数
/// </summary>
/// </summary>
public
string
StyleCode
{
get
;
set
;
}
public
int
Total
{
get
;
set
;
}
/// <summary>
/// <summary>
///
客户货号
///
货号列表
/// </summary>
/// </summary>
public
string
CustomStyleCode
{
get
;
set
;
}
public
List
<
StyleCodeInfo
>
StyleCodeInfos
{
get
;
set
;
}
/// <summary>
/// 客户名
/// </summary>
public
string
CustomName
{
get
;
set
;
}
}
}
public
class
StyleCodeInfo
/// <summary>
/// 获取IE明细
/// </summary>
public
class
GetIEStyleInfoRepuest
{
{
/// <summary>
/// <summary>
/// 款式号
/// 款式号
...
@@ -147,9 +133,14 @@ namespace FTT.Board.Controllers.API
...
@@ -147,9 +133,14 @@ namespace FTT.Board.Controllers.API
public
string
StyleCode
{
get
;
set
;
}
public
string
StyleCode
{
get
;
set
;
}
/// <summary>
/// <summary>
///
工段 800裁断,801针车,802成型
///
客户货号
/// </summary>
/// </summary>
public
int
WorkSectionID
{
get
;
set
;
}
public
string
CustomStyleCode
{
get
;
set
;
}
/// <summary>
/// 客户名
/// </summary>
public
string
CustomName
{
get
;
set
;
}
}
}
/// <summary>
/// <summary>
...
@@ -268,6 +259,11 @@ namespace FTT.Board.Controllers.API
...
@@ -268,6 +259,11 @@ namespace FTT.Board.Controllers.API
/// 图片4
/// 图片4
/// </summary>
/// </summary>
public
string
IEPicture4
{
get
;
set
;
}
public
string
IEPicture4
{
get
;
set
;
}
/// <summary>
/// 图片数组
/// </summary>
public
List
<
string
>
IEPictures
{
get
;
set
;
}
}
}
}
}
}
}
FTT.Board/FTT.Board.Api/FTT.Board.csproj.user
View file @
9498540c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<IISExpressWindowsAuthentication
/>
<IISExpressWindowsAuthentication
/>
<IISExpressUseClassicPipelineMode
/>
<IISExpressUseClassicPipelineMode
/>
<UseGlobalApplicationHostFile
/>
<UseGlobalApplicationHostFile
/>
<LastActiveSolutionConfig>
Release
|Any CPU
</LastActiveSolutionConfig>
<LastActiveSolutionConfig>
Debug
|Any CPU
</LastActiveSolutionConfig>
<Controller_SelectedScaffolderID>
ApiControllerEmptyScaffolder
</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderID>
ApiControllerEmptyScaffolder
</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>
root/Controller
</Controller_SelectedScaffolderCategoryPath>
<Controller_SelectedScaffolderCategoryPath>
root/Controller
</Controller_SelectedScaffolderCategoryPath>
<WebStackScaffolding_ControllerDialogWidth>
600
</WebStackScaffolding_ControllerDialogWidth>
<WebStackScaffolding_ControllerDialogWidth>
600
</WebStackScaffolding_ControllerDialogWidth>
...
...
FTT.Board/FTT.Board.Api/Properties/PublishProfiles/FolderProfile.pubxml.user
View file @
9498540c
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
<publishTime>
04/17/2019 16:25:52
</publishTime>
<publishTime>
04/17/2019 16:25:52
</publishTime>
</File>
</File>
<File
Include=
"bin/FTT.Board.dll"
>
<File
Include=
"bin/FTT.Board.dll"
>
<publishTime>
09/2
4/2020 16:38:3
1
</publishTime>
<publishTime>
09/2
9/2020 10:33:5
1
</publishTime>
</File>
</File>
<File
Include=
"bin/FTT.Board.EF.dll"
>
<File
Include=
"bin/FTT.Board.EF.dll"
>
<publishTime>
09/24/2020 16:38:31
</publishTime>
<publishTime>
09/24/2020 16:38:31
</publishTime>
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
<publishTime>
09/24/2020 16:38:31
</publishTime>
<publishTime>
09/24/2020 16:38:31
</publishTime>
</File>
</File>
<File
Include=
"bin/FTT.Board.pdb"
>
<File
Include=
"bin/FTT.Board.pdb"
>
<publishTime>
09/2
4/2020 16:38:3
1
</publishTime>
<publishTime>
09/2
9/2020 10:33:5
1
</publishTime>
</File>
</File>
<File
Include=
"bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll"
>
<File
Include=
"bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll"
>
<publishTime>
05/14/2020 15:56:15
</publishTime>
<publishTime>
05/14/2020 15:56:15
</publishTime>
...
...
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