using Core.Mes.Client.Comm.Server; using Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.Qcm.model; using CoreFS.CA06; using Newtonsoft.Json; using System.Collections.Generic; namespace Core.StlMes.Client.Qcm.BLL { /// /// 数据库表COM_BASE_IMPACT_C所对应的BLL类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/) /// 作者:tgcx-test 时间:2017-05-25 /// public class ComBaseImpactCBLL { private OpeBase _ob; public ComBaseImpactCBLL(OpeBase ob) { _ob = ob; } /// /// 查询 /// public List Query(string id, string validflag) { List comBaseImpactCEntity = EntityHelper.GetData( "com.steering.pss.qcm.DAL.ComBaseImpactCDAL.Query", new object[] { id, validflag }, _ob); return comBaseImpactCEntity; } /// /// 通过主键查询 /// public List QueryByPk(string Id, string IndexSeq) { List comBaseImpactCEntity = EntityHelper.GetData( "com.steering.pss.qcm.DAL.ComBaseImpactCDAL.QueryByPk", new object[] { Id, IndexSeq }, _ob); return comBaseImpactCEntity; } /// /// 新增 /// public void Insert(List comBaseImpactCEntitys) { List jsons = new List(); foreach (var comBaseImpactCEntity in comBaseImpactCEntitys) { jsons.Add(JsonConvert.SerializeObject(comBaseImpactCEntity)); } ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBaseImpactCDAL.Insert", new object[] { jsons }, _ob); } /// /// 修改 /// public void Update(List comBaseImpactCEntitys) { List jsons = new List(); foreach (var comBaseImpactCEntity in comBaseImpactCEntitys) { jsons.Add(JsonConvert.SerializeObject(comBaseImpactCEntity)); } ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBaseImpactCDAL.Update", new object[] { jsons }, _ob); } /// /// 保存 /// public void Save(List comBaseImpactCEntitys) { List jsons = new List(); foreach (var comBaseImpactCEntity in comBaseImpactCEntitys) { jsons.Add(JsonConvert.SerializeObject(comBaseImpactCEntity)); } ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBaseImpactCDAL.Save", new object[] { jsons }, _ob); } /// /// 修改作废标志 /// public void UpdateValidflag(List comBaseImpactCEntitys, string validflag) { List jsons = new List(); foreach (var comBaseImpactCEntity in comBaseImpactCEntitys) { jsons.Add(JsonConvert.SerializeObject(comBaseImpactCEntity)); } ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBaseImpactCDAL.UpdateValidflag", new object[] { jsons, validflag }, _ob); } } }