public static IEnumerable GetDebtsByPeriod(string accountID, DateTime b_period, DateTime e_period) { int i_owner = 1032; // код поставщика, выдаетс¤ администратором системы var client = new ServiceIntegratorClient(new ServiceIntegrator(ServiceUrl.Url)); string ticket = client.GetAuthorizationTicket(IdentityCredential.User, IdentityCredential.Password); var factory = new GetTRICDebtsByPeriodFactory(client); var xmlRoot = new XmlBuilder("Accounts"); var accountElement = new XmlBuilder("Account"); accountElement.AddAttribute("accountID", accountID); string b_period_str = b_period.ToString("dd.MM.yyyy"); string e_period_str = e_period.ToString("dd.MM.yyyy"); accountElement.AddAttribute("b_period", b_period_str); accountElement.AddAttribute("e_period", e_period_str); xmlRoot.AddElement(accountElement.Build()); string xmlAccounts = xmlRoot.Build().ToString(); var response = factory.Make(new object[] { i_owner, xmlAccounts }, ticket); return(response.Tables[0].Rows); }
public static IEnumerable GetLawsuits(int typeLawsuit) // 1-судебные приказы, 2-иски, 3-претензии { var client = new ServiceIntegratorClient(new ServiceIntegrator(ServiceUrl.Url)); string ticket = client.GetAuthorizationTicket(IdentityCredential.User, IdentityCredential.Password); var factory = new GetTRICLawsuitsFactory(client); var response = factory.Make(new object[] { typeLawsuit }, ticket); return(response.Tables[0].Rows); }
public void Setup() { string user = IdentityCredential.User; string password = IdentityCredential.Password; this.columnNamesInResponse = "[cod_pl],[for_period],[s_money],[address],[FIO],[i_house],[d_born]"; this.client = ServiceIntegratorClientFactory.Make(WebServiceUrl.Url); this.ticket = this.client.GetAuthorizationTicket(user, password); this.factory = new GetTRICDebtsByPeriodFactory(client); }
public static IEnumerable GetDebtsTotal(int i_lschet) { var client = new ServiceIntegratorClient(new ServiceIntegrator(ServiceUrl.Url)); string ticket = client.GetAuthorizationTicket(IdentityCredential.User, IdentityCredential.Password); var factory = new GetTRICDebtsTotalFactory(client); string i_owner = "1032"; // код поставщика: "Тепло Тюмени - филиал ПАО СУЭНКО" var response = factory.Make(new object[] { i_owner, i_lschet }, ticket); return(response.Tables[0].Rows); }
public void Setup() { string user = IdentityCredential.User; string password = IdentityCredential.Password; this.columnNamesInResponse = "[AccountID],[PeriodStr],[sumSaldo]"; this.client = ServiceIntegratorClientFactory.Make(WebServiceUrl.Url); this.ticket = this.client.GetAuthorizationTicket(user, password); this.factory = new GetTRICDebtsTotalFactory(client); }
public void SetUp() { // пользователя и пароль можно получить у администратора Гелиос string user = IdentityCredential.User; string password = IdentityCredential.Password; this.columnNamesInResponse = "cod_pl,i_people,FIO,d_born,isMain,PlaceBorn,b_period,e_period,periodName"; this.client = ServiceIntegratorClientFactory.Make(WebServiceUrl.Url); this.ticket = this.client.GetAuthorizationTicket(user, password); this.factory = new GetTRICLivingsFactory(client); }
public void SetUp() { // пользователя и пароль можно получить у администратора Гелиос string user = IdentityCredential.User; string password = IdentityCredential.Password; this.columnNamesInResponse = "[ID],[AccountID],[NumberID],[Address],[FIO],[DateBorn],[SumSaldo],[SumTax],[B_period],[E_period]"; this.columnNamesInResponse += ",[CreateDate],[Status],[UserName],[SumPaySaldo],[SumPayTax],[SumPeni],[SumPayPeni],[ServiceGroups],[SumActualDebt],[OrderNumber]"; this.client = ServiceIntegratorClientFactory.Make(WebServiceUrl.Url); this.ticket = this.client.GetAuthorizationTicket(user, password); this.factory = new GetTRICLawsuitsFactory(client); }
public static IEnumerable GetLivings(string accountID, int b_period, int e_period) { var client = new ServiceIntegratorClient(new ServiceIntegrator(ServiceUrl.Url)); string ticket = client.GetAuthorizationTicket(IdentityCredential.User, IdentityCredential.Password); var factory = new GetTRICLivingsFactory(client); var xmlRoot = new XmlBuilder("Accounts"); var accountElement = new XmlBuilder("Account"); accountElement.AddAttribute("accountID", accountID); accountElement.AddAttribute("b_period", b_period); accountElement.AddAttribute("e_period", e_period); xmlRoot.AddElement(accountElement.Build()); string xmlAccounts = xmlRoot.Build().ToString(); var response = factory.Make(new object[] { xmlAccounts, 3 }, ticket); return(response.Tables[0].Rows); }
public void Setup() { string user = IdentityCredential.User; string password = IdentityCredential.Password; this.columnNamesInResponse = "[i_lschet],[period],"; this.columnNamesInResponse += "[sum_nach_11],[sum_odn_11],[sum_opl_11],"; this.columnNamesInResponse += "[sum_nach_8],[sum_odn_8],[sum_opl_8],"; this.columnNamesInResponse += "[sum_nach_10],[sum_odn_10],[sum_opl_10],"; this.columnNamesInResponse += "[sum_nach_9],[sum_odn_9],[sum_opl_9],"; this.columnNamesInResponse += "[sum_total_nach],[sum_total_opl],[sum_total],[orderby]"; WSHttpBinding binding = new WSHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; binding.Security.Mode = SecurityMode.Transport; binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None; this.client = ServiceIntegratorClientFactory.Make(WebServiceUrl.Url); this.ticket = this.client.GetAuthorizationTicket(user, password); this.factory = new GetTRICDebtsByServicesFactory(client); }