You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

3 years ago
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;
}
}
}
}