コード例 #1
0
 public string GetSQLServerDbListString(string sServerName, string sUser, string sPwd)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.GetSQLServerDbListString(validationTicket, sServerName, sUser, sPwd));
     }
 }
コード例 #2
0
 public void WriteLogOP(string sFunID, string sFSubunID, string sFdesc, string sSql)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         client.WriteLogOP(loginTicket, sFunID, sFSubunID, sFdesc, sSql);
     }
 }
コード例 #3
0
 public bool TestConnection(string dbType, string Server, string database, string user, string password)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.TestConnectionD(validationTicket, dbType, Server, database, user, password));
     }
 }
コード例 #4
0
 public bool TestConnection()
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.TestConnection(validationTicket));
     }
 }
コード例 #5
0
 public System.Data.DataTable getDataTableSQL(string sql)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.getDataTableSQL(loginTicket, sql);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
コード例 #6
0
        public string GetTableFieldValue(string sTableName, string sField, string SCon)
        {
            using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
            {
                byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);

                return(client.C_GetTableFieldValue(loginTicket, sTableName, sField, SCon));
            }
        }
コード例 #7
0
 public DataSet SearchLog(string logUser, string tableName, DateTime dateFrom, DateTime dateTo)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.SearchLogData(loginTicket, logUser, tableName, dateFrom, dateTo);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
コード例 #8
0
 public string GetSystemProfileVal(string key)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         //byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_GetSystemProfileVal(loginTicket, key));
     }
 }
コード例 #9
0
 public System.Data.DataTable GetAttachFileData(string docID)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetAttachedFiles(loginTicket, docID);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
コード例 #10
0
 public System.Data.DataTable GetSystemDataSetByOrg(string sOrgID)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] receivedData     = client.GetSystemDataSetByOrg(validationTicket, sOrgID);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
コード例 #11
0
 public bool SaveFieldDef(DataTable data)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bsData      = ZipTools.CompressionDataSet(dalBase.TableToDataSet(data));
         return(client.SaveFieldDef(loginTicket, bsData));
     }
 }
コード例 #12
0
 public string[] GetTracedFields(string tableName)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[]   loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         string[] arr         = client.GetTracedFields(loginTicket, tableName);
         return(arr);
     }
 }
コード例 #13
0
 public DataTable GetLogFieldDef(string tableName)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetLogFieldDef(loginTicket, tableName);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
コード例 #14
0
 public System.Data.DataSet GetSystemProfile()
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         //byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.G_GetSystemProfile(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
コード例 #15
0
ファイル: DBLink_Bridge.cs プロジェクト: wuhuayun/JieLi_Cord
 public System.Data.DataTable GetDBLinkByID(string key)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         //byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetDBLinkByID(loginTicket, key);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
コード例 #16
0
        public void WriteLog(string logID, DataTable originalData, DataTable changes, string tableName, string keyFieldName, bool isMaster)
        {
            using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
            {
                byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
                byte[] bsOriginal  = ZipTools.CompressionDataSet(dalBase.TableToDataSet(originalData));
                byte[] bsChanges   = ZipTools.CompressionDataSet(dalBase.TableToDataSet(changes));

                client.WriteLog(loginTicket, logID, bsOriginal, bsChanges, tableName, keyFieldName, isMaster);
            }
        }
コード例 #17
0
        /// <summary>
        /// 测试WebService连接
        /// </summary>
        /// <returns></returns>
        private static bool TestWebServiceConnection()
        {
            try
            {
                CommonService_WClient commonService = SoapClientFactory.CreateCommonService_WClient();

                byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
                return(commonService.TestConnection(validationTicket));
            }
            catch (Exception ex)
            {
                Msg.ShowException(ex);
                return(false);
            }
        }