using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using QMFrameWork.Data; using QMAPP.Entity; using QMAPP.FJC.Entity.Operation; using QMAPP.FJC.Entity.ProduceManage; using QMAPP.DAL; using QMFrameWork.Log; using QMAPP.FJC.Entity.Stocktaking; namespace QMAPP.FJC.DAL.Operation { /// /// 模块名称:Bom详细信息 /// 作 者:张松男 /// 编写日期:2021年03月17日 /// public class PbomItemDAL : BaseDAL { /// /// 获取全部规则 /// /// public List Get(string MATERIAL_CODE) { try { string sql = $"SELECT * FROM [T_MD_PBOM_ITEM] where MATERIAL_CODE = '{MATERIAL_CODE}'"; List parameters = new List(); using (IDataSession session = AppDataFactory.CreateMainSession()) { return session.GetList(sql, parameters.ToArray()).ToList(); } } catch (Exception ex) { throw ex; } } } }