using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace TProduct.OpenDto
|
{
|
public class FeatTestPackInfoV1
|
{
|
/// <summary>
|
/// 版本
|
/// </summary>
|
public string Version { get; set; }
|
/// <summary>
|
/// 客户端名
|
/// </summary>
|
public string SoftClientID { get; set; }
|
/// <summary>
|
/// IStation租客ID (Tag, ID 二者而是一个即可)
|
/// </summary>
|
public long TenantID { get; set; }
|
/// <summary>
|
/// IStation租客Tag (Tag, ID 二者而是一个即可)
|
/// </summary>
|
public string TenantTag { get; set; }
|
/// <summary>
|
///
|
/// </summary>
|
public ProductPump Pump { get; set; }
|
/// <summary>
|
///
|
/// </summary>
|
public TProduct.OpenDto.TestProjectItem TestItem { get; set; }
|
/// <summary>
|
///
|
/// </summary>
|
public TProduct.OpenDto.WorkBenchBase TestBench { get; set; }
|
/// <summary>
|
///
|
/// </summary>
|
/// <param name="ContentInfo"></param>
|
/// <returns></returns>
|
public static FeatTestPackInfoV1 ToParamenter(string ContentInfo)
|
{
|
if (string.IsNullOrEmpty(ContentInfo))
|
{
|
return null;
|
}
|
|
var js = new System.Web.Script.Serialization.JavaScriptSerializer();
|
js.MaxJsonLength = int.MaxValue;
|
return js.Deserialize(ContentInfo, typeof(TProduct.OpenDto.FeatTestPackInfoV1)) as TProduct.OpenDto.FeatTestPackInfoV1;
|
}
|
|
public string ToDsString()
|
{
|
try
|
{
|
var js = new System.Web.Script.Serialization.JavaScriptSerializer();
|
js.MaxJsonLength = int.MaxValue;
|
return js.Serialize(this);
|
}
|
catch //(Exception ex)
|
{
|
return null;
|
}
|
}
|
}
|
}
|