Exemplo n.º 1
0
 /// <summary>
 /// GEP 상품 한건 보기
 /// </summary>
 /// <param name="id">아이디</param>
 /// <returns></returns>
 public GepItemsData View(long id)
 {
     List<GepItemsData> List = new List<GepItemsData>();
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "gep_items");
     return MongoHelper.FindOne<GepItemsData>(Query.EQ("_id",id));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 환경설정 상세 보기
 /// </summary>
 /// <param name="id">환경설정 아이디</param>
 /// <returns>BsonDocument</returns>
 public BsonDocument View(ObjectId id)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "ta_site_setting_templete");
     return MongoHelper.FindOne(Query.EQ("_id", id));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 어드민 보기
 /// </summary>
 /// <param name="is">아이디</param>
 /// <returns>AccessIP Class</returns>
 public AccessIP AccessIPView(string id)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "admin");
     return MongoHelper.FindOne<AccessIP>(Query.EQ("_id", ObjectId.Parse(id)));
 }
Exemplo n.º 4
0
 /// <summary>
 /// GEP 상품 한건 보기
 /// </summary>
 /// <param name="query">조건</param>
 /// <returns>GepItemsData Class</returns>
 public GepItemsData View(QueryComplete query)
 {
     List<GepItemsData> List = new List<GepItemsData>();
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "gep_items");
     return MongoHelper.FindOne<GepItemsData>(query);
 }
Exemplo n.º 5
0
 /// <summary>
 /// 소스사이트 뷰
 /// </summary>
 /// <param name="id">아이디</param>
 /// <returns></returns>
 public SourceSite SourceSiteView(ObjectId id)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "source_site");
     return MongoHelper.FindOne<SourceSite>(Query.EQ("_id", id));
 }
Exemplo n.º 6
0
 /// <summary>
 /// 사용가능한 어드민 아이피 한개만 선택 보기
 /// </summary>
 /// <param name="ip">아이디</param>
 /// <returns>AccessIP Class</returns>
 public AccessIP UseIpView(string ip)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "admin");
     return MongoHelper.FindOne<AccessIP>(Query.And(Query.EQ("ip", ip), Query.EQ("is_use", true)));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Export 사이트 뷰
 /// </summary>
 /// <param name="query">조건</param>
 /// <returns></returns>
 public ExportSite ExportSiteView(QueryComplete query)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "export_site");
     return MongoHelper.FindOne<ExportSite>(query);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Export 사이트 뷰
 /// </summary>
 /// <param name="id">아이디</param>
 /// <returns></returns>
 public ExportSite ExportSiteView(int id)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "export_site");
     return MongoHelper.FindOne<ExportSite>(Query.EQ("_id", id));
 }
Exemplo n.º 9
0
 /// <summary>
 /// TA상세
 /// </summary>
 /// <param name="id">아이디</param>
 /// <returns></returns>
 public TaInfo TaUserView(ObjectId id)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "ta");
     return MongoHelper.FindOne<TaInfo>(Query.EQ("_id", id));
 }
Exemplo n.º 10
0
 /// <summary>
 /// 메인 집계데이터 읽어오기
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public MainData ReadOne(string id)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "count_sum");
     return MongoHelper.FindOne<MainData>(Query.EQ("_id", id));
 }
Exemplo n.º 11
0
 // TA 정보 디테일
 public TaInfo Read(string id)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "ta");
     return MongoHelper.FindOne<TaInfo>(Query.EQ("gmkt_id", id));
 }