You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.IO;
|
|
using System.Text;
|
|
using System.Xml;
|
|
using System.Xml.Serialization;
|
|
using System.Data.Common;
|
|
using Mesnac.Equips;
|
|
using Mesnac.Maths;
|
|
|
|
namespace Mesnac.Math.Feeding
|
|
{
|
|
public class PlanStartTime : IMath
|
|
{
|
|
private object NullResult = new DataTable();
|
|
|
|
public string Name
|
|
{
|
|
get { return "密炼开始时间"; }
|
|
}
|
|
|
|
public string Caption
|
|
{
|
|
get
|
|
{
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.AppendLine("将读取的信息转化为文本");
|
|
sb.AppendLine("例:");
|
|
sb.Append(" ").Append(Name).AppendLine("()");
|
|
return sb.ToString();
|
|
}
|
|
}
|
|
|
|
public object Execute(string[] parameters, object[] buff)
|
|
{
|
|
if (buff.Length < 6)
|
|
{
|
|
return DateTime.Now;
|
|
}
|
|
try
|
|
{
|
|
return new DateTime((int)buff[0], (int)buff[1], (int)buff[2], (int)buff[3], (int)buff[4], (int)buff[5]);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
//Console.Write(ex.Message);
|
|
return DateTime.Now;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|