| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Core.Mes.Client.Comm.Format;
- using Core.Mes.Client.Comm.Tool;
- using CoreFS.CA06;
- using Core.Mes.Client.Comm.Server;
- using System.Data;
- namespace Core.StlMes.Client.SaleOrder.BLL
- {
- public class CraftOrdDesignStdGicBLL
- {
- private OpeBase _ob;
- public CraftOrdDesignStdGicBLL(OpeBase ob)
- {
- _ob = ob;
- }
- /// <summary>
- /// 查询质量设计加工
- /// </summary>
- /// <param name="designStdGicEntity"></param>
- /// <returns></returns>
- public List<CraftOrdDesignStdGicEntity> Query(CraftOrdDesignStdGicEntity designStdGicEntity)
- {
- List<CraftOrdDesignStdGicEntity> designStdGicEntityList = EntityHelper.GetData<CraftOrdDesignStdGicEntity>(
- "com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.query", new object[] { JSONFormat.Format(designStdGicEntity) }, _ob);
- return designStdGicEntityList;
- }
- /// <summary>
- /// 查询质量设计加工
- /// </summary>
- /// <param name="designStdGicEntity"></param>
- /// <returns></returns>
- public List<CraftOrdDesignStdGicEntity> QueryByDesignKeyGic(string[] parms)
- {
- List<CraftOrdDesignStdGicEntity> designStdGicEntityList = EntityHelper.GetData<CraftOrdDesignStdGicEntity>(
- "com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.queryByDesignKeyGic", new object[] { parms }, _ob);
- return designStdGicEntityList;
- }
- /// <summary>
- /// 通过DESIGN_KEY查询质量设计加工
- /// </summary>
- /// <param name="designStdGicEntity"></param>
- /// <returns></returns>
- public List<CraftOrdDesignStdGicEntity> QueryGicByDesignKey(CraftOrdDesignStdGicEntity designStdGicEntity)
- {
- List<CraftOrdDesignStdGicEntity> designStdGicEntityList = EntityHelper.GetData<CraftOrdDesignStdGicEntity>(
- "com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.queryGicByDesignKey", new object[] { JSONFormat.Format(designStdGicEntity) }, _ob);
- return designStdGicEntityList;
- }
- /// <summary>
- /// 保存
- /// </summary>
- public void Save(List<CraftOrdDesignStdGicEntity> craftOrdDesignStdGicEntitys)
- {
- List<string> jsons = new List<string>();
- foreach (var craftOrdDesignStdGicEntity in craftOrdDesignStdGicEntitys)
- {
- jsons.Add(JSONFormat.Format(craftOrdDesignStdGicEntity));
- }
- ServerHelper.SetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.Save", new object[] { jsons }, _ob);
- }
- /// <summary>
- /// 删除
- /// </summary>
- public void Delete(List<CraftOrdDesignStdGicEntity> craftOrdDesignStdGicEntitys)
- {
- List<string> jsons = new List<string>();
- foreach (var craftOrdDesignStdGicEntity in craftOrdDesignStdGicEntitys)
- {
- jsons.Add(JSONFormat.Format(craftOrdDesignStdGicEntity));
- }
- ServerHelper.SetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.Delete", new object[] { jsons }, _ob);
- }
- /// <summary>
- /// 获取工艺评审制程
- /// </summary>
- /// <param name="designKey"></param>
- /// <returns></returns>
- public DataTable getCraftMscPline(string designKey, string processCode)
- {
- return ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.getCraftMscPline",
- new object[] { designKey, processCode }, _ob);
- }
- }
- }
|