public FDIPostWOClose GetFDIPostWOCloseById(string Id) { using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>()) { FDIPostWOClose model = FDIPostWOCloseBLL.GetFirstOrDefault(Id); return(model); } }
public int GetFDIPostWOCloseCount(string sWhere) { Expression <Func <FDIPostWOClose, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIPostWOClose>(sWhere); using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>()) { return(FDIPostWOCloseBLL.GetCount(whereLamda)); } }
public List <FDIPostWOClose> GetFDIPostWOCloses(string sWhere) { Expression <Func <FDIPostWOClose, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIPostWOClose>(sWhere); using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>()) { List <FDIPostWOClose> models = FDIPostWOCloseBLL.GetModels(whereLamda); return(models); } }
public bool AddFDIPostWOClose(FDIPostWOClose mFDIPostWOClose) { if (mFDIPostWOClose == null) { return(false); } using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>()) { return(FDIPostWOCloseBLL.Add(mFDIPostWOClose)); } }
public bool DelFDIPostWOClose(string Id) { using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>()) { try { FDIPostWOClose item = FDIPostWOCloseBLL.GetFirstOrDefault(Id); return(FDIPostWOCloseBLL.Delete(item)); } catch { return(false); } } }
public bool DelFDIPostWOCloses(string[] Ids) { using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>()) { try { List <FDIPostWOClose> entitys = new List <FDIPostWOClose>(); foreach (string id in Ids) { FDIPostWOClose item = FDIPostWOCloseBLL.GetFirstOrDefault(id); entitys.Add(item); } return(FDIPostWOCloseBLL.Delete(entitys)); } catch { return(false); } } }
public List <FDIPostWOClose> GetFDIPostWOCloseByPage(int pageSize, int pageIndex, bool isAsc, string orderField, string sWhere) { string orderStr = ""; if (string.IsNullOrEmpty(orderField)) { orderStr = "CREATION_DATE"; } else { orderStr = orderField; } Expression <Func <FDIPostWOClose, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIPostWOClose>(sWhere); using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>()) { List <FDIPostWOClose> models = FDIPostWOCloseBLL.GetModelsByPage(pageSize, pageIndex, isAsc, orderStr, whereLamda); return(models); } }