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