using System; using System.Collections.Generic; using System.Text; using System.Data; namespace PDAForm.Comm { public class F_Message { private static PDAForm.Comm.PDAService.Service service; static F_Message() { service = new PDAForm.Comm.PDAService.Service(); service.Url = MyAppconfig.GetValue("WebService"); } public static DataSet ServiceMessage(DataSet dsCommand) { string ErrMessage = ""; try { DataSet dsResult = service.ServiceMessage(dsCommand, null, ref ErrMessage); if (ErrMessage != "") throw new Exception(ErrMessage); return dsResult; } catch (Exception ex) { throw ex; } } public static DataSet ServiceMessage(DataSet dsCommand, DataSet dsData) { string ErrMessage = ""; try { DataSet dsResult = service.ServiceMessage(dsCommand, dsData, ref ErrMessage); if (ErrMessage != "") throw new Exception(ErrMessage); return dsResult; } catch (Exception ex) { throw ex; } } } }