using System;
namespace RGD.MdsAPI.WMS
{
public class uploadWhExceptionInfo : PlatformBase
{
/// 入参定义
/// 入参定义
///
[Serializable]
public class PARA : Base.InPara
{
private string _wh_id;
private string _oper_no;
private string _device_no;
private string _device_name;
private string _exception_msg;
private string _exception_time;
public string WH_ID
{
get { return this._wh_id; }
set { this._wh_id = value; }
}
public string OPER_NO
{
get { return this._oper_no; }
set { this._oper_no = value; }
}
public string DEVICE_NO
{
get { return this._device_no; }
set { this._device_no = value; }
}
public string DEVICE_NAME
{
get { return this._device_name; }
set { this._device_name = value; }
}
public string EXCEPTION_MSG
{
get { return this._exception_msg; }
set { this._exception_msg = value; }
}
public string EXCEPTION_TIME
{
get { return this._exception_time; }
set { this._exception_time = value; }
}
}
/// 出参定义
/// 出参定义
///
[Serializable]
public class DATA : Base.OutPara
{
}
/// 入参实体
/// 入参实体
///
private PARA _inPara;
/// 出参实体
/// 出参实体
///
private DATA _outPara;
public uploadWhExceptionInfo()
{
this._inPara = new PARA();
}
/// 通知
/// 通知
///
/// 任务单号
/// 任务状态
/// 返回结果
///
public bool Notify(string DEVICE_NO, string DEVICE_NAME, string EXCEPTION_MSG, string EXCEPTION_TIME, out string sResult)
{
bool bResult = true;
sResult = string.Empty;
string sXmlOut = string.Empty;
try
{
this._inPara.WH_ID = GetWarehouseIndex();
this._inPara.OPER_NO = GetOperNo();
this._inPara.DEVICE_NO = DEVICE_NO;
this._inPara.DEVICE_NAME = DEVICE_NAME;
this._inPara.EXCEPTION_MSG = EXCEPTION_MSG;
this._inPara.EXCEPTION_TIME = EXCEPTION_TIME;
string sXmlIn = this.Serializer(this._inPara);
bResult = this.uploadWhExceptionInfo(sXmlIn, out sXmlOut);
//调用服务成功
if (bResult)
{
this._outPara = this.DeSerialize(sXmlOut);
bResult = this._outPara.RESULT_FLAG.Equals(Enum.RESULT_FLAG.Success.ToString("d"));
sResult = sXmlOut;
}
return bResult;
}
catch (Exception ex)
{
bResult = false;
sResult = string.Format(ex.Message);
}
return bResult;
}
}
}