You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
|
||
|
namespace SSC
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 系统服务结果服务
|
||
|
/// </summary>
|
||
|
public class Z003 : NSC.IService
|
||
|
{
|
||
|
public NSC.NetServiceStruct ServiceFunction(Common.Data.UserAuthority userAuth, NSC.NetServiceStruct input)
|
||
|
{
|
||
|
string version = "";
|
||
|
StringBuilder query = new StringBuilder();
|
||
|
query.Append("SELECT VERSIONNO FROM T_UPDATE");
|
||
|
Common.Data.SqlLite.SqlLiteHelper sqlite = new Common.Data.SqlLite.SqlLiteHelper();
|
||
|
using (var conn = sqlite.OpenConnection(Common.Config.ConfigSetting.GetConnectionString()))
|
||
|
using (var table = sqlite.QueryReturnDataTable(conn, query.ToString()))
|
||
|
{
|
||
|
if (table.Rows.Count > 0)
|
||
|
{
|
||
|
version = table.Rows[0]["VERSIONNO"].ToString();
|
||
|
}
|
||
|
}
|
||
|
input.Returns.Add("Version", new NSC.ParameterStruct(version));
|
||
|
|
||
|
return input;
|
||
|
}
|
||
|
}
|
||
|
}
|