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
eb52b136
Commit
eb52b136
authored
Dec 02, 2022
by
zxw
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into zxw
parents
2cad055d
7d51a29f
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
7 行删除
+8
-7
JunmppolicesqlContext.cs
JmpModel/Model/DataContext/JunmppolicesqlContext.cs
+7
-6
CabinetController.cs
JunmpPoliceStation/Controllers/CabinetController.cs
+1
-1
没有找到文件。
JmpModel/Model/DataContext/JunmppolicesqlContext.cs
View file @
eb52b136
...
...
@@ -4,6 +4,7 @@ using System;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
JmpModel.Model
;
using
JmpModel.TempModel
;
namespace
JmpModel.Model.DataContext
{
...
...
@@ -23,6 +24,7 @@ namespace JmpModel.Model.DataContext
public
virtual
DbSet
<
BaseCharge
>
BaseCharges
{
get
;
set
;
}
public
virtual
DbSet
<
BaseJpBag
>
BaseJpBags
{
get
;
set
;
}
public
virtual
DbSet
<
BaseJpBagMap
>
BaseJpBagMaps
{
get
;
set
;
}
public
virtual
DbSet
<
useCountResult
>
useCountResult
{
get
;
set
;
}
public
virtual
DbSet
<
BaseJpCabinet
>
BaseJpCabinets
{
get
;
set
;
}
public
virtual
DbSet
<
BaseJpCabinetInvErrorMsg
>
BaseJpCabinetInvErrorMsgs
{
get
;
set
;
}
public
virtual
DbSet
<
BaseJpCabinetOutinlog
>
BaseJpCabinetOutinlogs
{
get
;
set
;
}
...
...
@@ -129,7 +131,7 @@ namespace JmpModel.Model.DataContext
if
(!
optionsBuilder
.
IsConfigured
)
{
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings.
optionsBuilder
.
UseSqlServer
(
"Data Source=192.168.3.188;Initial Catalog=junmppolicesql
dev
;Persist Security Info=True;User ID=sa;Password=Junmp123"
);
optionsBuilder
.
UseSqlServer
(
"Data Source=192.168.3.188;Initial Catalog=junmppolicesql
1115_3
;Persist Security Info=True;User ID=sa;Password=Junmp123"
);
}
}
...
...
@@ -1091,7 +1093,10 @@ Smart:智能货架
entity
.
Property
(
e
=>
e
.
ParentName
).
IsUnicode
(
false
);
});
modelBuilder
.
Entity
<
useCountResult
>(
entity
=>
{
entity
.
HasNoKey
();
});
modelBuilder
.
Entity
<
ColumnConfig
>(
entity
=>
{
entity
.
Property
(
e
=>
e
.
ColumnName
).
IsUnicode
(
false
);
...
...
@@ -3548,8 +3553,6 @@ Warehouse:仓库");
entity
.
Property
(
e
=>
e
.
Name
).
IsUnicode
(
false
);
entity
.
Property
(
e
=>
e
.
NameJc
).
IsUnicode
(
false
);
entity
.
Property
(
e
=>
e
.
OrgCode
).
IsUnicode
(
false
);
entity
.
Property
(
e
=>
e
.
OrgId
).
IsUnicode
(
false
);
...
...
@@ -3560,8 +3563,6 @@ Warehouse:仓库");
entity
.
Property
(
e
=>
e
.
SizeName
).
IsUnicode
(
false
);
entity
.
Property
(
e
=>
e
.
SortCode
).
IsUnicode
(
false
);
entity
.
Property
(
e
=>
e
.
TypeName
).
IsUnicode
(
false
);
entity
.
Property
(
e
=>
e
.
TypeOneId
).
IsUnicode
(
false
);
...
...
JunmpPoliceStation/Controllers/CabinetController.cs
View file @
eb52b136
...
...
@@ -2889,7 +2889,7 @@ namespace JunmpPoliceStation.Controllers
}
if
(
rebind
.
Equals
(
"true"
))
{
var
CurrentBindEquipments
=
_unitOfWork
.
EquipmentInventoryRepository
.
GetList
(
t
=>
t
.
InventoryState
!=
"loss"
&&
t
.
CabinetId
.
Equals
(
cabinet
.
Id
),
null
,
false
,
param
);
//单警柜的东西
var
CurrentBindEquipments
=
_unitOfWork
.
EquipmentInventoryRepository
.
GetList
(
t
=>
t
.
InventoryState
!=
"loss"
&&
(
t
.
CabinetId
.
Equals
(
cabinet
.
Id
)||
t
.
PoliceCode
==
cabinet
.
BaseJpPolicemen
.
FirstOrDefault
()
.
Id
),
null
,
false
,
param
);
//单警柜的东西
SendMsg
equipmentDic
=
new
SendMsg
();
equipmentDic
.
State
=
"rebind"
;
equipmentDic
.
Msg
=
""
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论