1
yhj
2024-07-24 5e5d945e91568b973faa27d8ab0bcef99fc4a6c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#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);
            });
        }
    }
}