using System; using System.Collections.Generic; namespace RGD.MdsAPI.WCS { public class getWhEquipStatus : HouseBase { [Serializable] public class DETAIL { private string _device_no; private string _device_name; private string _cur_status; 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 CUR_STATUS { get { return this._cur_status; } set { this._cur_status = value; } } } /// /// 入参定义 /// [Serializable] public class PARA { private string _wh_id; /// /// 库房编号 /// public string WH_ID { get { return this._wh_id; } set { this._wh_id = value; } } } /// /// 出参定义 /// [Serializable] public class DATA : Base.OutPara { private string _wh_id; private List _detail_list; /// /// 库房编号 /// public string WH_ID { get { return this._wh_id; } set { this._wh_id = value; } } public List DETAIL_LIST { get { return this._detail_list; } set { this._detail_list = value; } } } /// /// 入参实体 /// private PARA _inPara; /// /// 出参实体 /// private DATA _outPara; /// /// 构造函数 /// public getWhEquipStatus() { this._outPara = new DATA(); } /// /// 通知 /// /// 入参 /// 出参 /// 执行结果 public bool Notify(string sXmlIn, out string sXmlOut) { bool bResult = true; string sResult = string.Empty; sXmlOut = string.Empty; List lsDETAIL_LIST = new List(); try { this._inPara = this.DeSerialize(sXmlIn); bResult = null != this._inPara; if (!bResult) { sResult = string.Format("入参错误(格式错误)"); return bResult; } bResult = this.GETWHEQUIPSTATUS(_inPara.WH_ID, out sResult, out lsDETAIL_LIST); } catch (Exception ex) { bResult = false; sResult = string.Format(ex.Message); } finally { if (bResult) { this._outPara.RESULT_FLAG = Enum.RESULT_FLAG.Success.ToString("d"); } else { this._outPara.RESULT_FLAG = Enum.RESULT_FLAG.Fail.ToString("d"); } this._outPara.ERROR_INFO = sResult; this._outPara.DETAIL_LIST = lsDETAIL_LIST; sXmlOut = this.Serializer(this._outPara); } return bResult; } } }