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_SPLINE_LENGTH所对应的BLL类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/) /// 作者:tgcx-test 时间:2017-05-26 /// public class ComBaseSplineLengthBLL { private OpeBase _ob; public ComBaseSplineLengthBLL(OpeBase ob) { _ob = ob; } /// /// 查询 /// public List Query(string itemCodeC, string validflag) { List comBaseSplineLengthEntity = EntityHelper.GetData( "com.steering.pss.qcm.DAL.ComBaseSplineLengthDAL.Query", new object[] { itemCodeC, validflag }, _ob); return comBaseSplineLengthEntity; } /// /// 通过主键查询 /// public List QueryByPk(string Id) { List comBaseSplineLengthEntity = EntityHelper.GetData( "com.steering.pss.qcm.DAL.ComBaseSplineLengthDAL.QueryByPk", new object[] { Id }, _ob); return comBaseSplineLengthEntity; } /// /// 新增 /// public void Insert(List comBaseSplineLengthEntitys) { List jsons = new List(); foreach (var comBaseSplineLengthEntity in comBaseSplineLengthEntitys) { jsons.Add(JsonConvert.SerializeObject(comBaseSplineLengthEntity)); } ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBaseSplineLengthDAL.Insert", new object[] { jsons }, _ob); } /// /// 修改 /// public void Update(List comBaseSplineLengthEntitys) { List jsons = new List(); foreach (var comBaseSplineLengthEntity in comBaseSplineLengthEntitys) { jsons.Add(JsonConvert.SerializeObject(comBaseSplineLengthEntity)); } ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBaseSplineLengthDAL.Update", new object[] { jsons }, _ob); } /// /// 保存 /// public void Save(List comBaseSplineLengthEntitys) { List jsons = new List(); foreach (var comBaseSplineLengthEntity in comBaseSplineLengthEntitys) { jsons.Add(JsonConvert.SerializeObject(comBaseSplineLengthEntity)); } ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBaseSplineLengthDAL.Save", new object[] { jsons }, _ob); } /// /// 修改作废标志 /// public void UpdateValidflag(List comBaseSplineLengthEntitys, string validflag) { List jsons = new List(); foreach (var comBaseSplineLengthEntity in comBaseSplineLengthEntitys) { jsons.Add(JsonConvert.SerializeObject(comBaseSplineLengthEntity)); } ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBaseSplineLengthDAL.UpdateValidflag", new object[] { jsons, validflag }, _ob); } } }