tijian_tieying/web/dccdc.BLL/chargeBll.cs
2025-02-20 12:14:39 +08:00

198 lines
5.4 KiB
C#

using dccdc.DAL;
using dccdc.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dccdc.BLL
{
public class chargeBll
{
private chargeDal Dal = new chargeDal();
public int getCount(string key)
{
return Dal.getCount(key);
}
public object getSFTJ()
{
return Dal.getSFTJ();
}
public object getmonthjf()
{
return Dal.getmonthjf();
}
public List<chargeModel> getList(int page, int pagesize, string key)
{
return Dal.getList(page, pagesize, key);
}
public List<chargeModel> GetAllList(string id)
{
return Dal.GetAllList(id);
}
public List<chargeModel> GetAllList2(string start, string end, string jfbm, string where, string print)
{
return Dal.GetAllList2(start, end, jfbm, where, print);
}
public List<chargeModel> GetAllList3(string start, string end,string tm, string person)
{
return Dal.GetAllList3(start, end,tm, person);
}
//疫苗情况统计
public IEnumerable<dynamic> getYmList(string start, string end, string user)
{
return Dal.getYmList(start, end, user);
}
public List<charge_detailModel> GetAllList2List(string chargeid)
{
return Dal.GetAllList2List(chargeid);
}
public object save(chargeModel ct, ERPUser user)
{
return Dal.save(ct, user);
}
public object saveYmyy(ym_yyjl yyjl)
{
return Dal.saveYmyy(yyjl);
}
public int opSave1(string jfdw, string register_num, string jfbm, string jffs, string ysje, string items, ERPUser user, string type, string jmsq, string jdbm, string ertbm)
{
return Dal.opSave1(jfdw, register_num, jfbm, jffs, ysje, items, user, type, jmsq, jdbm, ertbm);
}
public bool opSave(string jfdw, string jfbm, string jffs, string ysje, string items, string truename, string jdbm)
{
return Dal.opSave(jfdw, jfbm, jffs, ysje, items, truename, jdbm);
}
public string getInvoice(string truename, string sort)
{
return Dal.getInvoice(truename, sort);
}
public object opPrint(string fpdid, string fplx, string fpbh, string jfid, string jfry, string jfdw, string jffs, string jfbm, string jfje, string bz, string items, string truename,string zfm)
{
return Dal.opPrint(fpdid, fplx, fpbh, jfid, jfry, jfdw, jffs, jfbm, jfje, bz, items, truename,zfm);
}
public Models.chargeModel getModel(string id)
{
//throw new NotImplementedException();
return Dal.getModel(id);
}
public Models.DTO.YMJFXX getYYJFXX(string code)
{
//throw new NotImplementedException();
return Dal.getYYJFXX(code);
}
public Models.DTO.YMJFXX getTJJFXX(string code)
{
//throw new NotImplementedException();
return Dal.getTJJFXX(code);
}
public void UpdateZfCode(string id, string zfid)
{
//throw new NotImplementedException();
Dal.UpdateZfCode(id, zfid);
}
public void UpdateZfzt(string zfid,string t="微信")
{
// throw new NotImplementedException();
Dal.UpdateZfzt(zfid,t);
}
/// <summary>
/// 获取收费信息,用于打开收费单
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public Models.chargeModel getsfxx(string id)
{
return Dal.getsfxx(id);
}
public List<Models.charge_detailModel> getsfmx(string id)
{
return Dal.getsfmx(id);
}
//结算
public List<chargeModel> GetBalance(string truename,string rq)
{
return Dal.GetBalance(truename,rq);
}
public object SaveBalance(string ids)
{
return Dal.SaveBalance(ids);
}
public object getMRSFHZ(string b, string e)
{
//throw new NotImplementedException();
var rows= Dal.getMRSFHZ(b, e);
return new
{
Rows = rows,
Total = rows.Count
};
}
public object getYMSFTJ(string b, string e)
{
//throw new NotImplementedException();
var rows = Dal.getYMSFTJ(b, e);
return new
{
Rows = rows,
Total = rows.Count
};
}
//public OperationResult saveYmyy(ym_yyjl yyjl)
//{
// return Dal.saveYmyy(yyjl);
//}
public List<ym_jzlc> getyyymlist(string tag)
{
//throw new NotImplementedException();
return Dal.getyyymlist(tag);
}
public List<BDXX> getbdxx(string tag)
{
//throw new NotImplementedException();
return Dal.getbdxx(tag);
}
public JiezhongmianyitiaomaModel getetxx(string tag)
{
return Dal.getetxx(tag);
}
public ym_yyjl getyyxx(string tag)
{
//throw new NotImplementedException();
return Dal.getyyxx(tag);
}
}
}