public FDIPostSaleOrderDetail GetFDIPostSaleOrderDetailById(string Id) { using (IFDIPostSaleOrderDetailBLL FDIPostSaleOrderDetailBLL = BLLContainer.Resolve <IFDIPostSaleOrderDetailBLL>()) { FDIPostSaleOrderDetail model = FDIPostSaleOrderDetailBLL.GetFirstOrDefault(Id); return(model); } }
public int GetFDIPostSaleOrderDetailCount(string sWhere) { Expression <Func <FDIPostSaleOrderDetail, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIPostSaleOrderDetail>(sWhere); using (IFDIPostSaleOrderDetailBLL FDIPostSaleOrderDetailBLL = BLLContainer.Resolve <IFDIPostSaleOrderDetailBLL>()) { return(FDIPostSaleOrderDetailBLL.GetCount(whereLamda)); } }
public List <FDIPostSaleOrderDetail> GetFDIPostSaleOrderDetails(string sWhere) { Expression <Func <FDIPostSaleOrderDetail, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIPostSaleOrderDetail>(sWhere); using (IFDIPostSaleOrderDetailBLL FDIPostSaleOrderDetailBLL = BLLContainer.Resolve <IFDIPostSaleOrderDetailBLL>()) { List <FDIPostSaleOrderDetail> models = FDIPostSaleOrderDetailBLL.GetModels(whereLamda); return(models); } }
public bool AddFDIPostSaleOrderDetail(FDIPostSaleOrderDetail mFDIPostSaleOrderDetail) { if (mFDIPostSaleOrderDetail == null) { return(false); } using (IFDIPostSaleOrderDetailBLL FDIPostSaleOrderDetailBLL = BLLContainer.Resolve <IFDIPostSaleOrderDetailBLL>()) { return(FDIPostSaleOrderDetailBLL.Add(mFDIPostSaleOrderDetail)); } }
public bool DelFDIPostSaleOrderDetail(string Id) { using (IFDIPostSaleOrderDetailBLL FDIPostSaleOrderDetailBLL = BLLContainer.Resolve <IFDIPostSaleOrderDetailBLL>()) { try { FDIPostSaleOrderDetail item = FDIPostSaleOrderDetailBLL.GetFirstOrDefault(Id); return(FDIPostSaleOrderDetailBLL.Delete(item)); } catch { return(false); } } }
public bool DelFDIPostSaleOrderDetails(string[] Ids) { using (IFDIPostSaleOrderDetailBLL FDIPostSaleOrderDetailBLL = BLLContainer.Resolve <IFDIPostSaleOrderDetailBLL>()) { try { List <FDIPostSaleOrderDetail> entitys = new List <FDIPostSaleOrderDetail>(); foreach (string id in Ids) { FDIPostSaleOrderDetail item = FDIPostSaleOrderDetailBLL.GetFirstOrDefault(id); entitys.Add(item); } return(FDIPostSaleOrderDetailBLL.Delete(entitys)); } catch { return(false); } } }
public List <FDIPostSaleOrderDetail> GetFDIPostSaleOrderDetailByPage(int pageSize, int pageIndex, bool isAsc, string orderField, string sWhere) { string orderStr = ""; if (string.IsNullOrEmpty(orderField)) { orderStr = "CREATION_DATE"; } else { orderStr = orderField; } Expression <Func <FDIPostSaleOrderDetail, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIPostSaleOrderDetail>(sWhere); using (IFDIPostSaleOrderDetailBLL FDIPostSaleOrderDetailBLL = BLLContainer.Resolve <IFDIPostSaleOrderDetailBLL>()) { List <FDIPostSaleOrderDetail> models = FDIPostSaleOrderDetailBLL.GetModelsByPage(pageSize, pageIndex, isAsc, orderStr, whereLamda); return(models); } }