コード例 #1
0
 public void InsertFundBankAccount(PartyBankAccount bankAccount)
 {
     if (fundBankAccounts == null)
     {
         fundBankAccounts = new List <PartyBankAccount>();
     }
     fundBankAccounts.Add(bankAccount);
 }
コード例 #2
0
    private void BAOToBA(PartyBankAccount pba, out IList <BankAccount> bankAccountLists)
    {
        IList <BankAccount> BankAccountLists = new List <BankAccount>();

        foreach (BankAccountOwner bao in pba.Party.GetBankAccounts(iSabayaContext, DateTime.Today))
        {
            BankAccountLists.Add(bao.BankAccount);
        }
        bankAccountLists = BankAccountLists;
    }
コード例 #3
0
    protected String fundAndBankNameCallBack()
    {
        JsonObjectCollection obj   = new JsonObjectCollection();
        PartyBankAccount     fbank = this.PartyBankAccount;
        String Result;

        if (fbank != null)
        {
            obj.Add(new JsonStringValue("fundname", fbank.Party.FullName));
            obj.Add(new JsonStringValue("bank", fbank.BankAccount.Bank.Code.ToString()
                                        + " สาขา: " + fbank.BankAccount.Bank.OrgUnits.ToString()
                                        + " เลขที่บัญชี: " + fbank.AccountNo.ToString()));
            Result = obj.ToString();
        }
        else
        {
            Result = "ไม่พบบัญชี!";
        }
        return(Result);
    }
コード例 #4
0
    public IList <BankAccount> accountType()
    {
        IList <BankAccount> type = BankAccount.List(iSabayaContext);
        IList <BankAccount> tt   = new List <BankAccount>();

        foreach (BankAccount a in type)
        {
            IList <PartyBankAccount> pba = PartyBankAccount.Find(iSabayaContext, a.BankAccountID);
            if (combotype != null)
            {
                if (combotype.SelectedItem.Value.ToString() == "3")
                {
                    if (pba.Count == 0)
                    {
                        tt.Add(a);
                    }
                }
                else if (combotype.SelectedItem.Value.ToString() == "2")
                {
                    foreach (PartyBankAccount b in pba)
                    {
                        if (b.Party is MFAccount)
                        {
                            tt.Add(a);
                        }
                    }
                }
                else
                {
                    foreach (PartyBankAccount b in pba)
                    {
                        if (b.Party is Fund)
                        {
                            tt.Add(a);
                        }
                    }
                }
            }
        }
        return(tt);
    }
コード例 #5
0
    private IList <BankAccount> ComplicatedBankAccountLists()
    {
        IList <BankAccount> BankAccountLists = new List <BankAccount>();

        if (this.includeAllBankAccounts)
        {
            BankAccountLists = BankAccount.List(iSabayaContext);
        }
        else
        {
            foreach (PartyBankAccount pba in PartyBankAccount.List(iSabayaContext))
            {
                if (pba.EffectivePeriod.Includes(DateTime.Today))
                {
                    if (pba.Party.Type == typeof(Incognito) && this.isIncognito)
                    {
                        BAOToBA(pba, out BankAccountLists);
                    }
                    if (pba.Party.Type == typeof(MFAccount) && this.isMFAccount)
                    {
                        BAOToBA(pba, out BankAccountLists);
                    }
                    if (pba.Party.Type == typeof(MutualFund) && this.isMutualFund)
                    {
                        BAOToBA(pba, out BankAccountLists);
                    }
                    if (pba.Party.Type == typeof(Organization) && this.isOrganization)
                    {
                        BAOToBA(pba, out BankAccountLists);
                    }
                    if (pba.Party.Type == typeof(Person) && this.isPerson)
                    {
                        BAOToBA(pba, out BankAccountLists);
                    }
                }
            }
        }

        return(BankAccountLists);
    }
コード例 #6
0
 public VOFundBankAccount(imSabayaContext context, PartyBankAccount instance)
 {
     this.instance = instance;
     this.context  = context;
 }
コード例 #7
0
 public VOAssociatedBankAccount(PartyBankAccount assBankAccount)
 {
     this.associatedBankAccount = assBankAccount;
 }