示例#1
0
    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);
    }
示例#2
0
        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);
        }