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.
60 lines
1.6 KiB
60 lines
1.6 KiB
3 years ago
|
using System;
|
||
|
using System.Web;
|
||
|
using System.Web.Services;
|
||
|
using System.Web.Services.Protocols;
|
||
|
|
||
|
using Gm_WMS.DataAccess.DataService;
|
||
|
using System.Data;
|
||
|
using Stone.DataService.Biz;
|
||
|
using Stone.DataService.Biz.BizPublic;
|
||
|
using System.IO;
|
||
|
|
||
|
[WebService(Namespace = "http://tempuri.org/")]
|
||
|
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||
|
public class Service : System.Web.Services.WebService
|
||
|
{
|
||
|
public Service () {
|
||
|
if (LocalDBService.m_conn == "")
|
||
|
{
|
||
|
WebConfig.LocalDB = System.Configuration.ConfigurationManager.AppSettings["LocalDB"].ToString();
|
||
|
WebConfig.BarCodeDB = System.Configuration.ConfigurationManager.AppSettings["BarCodeDB"].ToString();
|
||
|
|
||
|
LocalDBService.m_conn = WebConfig.LocalDB;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[WebMethod(Description="测试")]
|
||
|
public string HelloWorld() {
|
||
|
return "Hello World";
|
||
|
}
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// PDA与服务端进行数据交换
|
||
|
/// </summary>
|
||
|
/// <param name="dsCommand">处理数据指令</param>
|
||
|
/// <param name="dsData">上传的数据</param>
|
||
|
/// <param name="ErrMessage">返回异常的信息</param>
|
||
|
/// <returns></returns>
|
||
|
[WebMethod(Description="PDA与服务端进行数据交换")]
|
||
|
public DataSet ServiceMessage(DataSet dsCommand, DataSet dsData, ref string ErrMessage)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
return CommandFactory.ServiceData(dsCommand, dsData);
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
ErrMessage = "[获取数据失败]原因为:\r\n" + ex.Message;
|
||
|
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|