Esempio n. 1
0
        public void exec等额还本利息照付()
        {
            compute计算所需参数类 com = new cwpj.compute计算所需参数类();

            com.hkzq还款周期   = 4;
            com.rate       = 0.06;
            com.jsqjk建设期借款 = 2060;
            policy还款策略 pl = new Policy等额还本利息照付(com);

            pl.exec();


            int    hkzq还款周期 = 4;
            double rate     = 0.06;

            jkFirst.qmjkye期末借款余额 = jsqjk建设期借款;
            jkFirst.sxh顺序号       = 1;
            jklist.Add(jkFirst);

            for (int i = 1; i <= hkzq还款周期; i++)
            {
                jk借款还本付息 jk = new jk借款还本付息();
                //取集合中顺序号最大的,然后取它的期末借款金额,然后把它作为年初的金额
                jk.qcjkye期初借款余额 = jklist.OrderByDescending(x => x.sxh顺序号).First().qmjkye期末借款余额;
                jk.sxh顺序号       = jklist.OrderByDescending(x => x.sxh顺序号).First().sxh顺序号 + 1;
                jk.dqhb当期还本     = jsqjk建设期借款 / hkzq还款周期;
                jk.dqfx当期付息     = jk.qcjkye期初借款余额 * rate;
                jk.qmjkye期末借款余额 = jk.qcjkye期初借款余额 - jk.dqhb当期还本;
                jklist.Add(jk);
            }
        }
Esempio n. 2
0
        public List <jk建设期借款还本付息> get等额还本付息照付()
        {
            //compute计算所需参数类 com = new cwpj.compute计算所需参数类();
            globalpara.hkzq还款周期     = 4;
            globalpara.jsqjk建设期借款利息 = 0.06;
            globalpara.jsqjk建设期借款金额 = 2060;
            policy还款策略 pl = new Policy等额还本利息照付(lrsheet利润表, this);

            jk建设期借款还本付息list = pl.exec();
            return(jk建设期借款还本付息list);
        }