Exemplo n.º 1
0
        public ActionResult Index()
        {
            MemberContext context = ViewBag.memberContext;
            MainData data = new MainBiz().List(context.LoginID);
            if (data == null)
            {
                data = new MainData();
            }

            List<MainTokenWarning> result = new MainBiz().GetMainTokenWarning(context.LoginID);
            ViewBag.tokenWarn = result;
            return View(data);
        }
Exemplo n.º 2
0
        public MainData List(string id)
        {
            MainData data = new MainDac().ReadOne(id);
            if (data == null)
            {
                data = new MainData();
                List<MaineBayReturn> subList = new List<MaineBayReturn>();
                MaineBayReturn subData = new MaineBayReturn();
                subData.count = 0;
                subList.Add(subData);

                data.ebay_return = subList;
                data.ebay_paid = 0;
                data.ebay_wait_pay = 0;
                data.gmkt_limit_pay = 0;
                data.gu_center_in = 0;
                data.local_trans = 0;
                data.local_trans_wait = 0;
                data.oversea_trans = 0;
                data.reply = 0;
                data.stop_listing = 0;
            }
            return data;
        }
Exemplo n.º 3
0
 /// <summary>
 /// 메인집계 데이터 저장
 /// </summary>
 /// <param name="Data"></param>
 public void Save(MainData Data)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "count_sum");
     MongoHelper.Save<MainData>(Data);
 }
Exemplo n.º 4
0
 /// <summary>
 /// 메인 집계 데이터 생성
 /// </summary>
 /// <param name="Data"></param>
 public void Create(MainData Data)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "count_sum");
     MongoHelper.Insert<MainData>(Data);
 }
Exemplo n.º 5
0
        private MainData GetMainDataCollect(string taId)
        {
            MainData data = new MainData();
            data.ta = taId;
            data.rdate = DateTime.Now;
            // eBay 결제 대기 건수
            data.ebay_wait_pay = Util.GetSafeInt(new eBayOrderBiz().GeteBayUnPaymentOrderCount(taId, 7));
            // eBay 결제 완료 건수
            data.ebay_paid = Util.GetSafeInt(new eBayOrderBiz().GeteBayPaidOrderCount(taId, 7));

            // eBay 반품 요청 건수
            Dictionary<string, long> diceBayReturn = new eBayOrderBiz().GeteBayReturnCount(taId, 7);
            List<MaineBayReturn> listeBayReturn = new List<MaineBayReturn>();
            foreach (var returnData in diceBayReturn)
            {
                MaineBayReturn eBayReturn = new MaineBayReturn();
                eBayReturn.acc_id = returnData.Key;
                eBayReturn.count = returnData.Value;
                listeBayReturn.Add(eBayReturn);
            }
            data.ebay_return = listeBayReturn;

            // G마켓 주문불가상품 건수
            data.gmkt_limit_pay = new GEPOrderBiz().GetGmktDisableOrderCount(taId, 7);
            //판매중지요청
            data.stop_listing = Util.GetSafeInt(GeteBayStopRequest(taId));

            GepShippingSummaryT gepShipping = new TransportCommonBiz().GetShippingSummary(taId);
            // 국내 배송 대기 건수
            data.local_trans = gepShipping.LocalWaitCnt;
            // 국내 배송 중 건수
            data.local_trans_wait = gepShipping.LocalShippingCnt;
            // 물류센터입고 건수
            data.gu_center_in = gepShipping.InWarehouseCnt;
            // 해외배송중 건수
            data.oversea_trans = gepShipping.InWarehouseCnt;
            return data;
        }