コード例 #1
0
        public List <MesProcessCtrol> GetMesProcessCtrolByPage(int pageSize, int pageIndex, bool isAsc, string orderField, string sWhere)
        {
            string orderStr = "";

            if (string.IsNullOrEmpty(orderField))
            {
                orderStr = "CREATION_DATE";
            }
            else
            {
                orderStr = orderField;
            }
            Expression <Func <MesProcessCtrol, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <MesProcessCtrol>(sWhere);

            using (IMesProcessCtrolBLL MesProcessCtrolBLL = BLLContainer.Resolve <IMesProcessCtrolBLL>())
            {
                List <MesProcessCtrol> models = MesProcessCtrolBLL.GetModelsByPage(pageSize, pageIndex, isAsc, orderStr, whereLamda);
                return(models);
            }
        }