public FDIGetWOrderDetail GetFDIGetWOrderDetailById(string Id) { using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>()) { FDIGetWOrderDetail model = FDIGetWOrderDetailBLL.GetFirstOrDefault(Id); return(model); } }
public int GetFDIGetWOrderDetailCount(string sWhere) { Expression <Func <FDIGetWOrderDetail, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIGetWOrderDetail>(sWhere); using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>()) { return(FDIGetWOrderDetailBLL.GetCount(whereLamda)); } }
public List <FDIGetWOrderDetail> GetFDIGetWOrderDetails(string sWhere) { Expression <Func <FDIGetWOrderDetail, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIGetWOrderDetail>(sWhere); using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>()) { List <FDIGetWOrderDetail> models = FDIGetWOrderDetailBLL.GetModels(whereLamda); return(models); } }
public bool AddFDIGetWOrderDetail(FDIGetWOrderDetail mFDIGetWOrderDetail) { if (mFDIGetWOrderDetail == null) { return(false); } using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>()) { return(FDIGetWOrderDetailBLL.Add(mFDIGetWOrderDetail)); } }
public bool DelFDIGetWOrderDetail(string Id) { using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>()) { try { FDIGetWOrderDetail item = FDIGetWOrderDetailBLL.GetFirstOrDefault(Id); return(FDIGetWOrderDetailBLL.Delete(item)); } catch { return(false); } } }
public bool DelFDIGetWOrderDetails(string[] Ids) { using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>()) { try { List <FDIGetWOrderDetail> entitys = new List <FDIGetWOrderDetail>(); foreach (string id in Ids) { FDIGetWOrderDetail item = FDIGetWOrderDetailBLL.GetFirstOrDefault(id); entitys.Add(item); } return(FDIGetWOrderDetailBLL.Delete(entitys)); } catch { return(false); } } }
public List <FDIGetWOrderDetail> GetFDIGetWOrderDetailByPage(int pageSize, int pageIndex, bool isAsc, string orderField, string sWhere) { string orderStr = ""; if (string.IsNullOrEmpty(orderField)) { orderStr = "CREATION_DATE"; } else { orderStr = orderField; } Expression <Func <FDIGetWOrderDetail, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIGetWOrderDetail>(sWhere); using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>()) { List <FDIGetWOrderDetail> models = FDIGetWOrderDetailBLL.GetModelsByPage(pageSize, pageIndex, isAsc, orderStr, whereLamda); return(models); } }