예제 #1
0
/*        ERPSubmitStatus IWMSToERP.ErpCommandsS(ERPCommand erpCommands)
 *      {
 *          try
 *          {
 *              XmlReadERPCommand cmd = new XmlReadERPCommand();
 *              cmd.ProcessXml(erpCommands);
 *              return null;
 *          }
 *          catch (Exception ex)
 *          {
 *              SimpleLog.AddException(ex, nameof(WMSToMFCS));
 *              Debug.WriteLine(ex.Message);
 *              throw new FaultException(ex.Message);
 *          }
 *      }
 */
        string IWMSToERP.ErpCommands(string xml)
        {
            try
            {
                XmlReadERPCommand cmd = new XmlReadERPCommand();
                return(cmd.ProcessXml(xml));
            }
            catch (Exception ex)
            {
                SimpleLog.AddException(ex, nameof(WMSToMFCS));
                Debug.WriteLine(ex.Message);
                throw new FaultException(ex.Message);
            }
        }
예제 #2
0
 ERPSubmitStatus IWMSToERP.ErpCommandsS(ERPCommand erpCommands)
 {
     try
     {
         XmlReadERPCommand cmd = new XmlReadERPCommand();
         cmd.ProcessXml(erpCommands);
         return(null);
     }
     catch (Exception ex)
     {
         SimpleLog.AddException(ex, nameof(WMSToMFCS));
         Debug.WriteLine(ex.Message);
         throw new FaultException(ex.Message);
     }
 }