public void SyncServerTime() { using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient()) { client.SyncServerTime(); } }
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)); } }
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)); } }
public bool IsExistsCommonType(string code) { using (SGDatabase_WClient client = SoapClientFactory.CreateSGDatabase_WClient()) { byte[] validationTicket = WebServiceSecurity.GetLoginTicket(); return(client.IsExistsCommonType(validationTicket, code)); } }
public bool DeleteGroupByKey(string groupCode) { using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient()) { byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser); return(client.G_DeleteGroupByKey(loginTicket, groupCode)); } }
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); } }
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)); } }
public bool TestConnection() { using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient()) { byte[] validationTicket = WebServiceSecurity.GetLoginTicket(); return(client.TestConnection(validationTicket)); } }
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)); } }
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); }
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)); } }
public bool DeleteItemDesc(string fid) { using (SGDatabase_WClient client = SoapClientFactory.CreateSGDatabase_WClient()) { byte[] validationTicket = WebServiceSecurity.GetLoginTicket(); return(client.DeleteItemDesc(validationTicket, fid)); } }
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)); } }
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)); } }
public bool ExistsUser(string account) { using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient()) { byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser); return(client.U_ExistsUser(loginTicket, account)); } }
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)); } }
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)); } }
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)); } }
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)); } }
public bool SetOrder(string Upfid, string Downfid) { using (SGDatabase_WClient client = SoapClientFactory.CreateSGDatabase_WClient()) { byte[] validationTicket = WebServiceSecurity.GetLoginTicket(); return(client.SetOrder(validationTicket, Upfid, Downfid)); } }
public bool CheckNoExists(string keyValue) { using (InventoryModuleServiceClient client = SoapClientFactory.CreateInventoryModuleServiceClient()) { byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser); return(client.IC_CheckNoExists(loginTicket, keyValue)); } }
public bool CheckNoExists(string groupCode) { using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient()) { byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser); return(client.G_CheckNoExists(loginTicket, groupCode)); } }
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)); } }
public bool Delete(string keyValue) { using (AccountModuleServiceClient client = SoapClientFactory.CreateAccountModuleServiceClient()) { byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser); return(client.AP_Delete(loginTicket, keyValue)); } }
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]); } }
public EmailSender(SoapClientFactory soapClientFactory) { _soapClientFactory = soapClientFactory; }