public string getsimpleBankAccount() { PersonAccountService ps = new PersonAccountService(); SimpleAccountDto simpleAccountDto = ps.GetSimpleBankAccount("0/0/0"); return(simpleAccountDto != null ? simpleAccountDto.Description : "0"); }
public string gerpersonsbyaccount() { PersonAccountService ps = new PersonAccountService(); List <PersonDto> personDtos = ps.GetPersonByAccount("1/0/0"); return("yes"); }
public object getPersonByNationalIdentity() { PersonAccountService personAccountService = new PersonAccountService(); PersonDto personDto = personAccountService.GetPersonByNationalIdentity("1"); return(null); }
public void Creat_Request() { LoanRequestDto loanRequestDto = new LoanRequestDto { Id = Guid.NewGuid(), AccountCode = "1/0/0", Amount = 1000, Date = 13911102, Description = "vam" }; PersonAccountService ps = new PersonAccountService(); string str = ps.AddLoanRequest(loanRequestDto); }
public void Creat_RequestAve(Guid id) { PersonAccountService ps = new PersonAccountService(); RequestAccountAveDto requestAccountAveDto = new RequestAccountAveDto { AccountCode = "2/0/0", AverageId = 1, AverageQty = 90, ConsumedQty = 80, DebtQty = 70, fromDate = 911008, LastBalance = 68, LastDate = 0, ReqNo = 1, Id = Guid.NewGuid() }; string str = ps.AddRequestAccountAve(id, requestAccountAveDto); }
public void Creat_RequestOkyAss(Guid id) { PersonAccountService ps = new PersonAccountService(); LoanRequestOkyDto loanRequestOkyDto = new LoanRequestOkyDto(); loanRequestOkyDto.ReqNo = 1; loanRequestOkyDto.OKyDate = 13911032; loanRequestOkyDto.OkyAss = "moavenreis"; string str = ps.AddOrUpdateLoanRequestOkyAssistant(id, loanRequestOkyDto); }
public object GetPersonByAccountTest() { // AccountRepository repository = new AccountRepository(); // Account account = repository.ActiveContext.Accounts.Include("Lawyers.Person").Include("Customers.Person").FirstOrDefault(a => a.Code == "1/0/0"); // var firstnames = account.Lawyers.Select(o => o.Person.Firstname).Union(account.Customers.Select(a => a.Person.Firstname)).ToList(); PersonAccountService personAccountService = new PersonAccountService(); List <PersonDto> list = personAccountService.GetPersonByAccount("1/0/0"); return(null); }
public string AddCustomerToAccount(Guid accountId, Guid id) { CustomerDto customerDto = new CustomerDto(); customerDto.PersonId = id; customerDto.No = "4"; customerDto.Portion = 1; PersonAccountService personAccountService = new PersonAccountService(); personAccountService.AddCustomerToAccount(accountId, customerDto); return("completed"); }
public void AddIndexAccountTest(Guid id) { IndexAccountDto indexAccountDto = new IndexAccountDto(); indexAccountDto.Code = "2/0"; indexAccountDto.Description = "Bank mell"; indexAccountDto.HaveAccounts = true; indexAccountDto.GeneralAccountCode = 4; indexAccountDto.RowId = 0; indexAccountDto.GeneralAccountId = id; PersonAccountService pa = new PersonAccountService(); string str = pa.AddIndexAccount(indexAccountDto); }
public void AddGeneralAccountTest() { GeneralAccountDto generalAccountDto = new GeneralAccountDto(); generalAccountDto.Category = 1; generalAccountDto.Code = 7; generalAccountDto.Description = "bank"; PersonAccountService pa = new PersonAccountService(); pa.AddGeneralAccount(generalAccountDto); // GeneralAccountRepository repository = new GeneralAccountRepository(); // Assert.True(repository.ActiveContext.GeneralAccounts.Where(ga => ga.Code == 15).Count() == 1); }
public void AddAccountTest(Guid id) { AccountDto accountDto = new AccountDto(); accountDto.Code = "2/0/0"; accountDto.Balance = 10000; accountDto.Description = "bank melli 213"; accountDto.IndexAccountId = id; accountDto.IndexAccountCode = "2/0"; accountDto.RowId = 0; accountDto.No = "120000"; PersonAccountService pa = new PersonAccountService(); string str = pa.AddAccount(accountDto); }
public void AddPersonTest1(Guid id) { PersonDto personDto = new PersonDto(); personDto.HeadNationalIdentity = "1245"; personDto.Id = id; personDto.CustomerId = 10; personDto.Firstname = "ali"; personDto.FatherName = "ahmad"; personDto.Lastname = "rezai"; personDto.ShobehCode = 1; personDto.HomeAddress = "babol"; personDto.HomeTelno = "145789+"; personDto.NationalIdentity = "198598"; PersonAccountService pa = new PersonAccountService(); string str = pa.AddPerson(personDto); }
public void AddPersonTest() { PersonDto personDto = new PersonDto(); personDto.HeadNationalIdentity = "12451"; //personDto.Id = Guid.NewGuid(); // personDto.CustomerId = 10; personDto.Firstname = "ali1"; personDto.FatherName = "ahmad1"; personDto.Lastname = "rezai1"; personDto.ShobehCode = 11; personDto.HomeAddress = "babol1"; personDto.HomeTelno = "145789+"; personDto.NationalIdentity = "56457611"; PersonAccountService pa = new PersonAccountService(); string str = pa.AddPerson(personDto); }
public int AddPersonTest2() { PersonAccountService pa = new PersonAccountService(); PersonDto personDto = new PersonDto { BirthDate = 13910102, CretyId = "1", CretySerial = "2", FatherName = "ahmad", Firstname = "ali", HomeAddress = "babol", NationalIdentity = "1", HomeTelno = "1245", HeadNationalIdentity = "2" }; pa.AddPerson(personDto); return(100); }
public void GetIndexAccountTest() { PersonAccountService pa = new PersonAccountService(); IndexAccountDto indexAccountDto = pa.GetIndexAccount("1/0"); var a = indexAccountDto.Description; }
public void removePerson(Guid id) { PersonAccountService personAccountService = new PersonAccountService(); string str = personAccountService.RemovePerson(id); }
public void GetPersonTest() { PersonAccountService pa = new PersonAccountService(); PersonDto personDto = pa.GetPersonByNationalIdentity("198598"); var a = personDto.NationalIdentity; }
public void GetGeneraAccountTest() { PersonAccountService pa = new PersonAccountService(); GeneralAccountDto generalAccountDto = pa.GetGeneralAccount(1); var a = generalAccountDto.Description; }
public void GetAccountTest() { PersonAccountService ps = new PersonAccountService(); AccountDto accountDto = ps.GetAccount("1/0/0"); var a = accountDto.RowId; }