예제 #1
0
 public void SyncServerTime()
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         client.SyncServerTime();
     }
 }
예제 #2
0
 public int GetMenuShow(string account, int moduleID)
 {
     using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.GetMenuShow(loginTicket, account, moduleID));
     }
 }
예제 #3
0
 public bool ModifyPwdDirect(string account, string pwd, string DBName)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.U_ModifyPwdDirect(validationTicket, account, pwd, DBName));
     }
 }
 public bool BackupDatabase(string DBNAME, string BKPATH)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.BackupDatabase(DBNAME, BKPATH));
     }
 }
 public string GetDataSN(string dataCode, bool asHeader)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.GetDataSN(loginTicket, dataCode, asHeader));
     }
 }
예제 #6
0
 public bool IsExistsCommonType(string code)
 {
     using (SGDatabase_WClient client = SoapClientFactory.CreateSGDatabase_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.IsExistsCommonType(validationTicket, code));
     }
 }
예제 #7
0
 public bool DeleteGroupByKey(string groupCode)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_DeleteGroupByKey(loginTicket, groupCode));
     }
 }
예제 #8
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);
     }
 }
예제 #9
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));
     }
 }
예제 #10
0
 public bool TestConnection()
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.TestConnection(validationTicket));
     }
 }
예제 #11
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));
     }
 }
예제 #12
0
 private static void GetClient(IExactTargetConfiguration config)
 {
     _SharedClent = new SharedRequestClient(config);
     triggeredSendDefinitionClient = new TriggeredSendDefinitionClient(config);
     _dataExtensionClient          = new DataExtensionClient(config);
     _deliveryProfileClient        = new DeliveryProfileClient(config);
     _Client = SoapClientFactory.Manufacture(config);
 }
예제 #13
0
 public bool IsExistsItemClass(string FNumber)
 {
     using (SGDatabase_WClient client = SoapClientFactory.CreateSGDatabase_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.IsExistsItemClass(validationTicket, FNumber));
     }
 }
 public bool IsExistsCommonType(int code)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.IsExistsCommonType(loginTicket, code));
     }
 }
예제 #15
0
 public bool DeleteItemDesc(string fid)
 {
     using (SGDatabase_WClient client = SoapClientFactory.CreateSGDatabase_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.DeleteItemDesc(validationTicket, fid));
     }
 }
예제 #16
0
 public bool CheckNoExists(string TableName, string SqlCondition)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.CheckNoExistsBySql(loginTicket, TableName, SqlCondition, _ORM.FullName));
     }
 }
예제 #17
0
 public bool AddCommonType(string fid, string code, string name)
 {
     using (SGDatabase_WClient client = SoapClientFactory.CreateSGDatabase_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.AddCommonType(validationTicket, fid, code, name));
     }
 }
예제 #18
0
 public bool ExistsUser(string account)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.U_ExistsUser(loginTicket, account));
     }
 }
예제 #19
0
 public int GetFormAuthority(string account, int moduleID, string menuName)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_GetFormAuthority(loginTicket, account, moduleID, menuName));
     }
 }
예제 #20
0
 public bool ModifyPassword(string account, string pwd)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.U_ModifyPassword(loginTicket, account, pwd));
     }
 }
예제 #21
0
 public bool Delete(string keyValue)
 {
     using (SGBaseDict_WClient client = SoapClientFactory.CreateSGBaseDict_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.Delete(loginTicket, keyValue, _ORM.FullName));
     }
 }
예제 #22
0
 public void Logout(string account)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         client.U_Logout(loginTicket);
     }
 }
 public bool RestoreDatabase(string BKFILE, string DBNAME)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.RestoreDatabase(BKFILE, DBNAME));
     }
 }
예제 #24
0
 public bool SetOrder(string Upfid, string Downfid)
 {
     using (SGDatabase_WClient client = SoapClientFactory.CreateSGDatabase_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.SetOrder(validationTicket, Upfid, Downfid));
     }
 }
예제 #25
0
 public bool CheckNoExists(string keyValue)
 {
     using (InventoryModuleServiceClient client = SoapClientFactory.CreateInventoryModuleServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.IC_CheckNoExists(loginTicket, keyValue));
     }
 }
예제 #26
0
 public bool CheckNoExists(string groupCode)
 {
     using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_CheckNoExists(loginTicket, groupCode));
     }
 }
예제 #27
0
 public void ApprovalBusiness(string keyValue, string flagApp, string appUser, DateTime appDate)
 {
     using (InventoryModuleServiceClient client = SoapClientFactory.CreateInventoryModuleServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         client.IC_ApprovalBusiness(loginTicket, keyValue, flagApp, appUser, appDate);
     }
 }
 public bool CheckNoExists(string keyValue)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.CheckNoExists(loginTicket, keyValue, _ORM.FullName));
     }
 }
예제 #29
0
 public bool Delete(string keyValue)
 {
     using (AccountModuleServiceClient client = SoapClientFactory.CreateAccountModuleServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.AP_Delete(loginTicket, keyValue));
     }
 }
예제 #30
0
 public System.Data.DataTable GetSummaryByParam(string docNoFrom, string docNoTo, DateTime docDateFrom, DateTime docDateTo)
 {
     using (InventoryModuleServiceClient client = SoapClientFactory.CreateInventoryModuleServiceClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.IC_GetSummaryByParam(loginTicket, docNoFrom, docNoTo, docDateFrom, docDateTo);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
예제 #31
0
 public EmailSender(SoapClientFactory soapClientFactory)
 {
     _soapClientFactory = soapClientFactory;
 }