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
f70996c1
Commit
f70996c1
authored
Nov 11, 2024
by
崔婷婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.1.181/root/FTT_Board
parents
5efb00ad
ec36fb26
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
261 additions
and
63 deletions
+261
-63
.gitignore
.gitignore
+1
-0
HelpPageConfig.cs
.../FTT.Board.Api/Areas/HelpPage/App_Start/HelpPageConfig.cs
+4
-1
HelpPageAreaRegistration.cs
.../FTT.Board.Api/Areas/HelpPage/HelpPageAreaRegistration.cs
+5
-0
MultiXmlDocumentationProvider.cs
...Board.Api/Areas/HelpPage/MultiXmlDocumentationProvider.cs
+85
-0
FactoryBoardProductDataController.cs
....Api/Controllers/API/FactoryBoardProductDataController.cs
+106
-13
FTT.Board.csproj
FTT.Board/FTT.Board.Api/FTT.Board.csproj
+8
-4
Web.config
FTT.Board/FTT.Board.Api/Web.config
+41
-34
App.config
FTT.Board/Ftt.Board.EF/App.config
+10
-10
FTT.Board.EF.csproj
FTT.Board/Ftt.Board.EF/FTT.Board.EF.csproj
+1
-1
No files found.
.gitignore
View file @
f70996c1
...
...
@@ -23,3 +23,4 @@
/FTT.Board/.vs/FTT.Board/config/applicationhost.config
/.vs
/FTT.Board/.vs
/FTT.Board/FTT.Board.Api/bin/FTT.Board.xml
FTT.Board/FTT.Board.Api/Areas/HelpPage/App_Start/HelpPageConfig.cs
View file @
f70996c1
...
...
@@ -7,6 +7,7 @@ using System.Collections;
using
System.Collections.Generic
;
using
System.Diagnostics
;
using
System.Diagnostics.CodeAnalysis
;
using
System.IO
;
using
System.Linq
;
using
System.Net.Http.Headers
;
using
System.Reflection
;
...
...
@@ -34,7 +35,9 @@ namespace FTT.Board.Areas.HelpPage
public
static
void
Register
(
HttpConfiguration
config
)
{
//// Uncomment the following to use the documentation from XML documentation file.
//config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml")));
//从bin目录,解析所有文档。
var
fileXmls
=
Directory
.
GetFiles
(
HttpContext
.
Current
.
Server
.
MapPath
(
"~/bin"
),
"*.xml"
,
SearchOption
.
AllDirectories
);
config
.
SetDocumentationProvider
(
new
MultiXmlDocumentationProvider
(
fileXmls
));
//// Uncomment the following to use "sample string" as the sample for all actions that have string as the body parameter or return type.
//// Also, the string arrays will be used for IEnumerable<string>. The sample objects will be serialized into different media type
...
...
FTT.Board/FTT.Board.Api/Areas/HelpPage/HelpPageAreaRegistration.cs
View file @
f70996c1
...
...
@@ -16,6 +16,11 @@ namespace FTT.Board.Areas.HelpPage
public
override
void
RegisterArea
(
AreaRegistrationContext
context
)
{
context
.
MapRoute
(
"HelpPage_ResourceModel"
,
"Help/ResourceModel"
,
new
{
controller
=
"Help"
,
action
=
"ResourceModel"
,
version
=
UrlParameter
.
Optional
});
context
.
MapRoute
(
"HelpPage_Default"
,
"Help/{action}/{apiId}"
,
new
{
controller
=
"Help"
,
action
=
"Index"
,
apiId
=
UrlParameter
.
Optional
});
...
...
FTT.Board/FTT.Board.Api/Areas/HelpPage/MultiXmlDocumentationProvider.cs
0 → 100644
View file @
f70996c1
using
FTT.Board.Areas.HelpPage.ModelDescriptions
;
using
System
;
using
System.Linq
;
using
System.Reflection
;
using
System.Web.Http.Controllers
;
using
System.Web.Http.Description
;
namespace
FTT.Board.Areas.HelpPage
{
/// <summary>A custom <see cref="IDocumentationProvider"/> that reads the API documentation from a collection of XML documentation files.</summary>
public
class
MultiXmlDocumentationProvider
:
IDocumentationProvider
,
IModelDocumentationProvider
{
/*********
** Properties
*********/
/// <summary>The internal documentation providers for specific files.</summary>
private
readonly
XmlDocumentationProvider
[]
Providers
;
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="paths">The physical paths to the XML documents.</param>
public
MultiXmlDocumentationProvider
(
params
string
[]
paths
)
{
this
.
Providers
=
paths
.
Select
(
p
=>
new
XmlDocumentationProvider
(
p
)).
ToArray
();
}
/// <summary>Gets the documentation for a subject.</summary>
/// <param name="subject">The subject to document.</param>
public
string
GetDocumentation
(
MemberInfo
subject
)
{
return
this
.
GetFirstMatch
(
p
=>
p
.
GetDocumentation
(
subject
));
}
/// <summary>Gets the documentation for a subject.</summary>
/// <param name="subject">The subject to document.</param>
public
string
GetDocumentation
(
Type
subject
)
{
return
this
.
GetFirstMatch
(
p
=>
p
.
GetDocumentation
(
subject
));
}
/// <summary>Gets the documentation for a subject.</summary>
/// <param name="subject">The subject to document.</param>
public
string
GetDocumentation
(
HttpControllerDescriptor
subject
)
{
return
this
.
GetFirstMatch
(
p
=>
p
.
GetDocumentation
(
subject
));
}
/// <summary>Gets the documentation for a subject.</summary>
/// <param name="subject">The subject to document.</param>
public
string
GetDocumentation
(
HttpActionDescriptor
subject
)
{
return
this
.
GetFirstMatch
(
p
=>
p
.
GetDocumentation
(
subject
));
}
/// <summary>Gets the documentation for a subject.</summary>
/// <param name="subject">The subject to document.</param>
public
string
GetDocumentation
(
HttpParameterDescriptor
subject
)
{
return
this
.
GetFirstMatch
(
p
=>
p
.
GetDocumentation
(
subject
));
}
/// <summary>Gets the documentation for a subject.</summary>
/// <param name="subject">The subject to document.</param>
public
string
GetResponseDocumentation
(
HttpActionDescriptor
subject
)
{
return
this
.
GetFirstMatch
(
p
=>
p
.
GetDocumentation
(
subject
));
}
/*********
** Private methods
*********/
/// <summary>Get the first valid result from the collection of XML documentation providers.</summary>
/// <param name="expr">The method to invoke.</param>
private
string
GetFirstMatch
(
Func
<
XmlDocumentationProvider
,
string
>
expr
)
{
return
this
.
Providers
.
Select
(
expr
)
.
FirstOrDefault
(
p
=>
!
String
.
IsNullOrWhiteSpace
(
p
));
}
}
}
\ No newline at end of file
FTT.Board/FTT.Board.Api/Controllers/API/FactoryBoardProductDataController.cs
View file @
f70996c1
using
FTT.Board.Common
;
using
FTT.Board.Models
;
using
FttCloud.Public.Database
;
using
Newtonsoft.Json
;
using
System
;
using
System.Collections.Generic
;
using
System.Data
;
using
System.Linq
;
using
System.Net
;
using
System.Net.Http
;
using
System.Web.Http
;
namespace
FTT.Board.Controllers.API
{
/// <summary>
/// 生产数据
/// </summary>
public
class
FactoryBoardProductDataController
:
ApiController
{
/// <summary>
/// 所属模块
/// </summary>
public
ModuleModel
ModuleName
=>
ModuleModel
.
MES
;
#
region
Get
/// <summary>
/// 获取生产数据
/// </summary>
/// <param name="WorkTeamID"></param>
/// <returns></returns>
public
string
Get
(
int
WorkTeamID
)
{
FactoryBoardProductDataResponse
model
=
GetJson
(
WorkTeamID
);
return
model
.
ToString
();
}
/// <summary>
/// 获取生产数据
/// </summary>
/// <param name="WorkTeamID">车间小组ID</param>
/// <param name="PageSize">每页行数</param>
/// <param name="PageIndex">页码</param>
/// <returns></returns>
public
FactoryBoardProductDataResponse
GetJson
(
int
WorkTeamID
,
int
PageSize
=
4
,
int
PageIndex
=
1
)
{
if
(
PageSize
<=
0
)
PageSize
=
20
;
if
(
PageIndex
<=
1
)
PageIndex
=
1
;
FactoryBoardProductDataResponse
model
=
new
FactoryBoardProductDataResponse
();
DataSet
dataSet
=
Dbo
.
Create
(
ModuleName
).
GetDataSet
(
"[SP_KB_ProductionDataBoard]"
,
new
{
WorkTeamID
=
WorkTeamID
WorkTeamID
=
WorkTeamID
,
PageSize
=
PageSize
,
PageIndex
=
PageIndex
},
true
);
//model.TitleList = Table2Model.ToModel<TitleList>(dataSet.Tables[0]);
model
.
Statisticss
=
Table2Model
.
ToModel
<
Statistics
>(
dataSet
.
Tables
[
0
]);
model
.
QIDetails
=
Table2Model
.
ToModelList
<
QIDetail
>(
dataSet
.
Tables
[
2
]);
model
.
TimeYieldDetails
=
Table2Model
.
ToModelList
<
TimeYieldDetail
>(
dataSet
.
Tables
[
3
]);
return
model
.
ToString
();
model
.
QIDetails
=
Table2Model
.
ToModelList
<
QIDetail
>(
dataSet
.
Tables
[
1
]);
model
.
TimeYieldDetails
=
Table2Model
.
ToModelList
<
TimeYieldDetail
>(
dataSet
.
Tables
[
2
]);
model
.
ProOrderTotal
=
(
int
)
dataSet
.
Tables
[
3
].
Rows
[
0
][
0
];
model
.
ProOrders
=
Table2Model
.
ToModelList
<
ProPlan
>(
dataSet
.
Tables
[
4
]);
return
model
;
}
#
endregion
#
region
数据模型
/// <summary>
/// 生产数据响应模型
/// </summary>
public
class
FactoryBoardProductDataResponse
{
/// <summary>
...
...
@@ -44,11 +79,24 @@ namespace FTT.Board.Controllers.API
public
List
<
TimeYieldDetail
>
TimeYieldDetails
{
get
;
set
;
}
/// <summary>
///
客户样品总数
///
不良品明细
/// </summary>
public
List
<
QIDetail
>
QIDetails
{
get
;
set
;
}
/// <summary>
/// 派工单总数
/// </summary>
public
int
ProOrderTotal
{
get
;
set
;
}
/// <summary>
/// 派工单信息,分页查询
/// </summary>
public
List
<
ProPlan
>
ProOrders
{
get
;
set
;
}
/// <summary>
/// <inheritdoc/>
/// </summary>
/// <returns></returns>
public
override
string
ToString
()
{
JsonSerializerSettings
jsSettings
=
new
JsonSerializerSettings
();
...
...
@@ -66,6 +114,7 @@ namespace FTT.Board.Controllers.API
/// 标题
/// </summary>
public
string
Title
{
get
;
set
;
}
/// <summary>
/// 今日产量
/// </summary>
...
...
@@ -82,14 +131,17 @@ namespace FTT.Board.Controllers.API
/// 直通率
/// </summary>
public
string
DayThroughRate
{
get
;
set
;
}
/// <summary>
///
成品入库量
///
今日计划
/// </summary>
public
int
DayStockInQty
{
get
;
set
;
}
public
int
DayPlanQty
{
get
;
set
;
}
/// <summary>
/// 节拍时间
/// </summary>
public
string
DaySwayedTime
{
get
;
set
;
}
/// <summary>
/// 月产量
/// </summary>
...
...
@@ -167,7 +219,48 @@ namespace FTT.Board.Controllers.API
/// </summary>
public
int
Count
{
get
;
set
;
}
}
}
/// <summary>
/// 派工单信息
/// </summary>
public
class
ProPlan
{
/// <summary>
/// 指令号
/// </summary>
public
string
IndexNo
{
get
;
set
;
}
/// <summary>
/// 颜色
/// </summary>
public
string
ColorName
{
get
;
set
;
}
/// <summary>
/// 轮次
/// </summary>
public
string
RoundNo
{
get
;
set
;
}
/// <summary>
/// 计划日期
/// </summary>
public
string
PlanDate
{
get
;
set
;
}
/// <summary>
/// 计划量
/// </summary>
public
int
Qty
{
get
;
set
;
}
/// <summary>
/// 完成量
/// </summary>
public
int
StockInCount
{
get
;
set
;
}
/// <summary>
/// 状态
/// </summary>
public
string
State
{
get
;
set
;
}
}
#
endregion
}
}
FTT.Board/FTT.Board.Api/FTT.Board.csproj
View file @
f70996c1
...
...
@@ -15,7 +15,7 @@
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
FTT.Board
</RootNamespace>
<AssemblyName>
FTT.Board
</AssemblyName>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
<TargetFrameworkVersion>
v4.5
.2
</TargetFrameworkVersion>
<MvcBuildViews>
false
</MvcBuildViews>
<UseIISExpress>
true
</UseIISExpress>
<Use64BitIISExpress
/>
...
...
@@ -26,6 +26,7 @@
<UseGlobalApplicationHostFile
/>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile
/>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<DebugSymbols>
true
</DebugSymbols>
...
...
@@ -35,6 +36,7 @@
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DocumentationFile>
bin\FTT.Board.xml
</DocumentationFile>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugSymbols>
true
</DebugSymbols>
...
...
@@ -64,15 +66,15 @@
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Data.DataSetExtensions"
/>
<Reference
Include=
"System.Drawing"
/>
<Reference
Include=
"System.Web.DynamicData"
/>
<Reference
Include=
"System.Web.Entity"
/>
<Reference
Include=
"System.Web.ApplicationServices"
/>
<Reference
Include=
"System.ComponentModel.DataAnnotations"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Data.DataSetExtensions"
/>
<Reference
Include=
"System.Xml.Linq"
/>
<Reference
Include=
"System.Web"
/>
<Reference
Include=
"System.Web.Abstractions"
/>
<Reference
Include=
"System.Web.Extensions"
/>
<Reference
Include=
"System.Web.Routing"
/>
<Reference
Include=
"System.Xml"
/>
<Reference
Include=
"System.Configuration"
/>
...
...
@@ -121,6 +123,7 @@
<Private>
True
</Private>
<HintPath>
..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.Razor.dll
</HintPath>
</Reference>
<Reference
Include=
"System.Xml.Linq"
/>
<Reference
Include=
"WebGrease"
>
<Private>
True
</Private>
<HintPath>
..\packages\WebGrease.1.6.0\lib\WebGrease.dll
</HintPath>
...
...
@@ -155,6 +158,7 @@
<Compile
Include=
"Areas\HelpPage\ModelDescriptions\ParameterDescription.cs"
/>
<Compile
Include=
"Areas\HelpPage\ModelDescriptions\SimpleTypeModelDescription.cs"
/>
<Compile
Include=
"Areas\HelpPage\Models\HelpPageApiModel.cs"
/>
<Compile
Include=
"Areas\HelpPage\MultiXmlDocumentationProvider.cs"
/>
<Compile
Include=
"Areas\HelpPage\SampleGeneration\HelpPageSampleGenerator.cs"
/>
<Compile
Include=
"Areas\HelpPage\SampleGeneration\HelpPageSampleKey.cs"
/>
<Compile
Include=
"Areas\HelpPage\SampleGeneration\ImageSample.cs"
/>
...
...
FTT.Board/FTT.Board.Api/Web.config
View file @
f70996c1
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
?>
<!--
有关如何配置
ASP
.
NET
应用程序的详细信息,请访问
https
://
go
.
microsoft
.
com
/
fwlink
/?
LinkId
=
301879
-->
<
configuration
>
<
appSettings
>
<
add
key
=
"webpages:Version"
value
=
"3.0.0.0"
/>
<
add
key
=
"webpages:Enabled"
value
=
"false"
/>
<
add
key
=
"ClientValidationEnabled"
value
=
"true"
/>
<
add
key
=
"UnobtrusiveJavaScriptEnabled"
value
=
"true"
/>
<
add
key
=
"webpages:Version"
value
=
"3.0.0.0"
/>
<
add
key
=
"webpages:Enabled"
value
=
"false"
/>
<
add
key
=
"ClientValidationEnabled"
value
=
"true"
/>
<
add
key
=
"UnobtrusiveJavaScriptEnabled"
value
=
"true"
/>
<!--<
add
key
=
"db"
value
=
"Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=FTT_Board;Data Source=192.168.1.204"
/>-->
<
add
key
=
"db"
value
=
"Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=FTT_MES;Data Source=192.168.1.204"
/>
<
add
key
=
"db_mes"
value
=
"Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=FTT_MES;Data Source=192.168.1.204"
/>
<
add
key
=
"db_pdm"
value
=
"Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=FTT_PDM;Data Source=192.168.1.204"
/>
<
add
key
=
"db"
value
=
"Password=a*1;Persist Security Info=True;User ID=sa;Initial Catalog=FTT_MES;Data Source=jhdsoft.gicp.net,3031"
/>
<
add
key
=
"db_mes"
value
=
"Password=a*1;Persist Security Info=True;User ID=sa;Initial Catalog=FTT_MES;Data Source=jhdsoft.gicp.net,3031"
/>
<
add
key
=
"db_pdm"
value
=
"Password=a*1;Persist Security Info=True;User ID=sa;Initial Catalog=FTT_PDM;Data Source=jhdsoft.gicp.net,3031"
/>
</
appSettings
>
<
connectionStrings
>
<
add
name
=
"BoardModelContainer"
connectionString
=
"metadata=res://*/BoardModel.csdl|res://*/BoardModel.ssdl|res://*/BoardModel.msl;provider=System.Data.SqlClient;provider connection string="data source=192.168.1.204;initial catalog=FTT_Board;persist security info=True;user id=sa;password=sa;MultipleActiveResultSets=True;App=EntityFramework""
providerName
=
"System.Data.EntityClient"
/>
<
connectionStrings
>
<
add
name
=
"BoardModelContainer"
connectionString
=
"metadata=res://*/BoardModel.csdl|res://*/BoardModel.ssdl|res://*/BoardModel.msl;provider=System.Data.SqlClient;provider connection string="data source=192.168.1.204;initial catalog=FTT_Board;persist security info=True;user id=sa;password=sa;MultipleActiveResultSets=True;App=EntityFramework""
providerName
=
"System.Data.EntityClient"
/>
</
connectionStrings
>
<!--
有关
web
.
config
更改的说明,请参见
http
://
go
.
microsoft
.
com
/
fwlink
/?
LinkId
=
235367
。
可在 <
httpRuntime
> 标记上设置以下特性。
<
system
.
Web
>
<
httpRuntime
targetFramework
=
"4.8"
/>
</
system
.
Web
>
-->
<
system
.
web
>
<
compilation
debug
=
"true"
targetFramework
=
"4.5
"
/>
<
httpRuntime
targetFramework
=
"4.5"
/>
<
compilation
debug
=
"true"
targetFramework
=
"4.5
.2"
/>
<
httpRuntime
targetFramework
=
"4.5"
/>
</
system
.
web
>
<
system
.
webServer
>
<
handlers
>
<
remove
name
=
"ExtensionlessUrlHandler-Integrated-4.0"
/>
<
remove
name
=
"OPTIONSVerbHandler"
/>
<
remove
name
=
"TRACEVerbHandler"
/>
<
add
name
=
"ExtensionlessUrlHandler-Integrated-4.0"
path
=
"*."
verb
=
"*"
type
=
"System.Web.Handlers.TransferRequestHandler"
preCondition
=
"integratedMode,runtimeVersionv4.0"
/>
<
remove
name
=
"ExtensionlessUrlHandler-Integrated-4.0"
/>
<
remove
name
=
"OPTIONSVerbHandler"
/>
<
remove
name
=
"TRACEVerbHandler"
/>
<
add
name
=
"ExtensionlessUrlHandler-Integrated-4.0"
path
=
"*."
verb
=
"*"
type
=
"System.Web.Handlers.TransferRequestHandler"
preCondition
=
"integratedMode,runtimeVersionv4.0"
/>
</
handlers
>
</
system
.
webServer
>
<
runtime
>
<
assemblyBinding
xmlns
=
"urn:schemas-microsoft-com:asm.v1"
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"Antlr3.Runtime"
publicKeyToken
=
"eb42632606e9261f"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-3.5.0.2"
newVersion
=
"3.5.0.2"
/>
<
assemblyIdentity
name
=
"Antlr3.Runtime"
publicKeyToken
=
"eb42632606e9261f"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-3.5.0.2"
newVersion
=
"3.5.0.2"
/>
</
dependentAssembly
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"Newtonsoft.Json"
culture
=
"neutral"
publicKeyToken
=
"30ad4fe6b2a6aeed"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-12.0.0.0"
newVersion
=
"12.0.0.0"
/>
<
assemblyIdentity
name
=
"Newtonsoft.Json"
culture
=
"neutral"
publicKeyToken
=
"30ad4fe6b2a6aeed"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-12.0.0.0"
newVersion
=
"12.0.0.0"
/>
</
dependentAssembly
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"System.Web.Optimization"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"1.0.0.0-1.1.0.0"
newVersion
=
"1.1.0.0"
/>
<
assemblyIdentity
name
=
"System.Web.Optimization"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"1.0.0.0-1.1.0.0"
newVersion
=
"1.1.0.0"
/>
</
dependentAssembly
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"WebGrease"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-1.6.5135.21930"
newVersion
=
"1.6.5135.21930"
/>
<
assemblyIdentity
name
=
"WebGrease"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-1.6.5135.21930"
newVersion
=
"1.6.5135.21930"
/>
</
dependentAssembly
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"System.Web.Helpers"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"1.0.0.0-3.0.0.0"
newVersion
=
"3.0.0.0"
/>
<
assemblyIdentity
name
=
"System.Web.Helpers"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"1.0.0.0-3.0.0.0"
newVersion
=
"3.0.0.0"
/>
</
dependentAssembly
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"System.Web.WebPages"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"1.0.0.0-3.0.0.0"
newVersion
=
"3.0.0.0"
/>
<
assemblyIdentity
name
=
"System.Web.WebPages"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"1.0.0.0-3.0.0.0"
newVersion
=
"3.0.0.0"
/>
</
dependentAssembly
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"System.Web.Mvc"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"1.0.0.0-5.2.4.0"
newVersion
=
"5.2.4.0"
/>
<
assemblyIdentity
name
=
"System.Web.Mvc"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"1.0.0.0-5.2.4.0"
newVersion
=
"5.2.4.0"
/>
</
dependentAssembly
>
</
assemblyBinding
>
</
runtime
>
<
system
.
codedom
>
<
compilers
>
<
compiler
language
=
"c#;cs;csharp"
extension
=
".cs"
type
=
"Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel
=
"4"
compilerOptions
=
"/langversion:6 /nowarn:1659;1699;1701"
/>
<
compiler
language
=
"vb;vbs;visualbasic;vbscript"
extension
=
".vb"
type
=
"Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel
=
"4"
compilerOptions
=
"/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"
/>
<
compiler
language
=
"c#;cs;csharp"
extension
=
".cs"
type
=
"Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel
=
"4"
compilerOptions
=
"/langversion:6 /nowarn:1659;1699;1701"
/>
<
compiler
language
=
"vb;vbs;visualbasic;vbscript"
extension
=
".vb"
type
=
"Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel
=
"4"
compilerOptions
=
"/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"
/>
</
compilers
>
</
system
.
codedom
>
</
configuration
>
</
configuration
>
\ No newline at end of file
FTT.Board/Ftt.Board.EF/App.config
View file @
f70996c1
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
configSections
>
<
section
name
=
"entityFramework"
type
=
"System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission
=
"false"
/>
<
section
name
=
"entityFramework"
type
=
"System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission
=
"false"
/>
<!--
For
more
information
on
Entity
Framework
configuration
,
visit
http
://
go
.
microsoft
.
com
/
fwlink
/?
LinkID
=
237468
-->
</
configSections
>
<
entityFramework
>
<
defaultConnectionFactory
type
=
"System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"
/>
<
defaultConnectionFactory
type
=
"System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"
/>
<
providers
>
<
provider
invariantName
=
"System.Data.SqlClient"
type
=
"System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"
/>
<
provider
invariantName
=
"System.Data.SqlClient"
type
=
"System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"
/>
</
providers
>
</
entityFramework
>
<
connectionStrings
>
<
add
name
=
"BoardModelContainer"
connectionString
=
"metadata=res://*/BoardModel.csdl|res://*/BoardModel.ssdl|res://*/BoardModel.msl;provider=System.Data.SqlClient;provider connection string="data source=192.168.1.204;initial catalog=FTT_Board;persist security info=True;user id=sa;password=sa;MultipleActiveResultSets=True;App=EntityFramework""
providerName
=
"System.Data.EntityClient"
/>
<
add
name
=
"BoardModelContainer"
connectionString
=
"metadata=res://*/BoardModel.csdl|res://*/BoardModel.ssdl|res://*/BoardModel.msl;provider=System.Data.SqlClient;provider connection string="data source=192.168.1.204;initial catalog=FTT_Board;persist security info=True;user id=sa;password=sa;MultipleActiveResultSets=True;App=EntityFramework""
providerName
=
"System.Data.EntityClient"
/>
</
connectionStrings
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.5
"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.5
.2"
/>
</
startup
>
<
appSettings
>
<
add
key
=
"aspnet:RoslynCompilerLocation"
value
=
"roslyn"
/>
<
add
key
=
"aspnet:RoslynCompilerLocation"
value
=
"roslyn"
/>
</
appSettings
>
<
system
.
codedom
>
<
compilers
>
<
compiler
language
=
"c#;cs;csharp"
extension
=
".cs"
type
=
"Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel
=
"4"
compilerOptions
=
"/langversion:6 /nowarn:1659;1699;1701"
/>
<
compiler
language
=
"vb;vbs;visualbasic;vbscript"
extension
=
".vb"
type
=
"Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel
=
"4"
compilerOptions
=
"/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"
/>
<
compiler
language
=
"c#;cs;csharp"
extension
=
".cs"
type
=
"Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel
=
"4"
compilerOptions
=
"/langversion:6 /nowarn:1659;1699;1701"
/>
<
compiler
language
=
"vb;vbs;visualbasic;vbscript"
extension
=
".vb"
type
=
"Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel
=
"4"
compilerOptions
=
"/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"
/>
</
compilers
>
</
system
.
codedom
>
</
configuration
>
\ No newline at end of file
</
configuration
>
FTT.Board/Ftt.Board.EF/FTT.Board.EF.csproj
View file @
f70996c1
...
...
@@ -10,7 +10,7 @@
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
FTT.Board.EF
</RootNamespace>
<AssemblyName>
FTT.Board.EF
</AssemblyName>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
<TargetFrameworkVersion>
v4.5
.2
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<TargetFrameworkProfile
/>
<NuGetPackageImportStamp>
...
...
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