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.
|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Edi 返回
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EdiDataResult
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取 是否成功
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Succeeded = false;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置 返回消息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Message { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 返回
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Data { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 拓展数据1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ExtraData1 { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 拓展数据1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ExtraData2 { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="message"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public static EdiDataResult Failed(string message)
|
|
|
|
|
{
|
|
|
|
|
return new EdiDataResult()
|
|
|
|
|
{
|
|
|
|
|
Succeeded = false,
|
|
|
|
|
Message = message
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="message"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public static EdiDataResult Success(string message)
|
|
|
|
|
{
|
|
|
|
|
return new EdiDataResult()
|
|
|
|
|
{
|
|
|
|
|
Succeeded = true,
|
|
|
|
|
Message = message
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|