コード例 #1
0
ファイル: MainBiz.cs プロジェクト: tomochandv/Test
        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;
        }
コード例 #2
0
ファイル: MainBiz.cs プロジェクト: tomochandv/Test
        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;
        }