Ejemplo n.º 1
0
 public FDIPostWOClose GetFDIPostWOCloseById(string Id)
 {
     using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>())
     {
         FDIPostWOClose model = FDIPostWOCloseBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
Ejemplo n.º 2
0
        public int GetFDIPostWOCloseCount(string sWhere)
        {
            Expression <Func <FDIPostWOClose, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIPostWOClose>(sWhere);

            using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>())
            {
                return(FDIPostWOCloseBLL.GetCount(whereLamda));
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
 public bool AddFDIPostWOClose(FDIPostWOClose mFDIPostWOClose)
 {
     if (mFDIPostWOClose == null)
     {
         return(false);
     }
     using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>())
     {
         return(FDIPostWOCloseBLL.Add(mFDIPostWOClose));
     }
 }
Ejemplo n.º 5
0
 public bool DelFDIPostWOClose(string Id)
 {
     using (IFDIPostWOCloseBLL FDIPostWOCloseBLL = BLLContainer.Resolve <IFDIPostWOCloseBLL>())
     {
         try
         {
             FDIPostWOClose item = FDIPostWOCloseBLL.GetFirstOrDefault(Id);
             return(FDIPostWOCloseBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Ejemplo n.º 6
0
 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); }
     }
 }
Ejemplo n.º 7
0
        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);
            }
        }