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
1006 B
33 lines
1006 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace SSC
|
|
{
|
|
/// <summary>
|
|
/// 系统时间服务
|
|
/// </summary>
|
|
public class Z001 : NSC.IService
|
|
{
|
|
public NSC.NetServiceStruct ServiceFunction(Common.Data.UserAuthority userAuth, NSC.NetServiceStruct input)
|
|
{
|
|
NSC.ParameterStruct param = new NSC.ParameterStruct();
|
|
param.SetData(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
|
|
|
|
var nss = new NSC.NetServiceStruct()
|
|
{
|
|
ExceptionType = Common.Data.ExceptionType.NoneException,
|
|
FirmwareModel = input.FirmwareModel,
|
|
FirmwareVersion = input.FirmwareVersion,
|
|
ServiceName = input.ServiceName,
|
|
ServiceSN = input.ServiceSN,
|
|
SyncType = input.SyncType,
|
|
Params = input.Params
|
|
};
|
|
nss.Returns.Add("SysTime", param);
|
|
|
|
return nss;
|
|
}
|
|
}
|
|
}
|
|
|