示例#1
0
 public FDIGetWOrderDetail GetFDIGetWOrderDetailById(string Id)
 {
     using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>())
     {
         FDIGetWOrderDetail model = FDIGetWOrderDetailBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
示例#2
0
        public int GetFDIGetWOrderDetailCount(string sWhere)
        {
            Expression <Func <FDIGetWOrderDetail, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <FDIGetWOrderDetail>(sWhere);

            using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>())
            {
                return(FDIGetWOrderDetailBLL.GetCount(whereLamda));
            }
        }
示例#3
0
        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);
            }
        }
示例#4
0
 public bool AddFDIGetWOrderDetail(FDIGetWOrderDetail mFDIGetWOrderDetail)
 {
     if (mFDIGetWOrderDetail == null)
     {
         return(false);
     }
     using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>())
     {
         return(FDIGetWOrderDetailBLL.Add(mFDIGetWOrderDetail));
     }
 }
示例#5
0
 public bool DelFDIGetWOrderDetail(string Id)
 {
     using (IFDIGetWOrderDetailBLL FDIGetWOrderDetailBLL = BLLContainer.Resolve <IFDIGetWOrderDetailBLL>())
     {
         try
         {
             FDIGetWOrderDetail item = FDIGetWOrderDetailBLL.GetFirstOrDefault(Id);
             return(FDIGetWOrderDetailBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
示例#6
0
 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); }
     }
 }
示例#7
0
        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);
            }
        }