Ejemplo n.º 1
0
        public BondDetail getBondDetails(string bond)
        {
            bus_Bond      bus  = new bus_Bond();
            BondDetail    rs   = new BondDetail();
            T_BOND_STATIC item = bus.GetBondStaticByCode(bond, "CTCK");

            if (item != null && item.BOND_ID > 0)
            {
                rs.Bond     = item.BOND_CODE;
                rs.BondName = "Trái phiếu " + item.CUSTOMER_NAME;
                //List<sp_bond_interest_Result> rsList = bus.getBondInterestList(bond);
                //if (rsList.Count() > 0)
                //{
                //    rs.interestInfo = new InterestInfo[rsList.Count()];
                //    for (int i = 0;i <rsList.Count(); i++) {
                //        sp_bond_interest_Result re = rsList.ElementAt(i);
                //        InterestInfo inf = new InterestInfo();
                //        inf.Term = re.TERM.ToString();
                //        inf.Coupon = re.INTEREST.ToString();
                //        rs.interestInfo[i] = inf;
                //    }
                //}
            }


            return(rs);
        }
Ejemplo n.º 2
0
        public List <BondItem> getListBonds()
        {
            bus_Bond             bus       = new bus_Bond();
            List <BondItem>      bondsList = new List <BondItem>();
            List <V_BOND_STATIC> bondsAll  = bus.GetListAllBondStatic(16);

            foreach (V_BOND_STATIC item in bondsAll)
            {
                BondItem bond = new BondItem();
                bond.Bond      = item.BOND_CODE;
                bond.Termmin   = "1";
                bond.Termmax   = "10";
                bond.Couponmin = "5.5";
                bond.Couponmax = "10.5";
                bond.Amount    = "5000000000";
                bond.Category  = "O";
                bondsList.Add(bond);
            }
            return(bondsList);
        }