using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace TProduct.OpenDto
|
{
|
public class DsFullPacking4Owner
|
{
|
public string Version { get; set; }
|
|
public List<TProduct.OpenDto.StationBase> Stations { get; set; }
|
public List<TProduct.OpenDto.TestProjectItem> TestItems { get; set; }
|
public List<TProduct.OpenDto.WorkBenchBase> Benchs { get; set; }
|
|
public static DsFullPacking4Owner 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.DsFullPacking4Owner)) as TProduct.OpenDto.DsFullPacking4Owner;
|
}
|
|
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;
|
}
|
}
|
}
|
}
|