예제 #1
0
 public static IResultResponse GetProductList(SysParameter para)
 {
     try
     {
         PagingQuery  query       = para.ToPagingQuery();
         int          connectorId = para.ToInt("ConnectorId", 0);
         bool         auth        = para.ToBool("Auth");
         PagingResult result      = new AuthProductBusiness(para.dapperFactory).GetAuthProductList(query, connectorId, auth);
         return(ResultResponse.GetSuccessResult(result));
     }
     catch (Exception ex)
     {
         return(ResultResponse.ExceptionResult(ex, 500));
     }
 }
예제 #2
0
파일: Category.cs 프로젝트: tynr426/ict
 public static IResultResponse GetCategoryList(SysParameter para)
 {
     try
     {
         int       connectorId = para.ToInt("ConnectorId", 0);
         bool      showAll     = para.ToBool("ShowAll");
         ArrayList result      = new AuthCategoryBusiness(para.dapperFactory).GetAuthCategoryList(connectorId, showAll);
         if (result == null)
         {
             return(ResultResponse.GetSuccessResult(new ArrayList()));
         }
         return(ResultResponse.GetSuccessResult(result));
     }
     catch (Exception ex)
     {
         return(ResultResponse.ExceptionResult(ex, 500));
     }
 }
예제 #3
0
파일: Brand.cs 프로젝트: tynr426/ict
 public static IResultResponse GetBrandList(SysParameter para)
 {
     try
     {
         int       connectorId = para.ToInt("ConnectorId", 0);
         string    firstSpell  = para.ToValue("FirstSpell");
         bool      showAll     = para.ToBool("ShowAll");
         string    keyword     = para.ToValue("KeyWord");
         ArrayList result      = new AuthBrandBusiness(para.dapperFactory).GetAuthBrandList(connectorId, firstSpell, keyword, showAll);
         if (result == null)
         {
             return(ResultResponse.GetSuccessResult(new ArrayList()));
         }
         return(ResultResponse.GetSuccessResult(result));
     }
     catch (Exception ex)
     {
         return(ResultResponse.ExceptionResult(ex, 500));
     }
 }