修改文件
This commit is contained in:
parent
9ec3334f37
commit
5366d036a7
|
@ -0,0 +1,317 @@
|
|||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v6.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v6.0": {
|
||||
"Competition.Common/1.0.0": {
|
||||
"dependencies": {
|
||||
"NPOI": "2.5.2",
|
||||
"Newtonsoft.Json": "13.0.1",
|
||||
"Portable.BouncyCastle": "1.9.0",
|
||||
"SkiaSharp": "2.88.8",
|
||||
"System.Drawing.Common": "8.0.3",
|
||||
"zKeyAccess": "1.0.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"Competition.Common.dll": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/2.0.0": {},
|
||||
"Microsoft.Win32.SystemEvents/8.0.0": {
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.Win32.SystemEvents.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/win/lib/net6.0/Microsoft.Win32.SystemEvents.dll": {
|
||||
"rid": "win",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Newtonsoft.Json/13.0.1": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/Newtonsoft.Json.dll": {
|
||||
"assemblyVersion": "13.0.0.0",
|
||||
"fileVersion": "13.0.1.25517"
|
||||
}
|
||||
}
|
||||
},
|
||||
"NPOI/2.5.2": {
|
||||
"dependencies": {
|
||||
"Portable.BouncyCastle": "1.9.0",
|
||||
"SharpZipLib": "1.2.0",
|
||||
"System.Configuration.ConfigurationManager": "4.5.0",
|
||||
"System.Drawing.Common": "8.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.1/NPOI.OOXML.dll": {
|
||||
"assemblyVersion": "2.5.2.0",
|
||||
"fileVersion": "2.5.2.0"
|
||||
},
|
||||
"lib/netstandard2.1/NPOI.OpenXml4Net.dll": {
|
||||
"assemblyVersion": "2.5.2.0",
|
||||
"fileVersion": "2.5.2.0"
|
||||
},
|
||||
"lib/netstandard2.1/NPOI.OpenXmlFormats.dll": {
|
||||
"assemblyVersion": "2.5.2.0",
|
||||
"fileVersion": "2.5.2.0"
|
||||
},
|
||||
"lib/netstandard2.1/NPOI.dll": {
|
||||
"assemblyVersion": "2.5.2.0",
|
||||
"fileVersion": "2.5.2.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Portable.BouncyCastle/1.9.0": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/BouncyCastle.Crypto.dll": {
|
||||
"assemblyVersion": "1.9.0.0",
|
||||
"fileVersion": "1.9.0.1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SharpZipLib/1.2.0": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/ICSharpCode.SharpZipLib.dll": {
|
||||
"assemblyVersion": "1.2.0.246",
|
||||
"fileVersion": "1.2.0.246"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SkiaSharp/2.88.8": {
|
||||
"dependencies": {
|
||||
"SkiaSharp.NativeAssets.Win32": "2.88.8",
|
||||
"SkiaSharp.NativeAssets.macOS": "2.88.8"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/SkiaSharp.dll": {
|
||||
"assemblyVersion": "2.88.0.0",
|
||||
"fileVersion": "2.88.8.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SkiaSharp.NativeAssets.macOS/2.88.8": {
|
||||
"runtimeTargets": {
|
||||
"runtimes/osx/native/libSkiaSharp.dylib": {
|
||||
"rid": "osx",
|
||||
"assetType": "native",
|
||||
"fileVersion": "0.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SkiaSharp.NativeAssets.Win32/2.88.8": {
|
||||
"runtimeTargets": {
|
||||
"runtimes/win-arm64/native/libSkiaSharp.dll": {
|
||||
"rid": "win-arm64",
|
||||
"assetType": "native",
|
||||
"fileVersion": "0.0.0.0"
|
||||
},
|
||||
"runtimes/win-x64/native/libSkiaSharp.dll": {
|
||||
"rid": "win-x64",
|
||||
"assetType": "native",
|
||||
"fileVersion": "0.0.0.0"
|
||||
},
|
||||
"runtimes/win-x86/native/libSkiaSharp.dll": {
|
||||
"rid": "win-x86",
|
||||
"assetType": "native",
|
||||
"fileVersion": "0.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Configuration.ConfigurationManager/4.5.0": {
|
||||
"dependencies": {
|
||||
"System.Security.Cryptography.ProtectedData": "4.5.0",
|
||||
"System.Security.Permissions": "4.5.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/System.Configuration.ConfigurationManager.dll": {
|
||||
"assemblyVersion": "4.0.1.0",
|
||||
"fileVersion": "4.6.26515.6"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Drawing.Common/8.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.Win32.SystemEvents": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/System.Drawing.Common.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.324.11603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Security.AccessControl/4.5.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "2.0.0",
|
||||
"System.Security.Principal.Windows": "4.5.0"
|
||||
}
|
||||
},
|
||||
"System.Security.Cryptography.ProtectedData/4.5.0": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
|
||||
"assemblyVersion": "4.0.3.0",
|
||||
"fileVersion": "4.6.26515.6"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
|
||||
"rid": "win",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "4.0.3.0",
|
||||
"fileVersion": "4.6.26515.6"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Security.Permissions/4.5.0": {
|
||||
"dependencies": {
|
||||
"System.Security.AccessControl": "4.5.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/System.Security.Permissions.dll": {
|
||||
"assemblyVersion": "4.0.1.0",
|
||||
"fileVersion": "4.6.26515.6"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Security.Principal.Windows/4.5.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "2.0.0"
|
||||
}
|
||||
},
|
||||
"zKeyAccess/1.0.0.0": {
|
||||
"runtime": {
|
||||
"zKeyAccess.dll": {
|
||||
"assemblyVersion": "1.0.0.0",
|
||||
"fileVersion": "1.0.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Competition.Common/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/2.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-VdLJOCXhZaEMY7Hm2GKiULmn7IEPFE4XC5LPSfBVCUIA8YLZVh846gtfBJalsPQF2PlzdD7ecX7DZEulJ402ZQ==",
|
||||
"path": "microsoft.netcore.platforms/2.0.0",
|
||||
"hashPath": "microsoft.netcore.platforms.2.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Win32.SystemEvents/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-9opKRyOKMCi2xJ7Bj7kxtZ1r9vbzosMvRrdEhVhDz8j8MoBGgB+WmC94yH839NPH+BclAjtQ/pyagvi/8gDLkw==",
|
||||
"path": "microsoft.win32.systemevents/8.0.0",
|
||||
"hashPath": "microsoft.win32.systemevents.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"Newtonsoft.Json/13.0.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==",
|
||||
"path": "newtonsoft.json/13.0.1",
|
||||
"hashPath": "newtonsoft.json.13.0.1.nupkg.sha512"
|
||||
},
|
||||
"NPOI/2.5.2": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-UNKwT9LX/9TFsEPLUebhdS9IHpQdg33s0eRpkEt/cnNU1O/ioOFnLebEMpaPuiW7efahu6SDCxBJLh5NmXksOw==",
|
||||
"path": "npoi/2.5.2",
|
||||
"hashPath": "npoi.2.5.2.nupkg.sha512"
|
||||
},
|
||||
"Portable.BouncyCastle/1.9.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-eZZBCABzVOek+id9Xy04HhmgykF0wZg9wpByzrWN7q8qEI0Qen9b7tfd7w8VA3dOeesumMG7C5ZPy0jk7PSRHw==",
|
||||
"path": "portable.bouncycastle/1.9.0",
|
||||
"hashPath": "portable.bouncycastle.1.9.0.nupkg.sha512"
|
||||
},
|
||||
"SharpZipLib/1.2.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-zvWa/L02JHNatdtjya6Swpudb2YEHaOLHL1eRrqpjm71iGRNUNONO5adUF/9CHbSJbzhELW1UoH4NGy7n7+3bQ==",
|
||||
"path": "sharpziplib/1.2.0",
|
||||
"hashPath": "sharpziplib.1.2.0.nupkg.sha512"
|
||||
},
|
||||
"SkiaSharp/2.88.8": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-bRkp3uKp5ZI8gXYQT57uKwil1uobb2p8c69n7v5evlB/2JNcMAXVcw9DZAP5Ig3WSvgzGm2YSn27UVeOi05NlA==",
|
||||
"path": "skiasharp/2.88.8",
|
||||
"hashPath": "skiasharp.2.88.8.nupkg.sha512"
|
||||
},
|
||||
"SkiaSharp.NativeAssets.macOS/2.88.8": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-6Kn5TSkKlfyS6azWHF3Jk2sW5C4jCE5uSshM/5AbfFrR+5n6qM5XEnz9h4VaVl7LTxBvHvMkuPb/3bpbq0vxTw==",
|
||||
"path": "skiasharp.nativeassets.macos/2.88.8",
|
||||
"hashPath": "skiasharp.nativeassets.macos.2.88.8.nupkg.sha512"
|
||||
},
|
||||
"SkiaSharp.NativeAssets.Win32/2.88.8": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-O9QXoWEXA+6cweR4h3BOnwMz+pO9vL9mXdjLrpDd0w1QzCgWmLQBxa1VgySDITiH7nQndrDG1h6937zm9pLj1Q==",
|
||||
"path": "skiasharp.nativeassets.win32/2.88.8",
|
||||
"hashPath": "skiasharp.nativeassets.win32.2.88.8.nupkg.sha512"
|
||||
},
|
||||
"System.Configuration.ConfigurationManager/4.5.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-UIFvaFfuKhLr9u5tWMxmVoDPkFeD+Qv8gUuap4aZgVGYSYMdERck4OhLN/2gulAc0nYTEigWXSJNNWshrmxnng==",
|
||||
"path": "system.configuration.configurationmanager/4.5.0",
|
||||
"hashPath": "system.configuration.configurationmanager.4.5.0.nupkg.sha512"
|
||||
},
|
||||
"System.Drawing.Common/8.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-oDE9duAtHhxYJM2bsOlZCLBKdorU9DTV1tw7Mlc+VIT7HgwO5ddfOHk/An8C+fAS9oKdmn2PaIA5t1b484uz8g==",
|
||||
"path": "system.drawing.common/8.0.3",
|
||||
"hashPath": "system.drawing.common.8.0.3.nupkg.sha512"
|
||||
},
|
||||
"System.Security.AccessControl/4.5.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-vW8Eoq0TMyz5vAG/6ce483x/CP83fgm4SJe5P8Tb1tZaobcvPrbMEL7rhH1DRdrYbbb6F0vq3OlzmK0Pkwks5A==",
|
||||
"path": "system.security.accesscontrol/4.5.0",
|
||||
"hashPath": "system.security.accesscontrol.4.5.0.nupkg.sha512"
|
||||
},
|
||||
"System.Security.Cryptography.ProtectedData/4.5.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-wLBKzFnDCxP12VL9ANydSYhk59fC4cvOr9ypYQLPnAj48NQIhqnjdD2yhP8yEKyBJEjERWS9DisKL7rX5eU25Q==",
|
||||
"path": "system.security.cryptography.protecteddata/4.5.0",
|
||||
"hashPath": "system.security.cryptography.protecteddata.4.5.0.nupkg.sha512"
|
||||
},
|
||||
"System.Security.Permissions/4.5.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-9gdyuARhUR7H+p5CjyUB/zPk7/Xut3wUSP8NJQB6iZr8L3XUXTMdoLeVAg9N4rqF8oIpE7MpdqHdDHQ7XgJe0g==",
|
||||
"path": "system.security.permissions/4.5.0",
|
||||
"hashPath": "system.security.permissions.4.5.0.nupkg.sha512"
|
||||
},
|
||||
"System.Security.Principal.Windows/4.5.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-U77HfRXlZlOeIXd//Yoj6Jnk8AXlbeisf1oq1os+hxOGVnuG+lGSfGqTwTZBoORFF6j/0q7HXIl8cqwQ9aUGqQ==",
|
||||
"path": "system.security.principal.windows/4.5.0",
|
||||
"hashPath": "system.security.principal.windows.4.5.0.nupkg.sha512"
|
||||
},
|
||||
"zKeyAccess/1.0.0.0": {
|
||||
"type": "reference",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
f928bd61b10f33ea4b0089d1c9e8c63acdf7a9c7
|
|
@ -0,0 +1,14 @@
|
|||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\bin\Debug\net6.0\Competition.Common.deps.json
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\bin\Debug\net6.0\Competition.Common.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\bin\Debug\net6.0\Competition.Common.pdb
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\bin\Debug\net6.0\zKeyAccess.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\obj\Debug\net6.0\Competition.Common.csproj.AssemblyReference.cache
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\obj\Debug\net6.0\Competition.Common.GeneratedMSBuildEditorConfig.editorconfig
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\obj\Debug\net6.0\Competition.Common.AssemblyInfoInputs.cache
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\obj\Debug\net6.0\Competition.Common.AssemblyInfo.cs
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\obj\Debug\net6.0\Competition.Common.csproj.CoreCompileInputs.cache
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\obj\Debug\net6.0\Competition.Common.csproj.CopyComplete
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\obj\Debug\net6.0\Competition.Common.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\obj\Debug\net6.0\refint\Competition.Common.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\obj\Debug\net6.0\Competition.Common.pdb
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Common\obj\Debug\net6.0\ref\Competition.Common.dll
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -15,127 +15,172 @@
|
|||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
namespace Competition.Mysql.Model
|
||||
using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using Maticsoft.Common;
|
||||
using Competition.Mysql.Model;
|
||||
namespace Competition.Mysql.BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// v_model_version:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// v_model_version
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class v_model_version
|
||||
{
|
||||
private readonly Competition.Mysql.DAL.v_model_version dal=new Competition.Mysql.DAL.v_model_version();
|
||||
public v_model_version()
|
||||
{}
|
||||
#region Model
|
||||
private string _modelid;
|
||||
private string _monitor_id;
|
||||
private string _modelname;
|
||||
private string _versionnumber;
|
||||
private string _maplongitude;
|
||||
private string _maplatitude;
|
||||
private string _trainingsize;
|
||||
private string _modelresources;
|
||||
private DateTime _updatetime;
|
||||
private string _remark1;
|
||||
private string _remark2;
|
||||
private string _remark3;
|
||||
#region BasicMethod
|
||||
/// <summary>
|
||||
///
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public string ModelId
|
||||
public bool Exists(string ModelId)
|
||||
{
|
||||
set{ _modelid=value;}
|
||||
get{return _modelid;}
|
||||
return dal.Exists(ModelId);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MONITOR_ID
|
||||
{
|
||||
set{ _monitor_id=value;}
|
||||
get{return _monitor_id;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ModelName
|
||||
{
|
||||
set{ _modelname=value;}
|
||||
get{return _modelname;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string VersionNumber
|
||||
{
|
||||
set{ _versionnumber=value;}
|
||||
get{return _versionnumber;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MapLongitude
|
||||
{
|
||||
set{ _maplongitude=value;}
|
||||
get{return _maplongitude;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MapLatitude
|
||||
{
|
||||
set{ _maplatitude=value;}
|
||||
get{return _maplatitude;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string TrainingSize
|
||||
{
|
||||
set{ _trainingsize=value;}
|
||||
get{return _trainingsize;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ModelResources
|
||||
{
|
||||
set{ _modelresources=value;}
|
||||
get{return _modelresources;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
set{ _updatetime=value;}
|
||||
get{return _updatetime;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark1
|
||||
{
|
||||
set{ _remark1=value;}
|
||||
get{return _remark1;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark2
|
||||
{
|
||||
set{ _remark2=value;}
|
||||
get{return _remark2;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark3
|
||||
{
|
||||
set{ _remark3=value;}
|
||||
get{return _remark3;}
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(Competition.Mysql.Model.v_model_version model)
|
||||
{
|
||||
return dal.Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(Competition.Mysql.Model.v_model_version model)
|
||||
{
|
||||
return dal.Update(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string ModelId)
|
||||
{
|
||||
|
||||
return dal.Delete(ModelId);
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string ModelIdlist )
|
||||
{
|
||||
return dal.DeleteList(ModelIdlist );
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public Competition.Mysql.Model.v_model_version GetModel(string ModelId)
|
||||
{
|
||||
|
||||
return dal.GetModel(ModelId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体,从缓存中
|
||||
/// </summary>
|
||||
public Competition.Mysql.Model.v_model_version GetModelByCache(string ModelId)
|
||||
{
|
||||
|
||||
string CacheKey = "v_model_versionModel-" + ModelId;
|
||||
object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
|
||||
if (objModel == null)
|
||||
{
|
||||
try
|
||||
{
|
||||
objModel = dal.GetModel(ModelId);
|
||||
if (objModel != null)
|
||||
{
|
||||
int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
|
||||
Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
|
||||
}
|
||||
}
|
||||
catch{}
|
||||
}
|
||||
return (Competition.Mysql.Model.v_model_version)objModel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
return dal.GetList(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得前几行数据
|
||||
/// </summary>
|
||||
public DataSet GetList(int Top,string strWhere,string filedOrder)
|
||||
{
|
||||
return dal.GetList(Top,strWhere,filedOrder);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<Competition.Mysql.Model.v_model_version> GetModelList(string strWhere)
|
||||
{
|
||||
DataSet ds = dal.GetList(strWhere);
|
||||
return DataTableToList(ds.Tables[0]);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<Competition.Mysql.Model.v_model_version> DataTableToList(DataTable dt)
|
||||
{
|
||||
List<Competition.Mysql.Model.v_model_version> modelList = new List<Competition.Mysql.Model.v_model_version>();
|
||||
int rowsCount = dt.Rows.Count;
|
||||
if (rowsCount > 0)
|
||||
{
|
||||
Competition.Mysql.Model.v_model_version model;
|
||||
for (int n = 0; n < rowsCount; n++)
|
||||
{
|
||||
model = dal.DataRowToModel(dt.Rows[n]);
|
||||
if (model != null)
|
||||
{
|
||||
modelList.Add(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
return modelList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetAllList()
|
||||
{
|
||||
return GetList("");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
return dal.GetRecordCount(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
return dal.GetListByPage( strWhere, orderby, startIndex, endIndex);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
//{
|
||||
//return dal.GetList(PageSize,PageIndex,strWhere);
|
||||
//}
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,91 +15,172 @@
|
|||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
namespace Competition.Mysql.Model
|
||||
using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using Maticsoft.Common;
|
||||
using Competition.Mysql.Model;
|
||||
namespace Competition.Mysql.BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// v_starter_version:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// v_starter_version
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class v_starter_version
|
||||
{
|
||||
private readonly Competition.Mysql.DAL.v_starter_version dal=new Competition.Mysql.DAL.v_starter_version();
|
||||
public v_starter_version()
|
||||
{}
|
||||
#region Model
|
||||
private string _starterid;
|
||||
private string _softwarename;
|
||||
private string _versionnumber;
|
||||
private string _launcherresources;
|
||||
private string _updateresources;
|
||||
private string _remark1;
|
||||
private string _remark2;
|
||||
private string _remark3;
|
||||
#region BasicMethod
|
||||
/// <summary>
|
||||
///
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public string StarterId
|
||||
public bool Exists(string StarterId)
|
||||
{
|
||||
set{ _starterid=value;}
|
||||
get{return _starterid;}
|
||||
return dal.Exists(StarterId);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SoftwareName
|
||||
{
|
||||
set{ _softwarename=value;}
|
||||
get{return _softwarename;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string VersionNumber
|
||||
{
|
||||
set{ _versionnumber=value;}
|
||||
get{return _versionnumber;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LauncherResources
|
||||
{
|
||||
set{ _launcherresources=value;}
|
||||
get{return _launcherresources;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string UpdateResources
|
||||
{
|
||||
set{ _updateresources=value;}
|
||||
get{return _updateresources;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark1
|
||||
{
|
||||
set{ _remark1=value;}
|
||||
get{return _remark1;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark2
|
||||
{
|
||||
set{ _remark2=value;}
|
||||
get{return _remark2;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark3
|
||||
{
|
||||
set{ _remark3=value;}
|
||||
get{return _remark3;}
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(Competition.Mysql.Model.v_starter_version model)
|
||||
{
|
||||
return dal.Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(Competition.Mysql.Model.v_starter_version model)
|
||||
{
|
||||
return dal.Update(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string StarterId)
|
||||
{
|
||||
|
||||
return dal.Delete(StarterId);
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string StarterIdlist )
|
||||
{
|
||||
return dal.DeleteList(StarterIdlist );
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public Competition.Mysql.Model.v_starter_version GetModel(string StarterId)
|
||||
{
|
||||
|
||||
return dal.GetModel(StarterId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体,从缓存中
|
||||
/// </summary>
|
||||
public Competition.Mysql.Model.v_starter_version GetModelByCache(string StarterId)
|
||||
{
|
||||
|
||||
string CacheKey = "v_starter_versionModel-" + StarterId;
|
||||
object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
|
||||
if (objModel == null)
|
||||
{
|
||||
try
|
||||
{
|
||||
objModel = dal.GetModel(StarterId);
|
||||
if (objModel != null)
|
||||
{
|
||||
int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
|
||||
Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
|
||||
}
|
||||
}
|
||||
catch{}
|
||||
}
|
||||
return (Competition.Mysql.Model.v_starter_version)objModel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
return dal.GetList(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得前几行数据
|
||||
/// </summary>
|
||||
public DataSet GetList(int Top,string strWhere,string filedOrder)
|
||||
{
|
||||
return dal.GetList(Top,strWhere,filedOrder);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<Competition.Mysql.Model.v_starter_version> GetModelList(string strWhere)
|
||||
{
|
||||
DataSet ds = dal.GetList(strWhere);
|
||||
return DataTableToList(ds.Tables[0]);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<Competition.Mysql.Model.v_starter_version> DataTableToList(DataTable dt)
|
||||
{
|
||||
List<Competition.Mysql.Model.v_starter_version> modelList = new List<Competition.Mysql.Model.v_starter_version>();
|
||||
int rowsCount = dt.Rows.Count;
|
||||
if (rowsCount > 0)
|
||||
{
|
||||
Competition.Mysql.Model.v_starter_version model;
|
||||
for (int n = 0; n < rowsCount; n++)
|
||||
{
|
||||
model = dal.DataRowToModel(dt.Rows[n]);
|
||||
if (model != null)
|
||||
{
|
||||
modelList.Add(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
return modelList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetAllList()
|
||||
{
|
||||
return GetList("");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
return dal.GetRecordCount(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
return dal.GetListByPage( strWhere, orderby, startIndex, endIndex);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
//{
|
||||
//return dal.GetList(PageSize,PageIndex,strWhere);
|
||||
//}
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,127 +15,380 @@
|
|||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
namespace Competition.Mysql.Model
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using System.Data.SqlClient;
|
||||
using Maticsoft.DBUtility;//Please add references
|
||||
namespace Competition.Mysql.DAL
|
||||
{
|
||||
/// <summary>
|
||||
/// v_model_version:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// 数据访问类:v_model_version
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class v_model_version
|
||||
{
|
||||
public v_model_version()
|
||||
{}
|
||||
#region Model
|
||||
private string _modelid;
|
||||
private string _monitor_id;
|
||||
private string _modelname;
|
||||
private string _versionnumber;
|
||||
private string _maplongitude;
|
||||
private string _maplatitude;
|
||||
private string _trainingsize;
|
||||
private string _modelresources;
|
||||
private DateTime _updatetime;
|
||||
private string _remark1;
|
||||
private string _remark2;
|
||||
private string _remark3;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ModelId
|
||||
{
|
||||
set{ _modelid=value;}
|
||||
get{return _modelid;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MONITOR_ID
|
||||
{
|
||||
set{ _monitor_id=value;}
|
||||
get{return _monitor_id;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ModelName
|
||||
{
|
||||
set{ _modelname=value;}
|
||||
get{return _modelname;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string VersionNumber
|
||||
{
|
||||
set{ _versionnumber=value;}
|
||||
get{return _versionnumber;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MapLongitude
|
||||
{
|
||||
set{ _maplongitude=value;}
|
||||
get{return _maplongitude;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MapLatitude
|
||||
{
|
||||
set{ _maplatitude=value;}
|
||||
get{return _maplatitude;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string TrainingSize
|
||||
{
|
||||
set{ _trainingsize=value;}
|
||||
get{return _trainingsize;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ModelResources
|
||||
{
|
||||
set{ _modelresources=value;}
|
||||
get{return _modelresources;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
set{ _updatetime=value;}
|
||||
get{return _updatetime;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark1
|
||||
{
|
||||
set{ _remark1=value;}
|
||||
get{return _remark1;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark2
|
||||
{
|
||||
set{ _remark2=value;}
|
||||
get{return _remark2;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark3
|
||||
{
|
||||
set{ _remark3=value;}
|
||||
get{return _remark3;}
|
||||
}
|
||||
#endregion Model
|
||||
#region BasicMethod
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string ModelId)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) from v_model_version");
|
||||
strSql.Append(" where ModelId=@ModelId ");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@ModelId", SqlDbType.VarChar,50) };
|
||||
parameters[0].Value = ModelId;
|
||||
|
||||
return DbHelperSQL.Exists(strSql.ToString(),parameters);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(Competition.Mysql.Model.v_model_version model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("insert into v_model_version(");
|
||||
strSql.Append("ModelId,MONITOR_ID,ModelName,VersionNumber,MapLongitude,MapLatitude,TrainingSize,ModelResources,UpdateTime,Remark1,Remark2,Remark3)");
|
||||
strSql.Append(" values (");
|
||||
strSql.Append("@ModelId,@MONITOR_ID,@ModelName,@VersionNumber,@MapLongitude,@MapLatitude,@TrainingSize,@ModelResources,@UpdateTime,@Remark1,@Remark2,@Remark3)");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@ModelId", SqlDbType.VarChar,50),
|
||||
new SqlParameter("@MONITOR_ID", SqlDbType.VarChar,40),
|
||||
new SqlParameter("@ModelName", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@VersionNumber", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@MapLongitude", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@MapLatitude", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@TrainingSize", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@ModelResources", SqlDbType.VarChar,2000),
|
||||
new SqlParameter("@UpdateTime", SqlDbType.DateTime),
|
||||
new SqlParameter("@Remark1", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@Remark2", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@Remark3", SqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.ModelId;
|
||||
parameters[1].Value = model.MONITOR_ID;
|
||||
parameters[2].Value = model.ModelName;
|
||||
parameters[3].Value = model.VersionNumber;
|
||||
parameters[4].Value = model.MapLongitude;
|
||||
parameters[5].Value = model.MapLatitude;
|
||||
parameters[6].Value = model.TrainingSize;
|
||||
parameters[7].Value = model.ModelResources;
|
||||
parameters[8].Value = model.UpdateTime;
|
||||
parameters[9].Value = model.Remark1;
|
||||
parameters[10].Value = model.Remark2;
|
||||
parameters[11].Value = model.Remark3;
|
||||
|
||||
int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(Competition.Mysql.Model.v_model_version model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("update v_model_version set ");
|
||||
strSql.Append("MONITOR_ID=@MONITOR_ID,");
|
||||
strSql.Append("ModelName=@ModelName,");
|
||||
strSql.Append("VersionNumber=@VersionNumber,");
|
||||
strSql.Append("MapLongitude=@MapLongitude,");
|
||||
strSql.Append("MapLatitude=@MapLatitude,");
|
||||
strSql.Append("TrainingSize=@TrainingSize,");
|
||||
strSql.Append("ModelResources=@ModelResources,");
|
||||
strSql.Append("UpdateTime=@UpdateTime,");
|
||||
strSql.Append("Remark1=@Remark1,");
|
||||
strSql.Append("Remark2=@Remark2,");
|
||||
strSql.Append("Remark3=@Remark3");
|
||||
strSql.Append(" where ModelId=@ModelId ");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@MONITOR_ID", SqlDbType.VarChar,40),
|
||||
new SqlParameter("@ModelName", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@VersionNumber", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@MapLongitude", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@MapLatitude", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@TrainingSize", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@ModelResources", SqlDbType.VarChar,2000),
|
||||
new SqlParameter("@UpdateTime", SqlDbType.DateTime),
|
||||
new SqlParameter("@Remark1", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@Remark2", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@Remark3", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@ModelId", SqlDbType.VarChar,50)};
|
||||
parameters[0].Value = model.MONITOR_ID;
|
||||
parameters[1].Value = model.ModelName;
|
||||
parameters[2].Value = model.VersionNumber;
|
||||
parameters[3].Value = model.MapLongitude;
|
||||
parameters[4].Value = model.MapLatitude;
|
||||
parameters[5].Value = model.TrainingSize;
|
||||
parameters[6].Value = model.ModelResources;
|
||||
parameters[7].Value = model.UpdateTime;
|
||||
parameters[8].Value = model.Remark1;
|
||||
parameters[9].Value = model.Remark2;
|
||||
parameters[10].Value = model.Remark3;
|
||||
parameters[11].Value = model.ModelId;
|
||||
|
||||
int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string ModelId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from v_model_version ");
|
||||
strSql.Append(" where ModelId=@ModelId ");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@ModelId", SqlDbType.VarChar,50) };
|
||||
parameters[0].Value = ModelId;
|
||||
|
||||
int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string ModelIdlist )
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from v_model_version ");
|
||||
strSql.Append(" where ModelId in ("+ModelIdlist + ") ");
|
||||
int rows=DbHelperSQL.ExecuteSql(strSql.ToString());
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public Competition.Mysql.Model.v_model_version GetModel(string ModelId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select top 1 ModelId,MONITOR_ID,ModelName,VersionNumber,MapLongitude,MapLatitude,TrainingSize,ModelResources,UpdateTime,Remark1,Remark2,Remark3 from v_model_version ");
|
||||
strSql.Append(" where ModelId=@ModelId ");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@ModelId", SqlDbType.VarChar,50) };
|
||||
parameters[0].Value = ModelId;
|
||||
|
||||
Competition.Mysql.Model.v_model_version model=new Competition.Mysql.Model.v_model_version();
|
||||
DataSet ds=DbHelperSQL.Query(strSql.ToString(),parameters);
|
||||
if(ds.Tables[0].Rows.Count>0)
|
||||
{
|
||||
return DataRowToModel(ds.Tables[0].Rows[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public Competition.Mysql.Model.v_model_version DataRowToModel(DataRow row)
|
||||
{
|
||||
Competition.Mysql.Model.v_model_version model=new Competition.Mysql.Model.v_model_version();
|
||||
if (row != null)
|
||||
{
|
||||
if(row["ModelId"]!=null)
|
||||
{
|
||||
model.ModelId=row["ModelId"].ToString();
|
||||
}
|
||||
if(row["MONITOR_ID"]!=null)
|
||||
{
|
||||
model.MONITOR_ID=row["MONITOR_ID"].ToString();
|
||||
}
|
||||
if(row["ModelName"]!=null)
|
||||
{
|
||||
model.ModelName=row["ModelName"].ToString();
|
||||
}
|
||||
if(row["VersionNumber"]!=null)
|
||||
{
|
||||
model.VersionNumber=row["VersionNumber"].ToString();
|
||||
}
|
||||
if(row["MapLongitude"]!=null)
|
||||
{
|
||||
model.MapLongitude=row["MapLongitude"].ToString();
|
||||
}
|
||||
if(row["MapLatitude"]!=null)
|
||||
{
|
||||
model.MapLatitude=row["MapLatitude"].ToString();
|
||||
}
|
||||
if(row["TrainingSize"]!=null)
|
||||
{
|
||||
model.TrainingSize=row["TrainingSize"].ToString();
|
||||
}
|
||||
if(row["ModelResources"]!=null)
|
||||
{
|
||||
model.ModelResources=row["ModelResources"].ToString();
|
||||
}
|
||||
if(row["UpdateTime"]!=null && row["UpdateTime"].ToString()!="")
|
||||
{
|
||||
model.UpdateTime=DateTime.Parse(row["UpdateTime"].ToString());
|
||||
}
|
||||
if(row["Remark1"]!=null)
|
||||
{
|
||||
model.Remark1=row["Remark1"].ToString();
|
||||
}
|
||||
if(row["Remark2"]!=null)
|
||||
{
|
||||
model.Remark2=row["Remark2"].ToString();
|
||||
}
|
||||
if(row["Remark3"]!=null)
|
||||
{
|
||||
model.Remark3=row["Remark3"].ToString();
|
||||
}
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select ModelId,MONITOR_ID,ModelName,VersionNumber,MapLongitude,MapLatitude,TrainingSize,ModelResources,UpdateTime,Remark1,Remark2,Remark3 ");
|
||||
strSql.Append(" FROM v_model_version ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
return DbHelperSQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得前几行数据
|
||||
/// </summary>
|
||||
public DataSet GetList(int Top,string strWhere,string filedOrder)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select ");
|
||||
if(Top>0)
|
||||
{
|
||||
strSql.Append(" top "+Top.ToString());
|
||||
}
|
||||
strSql.Append(" ModelId,MONITOR_ID,ModelName,VersionNumber,MapLongitude,MapLatitude,TrainingSize,ModelResources,UpdateTime,Remark1,Remark2,Remark3 ");
|
||||
strSql.Append(" FROM v_model_version ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
strSql.Append(" order by " + filedOrder);
|
||||
return DbHelperSQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取记录总数
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) FROM v_model_version ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
object obj = DbHelperSQL.GetSingle(strSql.ToString());
|
||||
if (obj == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Convert.ToInt32(obj);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("SELECT * FROM ( ");
|
||||
strSql.Append(" SELECT ROW_NUMBER() OVER (");
|
||||
if (!string.IsNullOrEmpty(orderby.Trim()))
|
||||
{
|
||||
strSql.Append("order by T." + orderby );
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql.Append("order by T.ModelId desc");
|
||||
}
|
||||
strSql.Append(")AS Row, T.* from v_model_version T ");
|
||||
if (!string.IsNullOrEmpty(strWhere.Trim()))
|
||||
{
|
||||
strSql.Append(" WHERE " + strWhere);
|
||||
}
|
||||
strSql.Append(" ) TT");
|
||||
strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
|
||||
return DbHelperSQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/*
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
{
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@tblName", SqlDbType.VarChar, 255),
|
||||
new SqlParameter("@fldName", SqlDbType.VarChar, 255),
|
||||
new SqlParameter("@PageSize", SqlDbType.Int),
|
||||
new SqlParameter("@PageIndex", SqlDbType.Int),
|
||||
new SqlParameter("@IsReCount", SqlDbType.Bit),
|
||||
new SqlParameter("@OrderType", SqlDbType.Bit),
|
||||
new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
|
||||
};
|
||||
parameters[0].Value = "v_model_version";
|
||||
parameters[1].Value = "ModelId";
|
||||
parameters[2].Value = PageSize;
|
||||
parameters[3].Value = PageIndex;
|
||||
parameters[4].Value = 0;
|
||||
parameters[5].Value = 0;
|
||||
parameters[6].Value = strWhere;
|
||||
return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
|
||||
}*/
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,91 +15,344 @@
|
|||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
namespace Competition.Mysql.Model
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using System.Data.SqlClient;
|
||||
using Maticsoft.DBUtility;//Please add references
|
||||
namespace Competition.Mysql.DAL
|
||||
{
|
||||
/// <summary>
|
||||
/// v_starter_version:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// 数据访问类:v_starter_version
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class v_starter_version
|
||||
{
|
||||
public v_starter_version()
|
||||
{}
|
||||
#region Model
|
||||
private string _starterid;
|
||||
private string _softwarename;
|
||||
private string _versionnumber;
|
||||
private string _launcherresources;
|
||||
private string _updateresources;
|
||||
private string _remark1;
|
||||
private string _remark2;
|
||||
private string _remark3;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string StarterId
|
||||
{
|
||||
set{ _starterid=value;}
|
||||
get{return _starterid;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SoftwareName
|
||||
{
|
||||
set{ _softwarename=value;}
|
||||
get{return _softwarename;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string VersionNumber
|
||||
{
|
||||
set{ _versionnumber=value;}
|
||||
get{return _versionnumber;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LauncherResources
|
||||
{
|
||||
set{ _launcherresources=value;}
|
||||
get{return _launcherresources;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string UpdateResources
|
||||
{
|
||||
set{ _updateresources=value;}
|
||||
get{return _updateresources;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark1
|
||||
{
|
||||
set{ _remark1=value;}
|
||||
get{return _remark1;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark2
|
||||
{
|
||||
set{ _remark2=value;}
|
||||
get{return _remark2;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark3
|
||||
{
|
||||
set{ _remark3=value;}
|
||||
get{return _remark3;}
|
||||
}
|
||||
#endregion Model
|
||||
#region BasicMethod
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string StarterId)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) from v_starter_version");
|
||||
strSql.Append(" where StarterId=@StarterId ");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@StarterId", SqlDbType.VarChar,50) };
|
||||
parameters[0].Value = StarterId;
|
||||
|
||||
return DbHelperSQL.Exists(strSql.ToString(),parameters);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(Competition.Mysql.Model.v_starter_version model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("insert into v_starter_version(");
|
||||
strSql.Append("StarterId,SoftwareName,VersionNumber,LauncherResources,UpdateResources,Remark1,Remark2,Remark3)");
|
||||
strSql.Append(" values (");
|
||||
strSql.Append("@StarterId,@SoftwareName,@VersionNumber,@LauncherResources,@UpdateResources,@Remark1,@Remark2,@Remark3)");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@StarterId", SqlDbType.VarChar,50),
|
||||
new SqlParameter("@SoftwareName", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@VersionNumber", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@LauncherResources", SqlDbType.VarChar,2000),
|
||||
new SqlParameter("@UpdateResources", SqlDbType.VarChar,2000),
|
||||
new SqlParameter("@Remark1", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@Remark2", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@Remark3", SqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.StarterId;
|
||||
parameters[1].Value = model.SoftwareName;
|
||||
parameters[2].Value = model.VersionNumber;
|
||||
parameters[3].Value = model.LauncherResources;
|
||||
parameters[4].Value = model.UpdateResources;
|
||||
parameters[5].Value = model.Remark1;
|
||||
parameters[6].Value = model.Remark2;
|
||||
parameters[7].Value = model.Remark3;
|
||||
|
||||
int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(Competition.Mysql.Model.v_starter_version model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("update v_starter_version set ");
|
||||
strSql.Append("SoftwareName=@SoftwareName,");
|
||||
strSql.Append("VersionNumber=@VersionNumber,");
|
||||
strSql.Append("LauncherResources=@LauncherResources,");
|
||||
strSql.Append("UpdateResources=@UpdateResources,");
|
||||
strSql.Append("Remark1=@Remark1,");
|
||||
strSql.Append("Remark2=@Remark2,");
|
||||
strSql.Append("Remark3=@Remark3");
|
||||
strSql.Append(" where StarterId=@StarterId ");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@SoftwareName", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@VersionNumber", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@LauncherResources", SqlDbType.VarChar,2000),
|
||||
new SqlParameter("@UpdateResources", SqlDbType.VarChar,2000),
|
||||
new SqlParameter("@Remark1", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@Remark2", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@Remark3", SqlDbType.VarChar,255),
|
||||
new SqlParameter("@StarterId", SqlDbType.VarChar,50)};
|
||||
parameters[0].Value = model.SoftwareName;
|
||||
parameters[1].Value = model.VersionNumber;
|
||||
parameters[2].Value = model.LauncherResources;
|
||||
parameters[3].Value = model.UpdateResources;
|
||||
parameters[4].Value = model.Remark1;
|
||||
parameters[5].Value = model.Remark2;
|
||||
parameters[6].Value = model.Remark3;
|
||||
parameters[7].Value = model.StarterId;
|
||||
|
||||
int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string StarterId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from v_starter_version ");
|
||||
strSql.Append(" where StarterId=@StarterId ");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@StarterId", SqlDbType.VarChar,50) };
|
||||
parameters[0].Value = StarterId;
|
||||
|
||||
int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string StarterIdlist )
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from v_starter_version ");
|
||||
strSql.Append(" where StarterId in ("+StarterIdlist + ") ");
|
||||
int rows=DbHelperSQL.ExecuteSql(strSql.ToString());
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public Competition.Mysql.Model.v_starter_version GetModel(string StarterId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select top 1 StarterId,SoftwareName,VersionNumber,LauncherResources,UpdateResources,Remark1,Remark2,Remark3 from v_starter_version ");
|
||||
strSql.Append(" where StarterId=@StarterId ");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@StarterId", SqlDbType.VarChar,50) };
|
||||
parameters[0].Value = StarterId;
|
||||
|
||||
Competition.Mysql.Model.v_starter_version model=new Competition.Mysql.Model.v_starter_version();
|
||||
DataSet ds=DbHelperSQL.Query(strSql.ToString(),parameters);
|
||||
if(ds.Tables[0].Rows.Count>0)
|
||||
{
|
||||
return DataRowToModel(ds.Tables[0].Rows[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public Competition.Mysql.Model.v_starter_version DataRowToModel(DataRow row)
|
||||
{
|
||||
Competition.Mysql.Model.v_starter_version model=new Competition.Mysql.Model.v_starter_version();
|
||||
if (row != null)
|
||||
{
|
||||
if(row["StarterId"]!=null)
|
||||
{
|
||||
model.StarterId=row["StarterId"].ToString();
|
||||
}
|
||||
if(row["SoftwareName"]!=null)
|
||||
{
|
||||
model.SoftwareName=row["SoftwareName"].ToString();
|
||||
}
|
||||
if(row["VersionNumber"]!=null)
|
||||
{
|
||||
model.VersionNumber=row["VersionNumber"].ToString();
|
||||
}
|
||||
if(row["LauncherResources"]!=null)
|
||||
{
|
||||
model.LauncherResources=row["LauncherResources"].ToString();
|
||||
}
|
||||
if(row["UpdateResources"]!=null)
|
||||
{
|
||||
model.UpdateResources=row["UpdateResources"].ToString();
|
||||
}
|
||||
if(row["Remark1"]!=null)
|
||||
{
|
||||
model.Remark1=row["Remark1"].ToString();
|
||||
}
|
||||
if(row["Remark2"]!=null)
|
||||
{
|
||||
model.Remark2=row["Remark2"].ToString();
|
||||
}
|
||||
if(row["Remark3"]!=null)
|
||||
{
|
||||
model.Remark3=row["Remark3"].ToString();
|
||||
}
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select StarterId,SoftwareName,VersionNumber,LauncherResources,UpdateResources,Remark1,Remark2,Remark3 ");
|
||||
strSql.Append(" FROM v_starter_version ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
return DbHelperSQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得前几行数据
|
||||
/// </summary>
|
||||
public DataSet GetList(int Top,string strWhere,string filedOrder)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select ");
|
||||
if(Top>0)
|
||||
{
|
||||
strSql.Append(" top "+Top.ToString());
|
||||
}
|
||||
strSql.Append(" StarterId,SoftwareName,VersionNumber,LauncherResources,UpdateResources,Remark1,Remark2,Remark3 ");
|
||||
strSql.Append(" FROM v_starter_version ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
strSql.Append(" order by " + filedOrder);
|
||||
return DbHelperSQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取记录总数
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) FROM v_starter_version ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
object obj = DbHelperSQL.GetSingle(strSql.ToString());
|
||||
if (obj == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Convert.ToInt32(obj);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("SELECT * FROM ( ");
|
||||
strSql.Append(" SELECT ROW_NUMBER() OVER (");
|
||||
if (!string.IsNullOrEmpty(orderby.Trim()))
|
||||
{
|
||||
strSql.Append("order by T." + orderby );
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql.Append("order by T.StarterId desc");
|
||||
}
|
||||
strSql.Append(")AS Row, T.* from v_starter_version T ");
|
||||
if (!string.IsNullOrEmpty(strWhere.Trim()))
|
||||
{
|
||||
strSql.Append(" WHERE " + strWhere);
|
||||
}
|
||||
strSql.Append(" ) TT");
|
||||
strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
|
||||
return DbHelperSQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/*
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
{
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@tblName", SqlDbType.VarChar, 255),
|
||||
new SqlParameter("@fldName", SqlDbType.VarChar, 255),
|
||||
new SqlParameter("@PageSize", SqlDbType.Int),
|
||||
new SqlParameter("@PageIndex", SqlDbType.Int),
|
||||
new SqlParameter("@IsReCount", SqlDbType.Bit),
|
||||
new SqlParameter("@OrderType", SqlDbType.Bit),
|
||||
new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
|
||||
};
|
||||
parameters[0].Value = "v_starter_version";
|
||||
parameters[1].Value = "StarterId";
|
||||
parameters[2].Value = PageSize;
|
||||
parameters[3].Value = PageIndex;
|
||||
parameters[4].Value = 0;
|
||||
parameters[5].Value = 0;
|
||||
parameters[6].Value = strWhere;
|
||||
return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
|
||||
}*/
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* T_BAS_COP_GOODS.cs
|
||||
* T_BAS_GOODS.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: T_BAS_COP_GOODS
|
||||
* 类 名: T_BAS_GOODS
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/6/12 16:53:44 N/A 初版
|
||||
* V0.01 2024/6/12 16:53:51 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
|
@ -18,18 +18,28 @@ using System;
|
|||
namespace Competition.Mysql.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// T_BAS_COP_GOODS:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// T_BAS_GOODS:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class T_BAS_COP_GOODS
|
||||
public partial class T_BAS_GOODS
|
||||
{
|
||||
public T_BAS_COP_GOODS()
|
||||
public T_BAS_GOODS()
|
||||
{}
|
||||
#region Model
|
||||
private string _monitor_id;
|
||||
private string _goods_code;
|
||||
private string _code_ts;
|
||||
private int _goods_type;
|
||||
private string _lsjm_flag;
|
||||
private string _standard_name;
|
||||
private string _common_name;
|
||||
private bool _enable;
|
||||
private decimal? _density;
|
||||
private int? _goods_density_type;
|
||||
private int? _sign_group;
|
||||
private decimal? _density_upper_limit;
|
||||
private decimal? _density_lower_limit;
|
||||
private int? _goods_measure_type;
|
||||
private int? _goods_state_type;
|
||||
private decimal? _state_temperature;
|
||||
private string _field_char1;
|
||||
private string _field_char2;
|
||||
private string _field_char3;
|
||||
|
@ -39,14 +49,6 @@ namespace Competition.Mysql.Model
|
|||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MONITOR_ID
|
||||
{
|
||||
set{ _monitor_id=value;}
|
||||
get{return _monitor_id;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string GOODS_CODE
|
||||
{
|
||||
set{ _goods_code=value;}
|
||||
|
@ -55,6 +57,62 @@ namespace Competition.Mysql.Model
|
|||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CODE_TS
|
||||
{
|
||||
set{ _code_ts=value;}
|
||||
get{return _code_ts;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int GOODS_TYPE
|
||||
{
|
||||
set{ _goods_type=value;}
|
||||
get{return _goods_type;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LSJM_FLAG
|
||||
{
|
||||
set{ _lsjm_flag=value;}
|
||||
get{return _lsjm_flag;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string STANDARD_NAME
|
||||
{
|
||||
set{ _standard_name=value;}
|
||||
get{return _standard_name;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string COMMON_NAME
|
||||
{
|
||||
set{ _common_name=value;}
|
||||
get{return _common_name;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool ENABLE
|
||||
{
|
||||
set{ _enable=value;}
|
||||
get{return _enable;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? DENSITY
|
||||
{
|
||||
set{ _density=value;}
|
||||
get{return _density;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int? GOODS_DENSITY_TYPE
|
||||
{
|
||||
set{ _goods_density_type=value;}
|
||||
|
@ -63,10 +121,42 @@ namespace Competition.Mysql.Model
|
|||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int? SIGN_GROUP
|
||||
public decimal? DENSITY_UPPER_LIMIT
|
||||
{
|
||||
set{ _sign_group=value;}
|
||||
get{return _sign_group;}
|
||||
set{ _density_upper_limit=value;}
|
||||
get{return _density_upper_limit;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? DENSITY_LOWER_LIMIT
|
||||
{
|
||||
set{ _density_lower_limit=value;}
|
||||
get{return _density_lower_limit;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int? GOODS_MEASURE_TYPE
|
||||
{
|
||||
set{ _goods_measure_type=value;}
|
||||
get{return _goods_measure_type;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int? GOODS_STATE_TYPE
|
||||
{
|
||||
set{ _goods_state_type=value;}
|
||||
get{return _goods_state_type;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? STATE_TEMPERATURE
|
||||
{
|
||||
set{ _state_temperature=value;}
|
||||
get{return _state_temperature;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
60fe6851ee0dea5aab6b45c872f74b48e4980704
|
|
@ -0,0 +1,18 @@
|
|||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\obj\Debug\net6.0\Competition.Mysql.csproj.AssemblyReference.cache
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\obj\Debug\net6.0\Competition.Mysql.GeneratedMSBuildEditorConfig.editorconfig
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\obj\Debug\net6.0\Competition.Mysql.AssemblyInfoInputs.cache
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\obj\Debug\net6.0\Competition.Mysql.AssemblyInfo.cs
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\obj\Debug\net6.0\Competition.Mysql.csproj.CoreCompileInputs.cache
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\bin\Debug\net6.0\Competition.Mysql.deps.json
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\bin\Debug\net6.0\Competition.Mysql.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\bin\Debug\net6.0\Competition.Mysql.pdb
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\bin\Debug\net6.0\Competition.Common.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\bin\Debug\net6.0\Maticsoft.Common.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\bin\Debug\net6.0\Maticsoft.DBUtility.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\bin\Debug\net6.0\zKeyAccess.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\bin\Debug\net6.0\Competition.Common.pdb
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\obj\Debug\net6.0\Competition.Mysql.csproj.CopyComplete
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\obj\Debug\net6.0\Competition.Mysql.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\obj\Debug\net6.0\refint\Competition.Mysql.dll
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\obj\Debug\net6.0\Competition.Mysql.pdb
|
||||
F:\项目\福州海关散货系统\项目\FuZhou_Custom_BulkCargo_Server\CompetitionAPI\CompetitionAPI\Competition.Mysql\obj\Debug\net6.0\ref\Competition.Mysql.dll
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,11 +1,36 @@
|
|||
using Microsoft.AspNetCore.Http;
|
||||
using Competition.Common.Util;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace CompetitionAPI.Controllers.version
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class GetStarterListController : ControllerBase
|
||||
public class GetStarterListController : Controller
|
||||
{
|
||||
//Competition.Mysql.BLL.v bll = new Competition.Mysql.BLL.T_BAS_CORPORATION();
|
||||
|
||||
|
||||
//public GetStarterListController()
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
///// <summary>
|
||||
///// 获取企业接口
|
||||
///// </summary>
|
||||
///// <param name="req"></param>
|
||||
///// <returns></returns>
|
||||
//[HttpGet]
|
||||
//public JsonResult Index()
|
||||
//{
|
||||
// //读取配置文件示例
|
||||
// var mysql = Configuration.GetConnectionString("MySQL").ToString();
|
||||
|
||||
// //查询企业表所有数据
|
||||
// var list = bll.GetModelList("");
|
||||
|
||||
// return Json(Tool.GetJsonWithCode(APICode.Success, list));
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net6.0",
|
||||
"frameworks": [
|
||||
{
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "6.0.0"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App",
|
||||
"version": "6.0.0"
|
||||
}
|
||||
],
|
||||
"configProperties": {
|
||||
"System.GC.Server": true,
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
</doc>
|
|
@ -0,0 +1,13 @@
|
|||
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 5000
|
||||
|
||||
COPY ./ ./
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y fontconfig && apt-get install -y fontconfig
|
||||
|
||||
COPY ./msyh.ttc /usr/share/fonts/
|
||||
|
||||
ENTRYPOINT ["dotnet", "CompetitionAPI.dll"]
|
Binary file not shown.
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
|
||||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
||||
|
||||
</configSections>
|
||||
<log4net>
|
||||
<root>
|
||||
<level value="ALL" />
|
||||
<appender-ref ref="SysAppender" />
|
||||
</root>
|
||||
<logger name="WebLogger">
|
||||
<level value="DEBUG" />
|
||||
</logger>
|
||||
<appender name="SysAppender" type="log4net.Appender.RollingFileAppender,log4net">
|
||||
<param name="File" value="App_Data/" />
|
||||
<param name="AppendToFile" value="true" />
|
||||
<param name="RollingStyle" value="Date" />
|
||||
<param name="DatePattern" value=""Logs_"yyyyMMdd".txt"" />
|
||||
<param name="StaticLogFileName" value="false" />
|
||||
<layout type="log4net.Layout.PatternLayout,log4net">
|
||||
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
|
||||
<param name="Header" value=" ------------------------------------------------
" />
|
||||
<param name="Footer" value=" ------------------------------------------------
" />
|
||||
</layout>
|
||||
</appender>
|
||||
<appender name="consoleApp" type="log4net.Appender.ConsoleAppender,log4net">
|
||||
<layout type="log4net.Layout.PatternLayout,log4net">
|
||||
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
|
||||
</layout>
|
||||
</appender>
|
||||
</log4net>
|
||||
</configuration>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue