Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
JunmpPoliceStation
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
zxw
JunmpPoliceStation
Commits
73e44909
Commit
73e44909
authored
Dec 02, 2022
by
zxw
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
f4fbd11d
05ce1804
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
114 行增加
和
24 行删除
+114
-24
.gitattributes
.gitattributes
+63
-0
JmpModel.csproj
JmpModel/JmpModel.csproj
+1
-0
BaseRepository.cs
JmpModel/Model/Repository/BaseRepository.cs
+1
-0
UseCountResult.cs
JmpModel/TempModel/UseCountResult.cs
+3
-5
efpt.config.json
JmpModel/efpt.config.json
+1
-1
TjController.cs
JunmpPoliceStation/Controllers/TjController.cs
+18
-12
JunmpPoliceStation.csproj
JunmpPoliceStation/JunmpPoliceStation.csproj
+1
-1
launchSettings.json
JunmpPoliceStation/Properties/launchSettings.json
+16
-5
appsettings.Development.json
JunmpPoliceStation/appsettings.Development.json
+10
-0
没有找到文件。
.gitattributes
0 → 100644
View file @
73e44909
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
JmpModel/JmpModel.csproj
View file @
73e44909
...
...
@@ -8,6 +8,7 @@
<Compile Remove="Model\DataContext\DbContextExtensions.cs" />
<Compile Remove="Model\DataContext\IJunmppolicesqlContextProcedures.cs" />
<Compile Remove="Model\DataContext\JunmppolicesqlContextProcedures.cs" />
<Compile Remove="Model\UseCountResult.cs" />
</ItemGroup>
<ItemGroup>
...
...
JmpModel/Model/Repository/BaseRepository.cs
View file @
73e44909
using
JmpModel.Model
;
using
JmpModel.Model.DataContext
;
using
JmpModel.TempModel
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore.Infrastructure
;
using
Microsoft.EntityFrameworkCore.Metadata.Internal
;
...
...
JmpModel/Model/UseCountResult.cs
→
JmpModel/
Temp
Model/UseCountResult.cs
View file @
73e44909
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
using
System.Text
;
namespace
JmpModel.Model
namespace
JmpModel.
Temp
Model
{
[
Table
(
"useCount"
)]
public
partial
class
useCountResult
{
[
Column
(
"result"
)]
...
...
JmpModel/efpt.config.json
View file @
73e44909
...
...
@@ -435,7 +435,7 @@
"ObjectType"
:
3
}
],
"UiHint"
:
"
pc.junmppolicesqldev.dbo
"
,
"UiHint"
:
"
PC.junmppolicesqldev
"
,
"UseBoolPropertiesWithoutDefaultSql"
:
false
,
"UseDatabaseNames"
:
false
,
"UseDbContextSplitting"
:
false
,
...
...
JunmpPoliceStation/Controllers/TjController.cs
View file @
73e44909
...
...
@@ -19,6 +19,7 @@ using System.Net.Http;
using
System.Net.WebSockets
;
using
System.Threading.Tasks
;
using
Microsoft.EntityFrameworkCore.Internal
;
using
JmpModel.TempModel
;
namespace
JunmpPoliceStation.Controllers
{
...
...
@@ -606,7 +607,7 @@ namespace JunmpPoliceStation.Controllers
dataList
=
GetClassID
(
orgizationCode
);
dataList
=
dataList
.
ToList
().
Concat
(
ListEq
.
Where
(
c
=>
c
.
Id
.
Equals
(
orgizationCode
))).
ToList
();
Expression
<
Func
<
ViewEquipment
,
bool
>>
expressionPoliceman
=
null
;
string
typeId
=
entity
.
typeId
;
...
...
@@ -633,15 +634,17 @@ namespace JunmpPoliceStation.Controllers
}
List
<
ViewEquipment
>
equipmentList
=
_unitOfWork
.
ViewEquipmentRepository
.
GetList
(
expressionPoliceman
).
OrderBy
(
c
=>
c
.
FindCode
.
Length
).
ToList
();
if
(
findcode
.
Length
==
6
)
{
var
data
=
equipmentList
.
GroupBy
(
t
=>
t
.
Org
Nam
e
).
Select
(
c
=>
new
var
data
=
equipmentList
.
GroupBy
(
t
=>
t
.
Org
Cod
e
).
Select
(
c
=>
new
{
c
.
FirstOrDefault
().
OrgName
,
OrgName
=
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
OrgName
,
NameJc
=
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
NameJc
,
c
.
FirstOrDefault
().
FindCode
,
c
.
FirstOrDefault
().
OrgCode
,
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
null
),
c
.
FirstOrDefault
().
SortCode
,
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
null
&&
f
.
InventoryState
!=
"loss"
),
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)).
Count
(),
ckCount
=
c
.
Where
(
f
=>
!(
f
.
CurrentState
==
null
||
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)
||
f
.
CurrentState
.
Equals
(
6
))).
Count
(),
bfCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
6
)).
Count
(),
...
...
@@ -650,7 +653,7 @@ namespace JunmpPoliceStation.Controllers
{
id
=
c
.
FirstOrDefault
().
EquipmentCode
,
name
=
c
.
FirstOrDefault
().
EquipmentName
,
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
null
),
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
null
&&
f
.
InventoryState
!=
"loss"
),
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)).
Count
(),
ckCount
=
c
.
Where
(
f
=>
!(
f
.
CurrentState
==
null
||
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)
||
f
.
CurrentState
.
Equals
(
6
))).
Count
(),
bfCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
6
)).
Count
(),
...
...
@@ -659,7 +662,7 @@ namespace JunmpPoliceStation.Controllers
}).
ToList
();
data
=
data
.
Where
(
c
=>
c
.
zsCount
!=
0
)
.
OrderBy
(
c
=>
c
.
Find
Code
.
Length
)
.
OrderBy
(
c
=>
c
.
Sort
Code
.
Length
)
.
ThenBy
(
c
=>
c
.
FindCode
)
.
ThenBy
(
c
=>
c
.
OrgCode
)
.
ToList
();
...
...
@@ -679,12 +682,15 @@ namespace JunmpPoliceStation.Controllers
else
{
var
codeLen
=
findcode
.
Length
+
2
;
var
data
=
equipmentList
.
GroupBy
(
t
=>
t
.
FindCode
.
PadLeft
(
codeLen
,
'0'
).
Substring
(
0
,
codeLen
)).
Select
(
c
=>
new
//var data = equipmentList.GroupBy(t => t.FindCode.PadLeft(codeLen, '0').Substring(0, codeLen)).Select(c => new
var
data
=
equipmentList
.
GroupBy
(
t
=>
t
.
OrgCode
).
Select
(
c
=>
new
{
OrgName
=
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
AreaName
,
OrgName
=
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
OrgName
,
NameJc
=
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
NameJc
,
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
FindCode
,
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
OrgCode
,
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
null
),
c
.
FirstOrDefault
().
SortCode
,
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
null
&&
f
.
InventoryState
!=
"loss"
),
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)).
Count
(),
ckCount
=
c
.
Where
(
f
=>
!(
f
.
CurrentState
==
null
||
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)
||
f
.
CurrentState
.
Equals
(
6
))).
Count
(),
bfCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
6
)).
Count
(),
...
...
@@ -693,7 +699,7 @@ namespace JunmpPoliceStation.Controllers
{
id
=
c
.
FirstOrDefault
().
EquipmentCode
,
name
=
c
.
FirstOrDefault
().
EquipmentName
,
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
null
),
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
null
&&
f
.
InventoryState
!=
"loss"
),
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)).
Count
(),
ckCount
=
c
.
Where
(
f
=>
!(
f
.
CurrentState
==
null
||
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)
||
f
.
CurrentState
.
Equals
(
6
))).
Count
(),
bfCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
6
)).
Count
(),
...
...
@@ -702,7 +708,7 @@ namespace JunmpPoliceStation.Controllers
}).
ToList
();
data
=
data
.
Where
(
c
=>
c
.
zsCount
!=
0
)
.
OrderBy
(
c
=>
c
.
Find
Code
.
Length
)
.
OrderBy
(
c
=>
c
.
Sort
Code
.
Length
)
.
ThenBy
(
c
=>
c
.
FindCode
)
.
ThenBy
(
c
=>
c
.
OrgCode
)
.
ToList
();
...
...
JunmpPoliceStation/JunmpPoliceStation.csproj
View file @
73e44909
...
...
@@ -119,7 +119,7 @@
<ProjectReference Include="..\JmpMsgService\JmpMsgService.csproj" />
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties
appsettings_1json__JsonSchema=""
properties_4launchsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
<ProjectExtensions><VisualStudio><UserProperties properties_4launchsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
</Project>
JunmpPoliceStation/Properties/launchSettings.json
View file @
73e44909
{
"iisSettings"
:
{
"windowsAuthentication"
:
fals
e
,
"windowsAuthentication"
:
tru
e
,
"anonymousAuthentication"
:
true
,
"iisExpress"
:
{
"applicationUrl"
:
"http://localhost:5
3692/
"
,
"sslPort"
:
44399
"applicationUrl"
:
"http://localhost:5
000
"
,
"sslPort"
:
5000
}
},
"$schema"
:
"http://json.schemastore.org/launchsettings.json"
,
"profiles"
:
{
"IIS Express"
:
{
"commandName"
:
"IISExpress"
,
"launchBrowser"
:
true
,
"launchUrl"
:
"swagger/index.html"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
},
"applicationUrl"
:
"http://192.168.3.1:5000;http://192.168.10.88:5000;http://localhost:5001;http://localhost:5000;"
},
"JunmpPoliceStation"
:
{
"commandName"
:
"Project"
,
"launchBrowser"
:
true
,
"launchUrl"
:
"swagger/index.html"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
},
"applicationUrl"
:
"http://192.168.3.74:5000;http://localhost:5000"
"applicationUrl"
:
"http://192.168.3.1:5000;http://192.168.10.88:5000;http://localhost:5001;http://localhost:5000;http://0.0.0.0:5001;"
},
"Docker"
:
{
"commandName"
:
"Docker"
,
"launchUrl"
:
"{Scheme}://{ServiceHost}:{ServicePort}"
,
"publishAllPorts"
:
true
,
"useSSL"
:
true
}
}
}
\ No newline at end of file
JunmpPoliceStation/appsettings.Development.json
0 → 100644
View file @
73e44909
{
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Debug"
,
"System"
:
"Information"
,
"Microsoft"
:
"Information"
}
}
}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论