#region
|
|
using System.Data;
|
using CSFrameworkV5.Common;
|
using CSFrameworkV5.Core;
|
using CSFrameworkV5.Interfaces.Bridge;
|
using CSFrameworkV5.WCFContract;
|
|
#endregion
|
|
namespace CSFrameworkV5.WebRef
|
{
|
public class WCF_DocNoRule : WCF_Base<ICommonService>, IBridge_DocNoRule
|
{
|
public bool CheckNoExistsEx(string DBID, string docCode)
|
{
|
return Excute(client =>
|
{
|
var loginTicket =
|
WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
|
return client.DocNoRule_CheckNoExistsEx(loginTicket, DBID,
|
docCode);
|
});
|
}
|
|
public bool Delete(string DBID, string keyValue)
|
{
|
return Excute(client =>
|
{
|
var loginTicket =
|
WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
|
return client.DocNoRule_Delete(loginTicket, DBID, keyValue);
|
});
|
}
|
|
public DataTable GetData(string DBID)
|
{
|
return Excute(client =>
|
{
|
var loginTicket =
|
WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
|
return client.DocNoRule_GetData(loginTicket, DBID);
|
});
|
}
|
|
public DataTable GetDataByKey(string DBID, string keyValue)
|
{
|
return Excute(client =>
|
{
|
var loginTicket =
|
WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
|
return client.DocNoRule_GetDataByKey(loginTicket, DBID,
|
keyValue);
|
});
|
}
|
|
public DataTable Search(string DBID, string DocCode)
|
{
|
return Excute(client =>
|
{
|
var loginTicket =
|
WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
|
var bs = client.DocNoRule_Search(loginTicket, DBID, DocCode);
|
return ZipTools.DecompressionDataSet(bs).Tables[0];
|
});
|
}
|
|
public bool UpdateToDB(string DBID, DataTable data)
|
{
|
return Excute(client =>
|
{
|
var loginTicket =
|
WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
|
return client.DocNoRule_UpdateToDB(loginTicket, DBID, data);
|
});
|
}
|
}
|
}
|