public void get总成本表() { for (int i = 1; i <= globalpara.yyq运营期; i++) { zcb总成本 zcb = new zcb总成本(); zcb总成本List.Add(zcb); } }
public lrsheet利润表 initlr利润表(lrsheet利润表 lrsheet) { for (int i = 1; i <= globalpara.yyq运营期; i++) { lr利润 lr = new lr利润(); lr.year = i; lr.revenue收入 = revenue收入List.Where(x => x.year == i).First(); lr.butie补贴收入 = butie补贴收入List.Where(x => x.year == i).First(); //总成本初始化 zcb总成本 zcb = new zcb总成本(); zcb.year = i; zcb.jycb经营成本 = jycb经营成本List.Where(x => x.year == i).First(); zcb.tx摊销 = txlist.Where(x => x.year == i).First(); zcb.zj折旧 = qzlist.Where(x => x.period == i).First(); jklx借款还本利息 jk = new jklx借款还本利息(); jk.year = i; zcb.jklx借款还本利息 = jk; zcb.cal计算相关参数(); lr.zcb总成本 = zcb; zcb总成本List.Add(zcb); //增值税初始化 zzs增值税 zzs增值税 = new zzs增值税(); if (i == 1) { zzs增值税.qc期初固定资产增值税可抵扣进行税额 = ass.kdk可抵扣固定资产进项税额; } zzs增值税.xxsdq当期销项税 = lr.revenue收入.revenue含税收入值 * globalpara.zzs增值税税率; zzs增值税.jxsdq当期进项税 = lr.zcb总成本.jycb经营成本.jy含进项税经营成本值 * globalpara.zzs增值税税率; zzs增值税.qc当期增值税余额_销项税减去进项税 = zzs增值税.xxsdq当期销项税 - zzs增值税.jxsdq当期进项税; zzs增值税List.Add(zzs增值税); if (zzs增值税.qc当期增值税余额_销项税减去进项税 <= 0) { zzs增值税.zzx当期增值税应纳税额 = 0; } if (zzs增值税.qc当期增值税余额_销项税减去进项税 > 0) {//已经考虑到本年累计进去,如果累计到本年值含本年,与本年进行比较,如果大于0,那么就 double value = zzs增值税List.Where(x => x.year <= i).Sum(y => y.qc当期增值税余额_销项税减去进项税); if (value > 0) { if (zzs增值税.qc当期增值税余额_销项税减去进项税 >= value) { //说明历史上已经补完负值,并且也不是今年补的,目前暂时不考虑每年的销项税小于进项税的情况, zzs增值税.zzx当期增值税应纳税额 = zzs增值税.qc当期增值税余额_销项税减去进项税; } else {//说明历史上的负值,是今年补的 zzs增值税.zzx当期增值税应纳税额 = zzs增值税.qc当期增值税余额_销项税减去进项税 - value; } } else { zzs增值税.zzx当期增值税应纳税额 = 0; } } zzs增值税.zzx当期增值税附加 = zzs增值税.zzx当期增值税应纳税额 * globalpara.zzs增值税附加综合税率; zzs增值税List.Add(zzs增值税); lr.zzs增值税 = zzs增值税; lr.lr利润list = lrsheet.lr利润list; //下面增加借款的内容 // lr.zcb总成本.jklx借款还本利息.jkldzj流动资金借款 = zcb总成本List.Where(x => x.year == i).First().jklx借款还本利息.jkldzj流动资金借款; //lr.zcb总成本.jklx借款还本利息.jk建设期借款还本付息 = zcb总成本List.Where(x => x.year == i).First().jklx借款还本利息.jk建设期借款还本付息; //lr.zcb总成本.jklx借款还本利息.jk短期借款 = zcb总成本List.Where(x => x.year == i).First().jklx借款还本利息.jk短期借款; lrsheet.lr利润list.Add(lr); } return(lrsheet); }