Пример #1
0
        public BillCollectionForm()
        {
            InitializeComponent();
            IList <Model.AtBillsIncome> billList = billIncomeManager.SelectAtBillsIncomeByBillsOften("0", null);

            bList = new List <Model.AtBillsIncome>();
            if (billList != null)
            {
                foreach (Model.AtBillsIncome i in billList)
                {
                    Model.AtBankAccount at = bankAccountManager.Get(i.CollectionAccount);
                    Model.Customer      cu = new BL.CustomerManager().Get(i.PassingObject);
                    if (at != null)
                    {
                        i.C = at.BankAccountName;
                    }
                    if (cu != null)
                    {
                        i.A = cu.ToString();
                    }
                    bList.Add(i);
                }
            }
            this.bindingSourcestringbillsOften.DataSource = billList;
            //this.bindingSourceAtBankAccount.DataSource = bankAccountManager.Select();
        }
Пример #2
0
        private void lookUpEditCollectionAccount_EditValueChanged(object sender, EventArgs e)
        {
            string collectionAccount = "";

            if (this.lookUpEditCollectionAccount.EditValue != null)
            {
                collectionAccount = this.lookUpEditCollectionAccount.EditValue.ToString();
            }
            IList <Model.AtBillsIncome> billList = billIncomeManager.SelectAtBillsIncomeByBillsOften("尚未兌現", collectionAccount);

            bList = new List <Model.AtBillsIncome>();
            if (billList != null)
            {
                foreach (Model.AtBillsIncome i in billList)
                {
                    Model.AtBankAccount at = bankAccountManager.Get(i.CollectionAccount);
                    Model.Customer      cu = new BL.CustomerManager().Get(i.PassingObject);
                    if (at != null)
                    {
                        i.C = at.BankAccountName;
                    }
                    if (cu != null)
                    {
                        i.A = cu.Id;
                        i.B = cu.CustomerFullName;
                    }
                    bList.Add(i);
                }
            }
            this.bindingSourcestringbillsOften.DataSource = bList;
        }
Пример #3
0
        private void Binds(string acount)
        {
            IList <Model.AtBillsIncome> billList = billIncomeManager.SelectAtBillsIncomeByBillsOften("尚未兌現", acount);

            bList = new List <Model.AtBillsIncome>();
            if (billList != null)
            {
                foreach (Model.AtBillsIncome i in billList)
                {
                    Model.AtBankAccount at = bankAccountManager.Get(i.CollectionAccount);
                    Model.Customer      cu = new BL.CustomerManager().Get(i.PassingObject);
                    if (at != null)
                    {
                        i.C = at.BankAccountName;
                    }
                    if (cu != null)
                    {
                        i.A = cu.Id;
                        i.B = cu.CustomerFullName;
                    }
                    bList.Add(i);
                }
            }
            this.bindingSourcestringbillsOften.DataSource = bList;
        }