Exemplo n.º 1
0
 public MonthlyRevenueBySummaryType(IRevenueDailyQuery query)
 {
     Name = "MonthlyRevenueBySummary";
     Field(f => f.sumofmoney).Description("월간 누적수익금");
     //Field(f => f.revenuerccs).Description("rcc 리스트들");
     Interface <RevenueInterface>();
 }
Exemplo n.º 2
0
        public RevenueByRccType(IRevenueDailyQuery query)
        {
            Name = "RevenueByRcc";

            Field(f => f.rcc).Description("rcc 번호");
            Field(f => f.sumofmoney).Description("누적 수익금");
            //Field(f => f.sites).Description("소속 Sites들");

            Interface <RevenueInterface>();
        }
Exemplo n.º 3
0
        public RevenueBySiteType(IRevenueDailyQuery query)
        {
            Name = "RevenueBySite";
            Field(f => f.siteid).Description("site 번호");
            Field(f => f.sumofmoney).Description("누적 수익금");

            //Func<ResolveFieldContext, int, object> GetDailyRevenueBySite = (context, rcc) => query.DailyRevenueByRcc(context, rcc);

            Interface <RevenueInterface>();
        }
        public DailyRevenueQueryType(IRevenueDailyQuery query)
        {
            Name = "DailyRevenueQueries";

            Func <ResolveFieldContext, object> GetSumRevenue = (context) => query.DailyRevenue(context);

            FieldDelegate <DailyRevenueBySummaryType>("summary", "요약", resolve: GetSumRevenue);

            Func <ResolveFieldContext, object>      GetDailyRevenues        = (context) => query.DailyRevenueByAll(context);
            Func <ResolveFieldContext, object>      GetDailyRevenuesBySites = (context) => query.DailyRevenueByAllSites(context);
            Func <ResolveFieldContext, int, object> GetDailyRevenueByRcc    = (context, rcc) => query.DailyRevenueByRcc(context, rcc);

            FieldDelegate <ListGraphType <RevenueByRccType> >(
                "allrccrevenue", resolve: GetDailyRevenues, description: "전체 RCC"
                );
            FieldDelegate <ListGraphType <RevenueBySiteType> >(
                "allsitesrevenue", resolve: GetDailyRevenuesBySites, description: "전체 Sites"
                );

            FieldDelegate <RevenueByRccType>("revenuebyrcc",
                                             arguments: new QueryArguments(
                                                 new QueryArgument <NonNullGraphType <IntGraphType> > {
                Name = "rcc", Description = "rcc 번호"
            }),
                                             resolve: GetDailyRevenueByRcc, description: "특정 RCC");

            //Field(f => f.revenuerccs).Description("rcc 리스트들");


            Func <ResolveFieldContext, int, object> GetDailyRevenueSiteaByRcc  = (context, rcc) => query.DailyRevenueSitesByRcc(context, rcc);
            Func <ResolveFieldContext, int, object> GetDailyRevenueSiteaBySite = (context, siteid) => query.DailyRevenueSitesBysite(context, siteid);

            FieldDelegate <RevenueBySiteType>("revenuebysite",
                                              arguments: new QueryArguments(
                                                  new QueryArgument <NonNullGraphType <IntGraphType> > {
                Name = "siteid", Description = "site 번호"
            }),
                                              resolve: GetDailyRevenueSiteaBySite, description: "특정 site");

            FieldDelegate <ListGraphType <RevenueBySiteType> >("revenuesitesbyrcc",
                                                               arguments: new QueryArguments(
                                                                   new QueryArgument <NonNullGraphType <IntGraphType> > {
                Name = "rcc", Description = "rcc 번호"
            }),
                                                               description: "특정 rcc지역의 사이트들",
                                                               resolve: GetDailyRevenueSiteaByRcc);
        }
Exemplo n.º 5
0
 public DailyRevenueBySummaryType(IRevenueDailyQuery query)
 {
     Name = "DailyRevenueBySummary";
     Field(f => f.sumofmoney).Description("금일 누적수익금");
     Interface <RevenueInterface>();
 }