コード例 #1
0
        // 웹에서 사용처리
        public override bool Web_Use()
        {
            try
            {
                ProcessStateManager.Instance.NeedWebProcessCount_ = WebProcess_List_.Count;
                foreach (var pData in WebProcess_List_)
                {
                    if (DBSelected_List_.ContainsKey(pData.Key))
                    {
                        if (Use_Deal(pData.Value) == true)
                        {
                            CrawlerManager.Instance.GetResultData().TotalUseDeal_++;
                            pData.Value.State_ = DealStateManager.Instance.StateString_[(Int32)DealStateEnum.USED];
                            // 2014.11.23 사용처리 변경
                            // DBProccess_List_.Add(pData.Value.channelOrderCode_, pData.Value);
                            ProcessStateManager.Instance.CurWebProcessCount_++;
                        }
                        else
                        {
                            ProcessStateManager.Instance.FailedWebProcessCount_++;
                        }
                    }
                }
            }
            catch (System.Exception ex)
            {
                NewLogManager2.Instance.Log(string.Format("Error public override bool Web_Use() - {0}", ex.Message));
                return(false);
            }

            return(true);
        }
コード例 #2
0
ファイル: eBay_Auction.cs プロジェクト: Youkyungjin/Crawler
        public override bool CheckIsCancel()
        {
            try
            {
                foreach (var pData in Excel_Cancel_List_)
                {
                    //if (pData.Value.State_ != "취소완료")
                    //    continue;

                    if (DBSelected_List_.ContainsKey(pData.Key) == true)
                    {
                        if (DBProccess_List_.ContainsKey(pData.Key) == true)
                        {
                            NewLogManager2.Instance.Log(string.Format("CheckIsCancel DB 처리에 두가지가 다 들어가 있다.{0}", pData.Key));
                            continue;
                        }

                        COrderData pCOrderData = DBSelected_List_[pData.Key];

                        if (pCOrderData.State_ != DealStateManager.Instance.StateString_[(Int32)DealStateEnum.CANCEL])
                        {
                            pCOrderData.State_ = DealStateManager.Instance.StateString_[(Int32)DealStateEnum.CANCEL];
                            DBCancel_List_.Add(pCOrderData.channelOrderCode_, pCOrderData);
                        }
                    }
                }
            }
            catch (System.Exception ex)
            {
                NewLogManager2.Instance.Log(string.Format("Error override bool CheckIsCancel( - {0}", ex.Message));
                return(false);
            }

            return(true);
        }
コード例 #3
0
        // 웹에서 사용처리 해야 할게 있는지 체크
        public override bool CheckNeedUseWeb()
        {
            foreach (var pData in Excel_List_)
            {
                if (DBSelected_List_.ContainsKey(pData.Key) == true)
                {
                    COrderData pDBData = DBSelected_List_[pData.Value.channelOrderCode_];
                    if (pData.Value.State_ == pDBData.State_)
                    {
                        continue;
                    }

                    pData.Value.goodsPassType     = pDBData.goodsPassType;
                    pData.Value.ExData_GoodsName_ = pDBData.ExData_GoodsName_;
                    pData.Value.goodsSeq_         = pDBData.goodsSeq_;
                    pData.Value.goodsCode_        = pDBData.goodsCode_;

                    if (pData.Value.ExData_Use_ == "결제완료")
                    {
                        pDBData.BuyDate_ = pData.Value.BuyDate_;
                        WebProcess_List_.Add(pDBData.channelOrderCode_, pDBData);
                    }
                }
            }

            return(true);
        }
コード例 #4
0
ファイル: WeMakePrice.cs プロジェクト: Youkyungjin/Crawler
        public override bool CheckNeedFixUp()
        {
            foreach (var pData in Excel_List_)
            {
                if (DBSelected_List_.ContainsKey(pData.Key) == true)
                {
                    COrderData pDBData = DBSelected_List_[pData.Value.channelOrderCode_];

                    if (pDBData.State_ == DealStateManager.Instance.StateString_[(Int32)DealStateEnum.USED])
                    {
                        if (pData.Value.ExData_Use_.IndexOf(LQCrawlerInfo_.ExData_UseCheck_) < 0)
                        {
                            pDBData.State_ = DealStateManager.Instance.StateString_[(Int32)DealStateEnum.FINISH_RESERVED];
                            DBProccess_List_.Add(pDBData.channelOrderCode_, pDBData);
                        }
                    }
                    else if (pDBData.State_ == DealStateManager.Instance.StateString_[(Int32)DealStateEnum.A])
                    {
                        if (pData.Value.ExData_Use_.IndexOf(LQCrawlerInfo_.ExData_UseCheck_) < 0)
                        {
                            pDBData.State_ = DealStateManager.Instance.StateString_[(Int32)DealStateEnum.AR];
                            DBProccess_List_.Add(pDBData.channelOrderCode_, pDBData);
                        }
                    }
                }
            }

            return(true);
        }
コード例 #5
0
ファイル: SaleToNight.cs プロジェクト: Youkyungjin/Crawler
        // 웹에서 사용처리 해야 할게 있는지 체크
        public override bool CheckNeedUseWeb()
        {
            try
            {
                foreach (var pData in Excel_List_)
                {
                    ChannelGoodInfo pInfo = null;

                    if (LQCrawlerInfo_.ExData_GoodName_ == 0)
                    {
                        pInfo = GetGoodInfoByGoodCodeAndOptionName(pData.Value.goodsCode_, pData.Value.ExData_Option_);
                    }
                    else
                    {
                        pInfo = GetGoodInfoByGoodOptionName(pData.Value.ExData_GoodsName_, pData.Value.ExData_Option_);
                    }

                    if (pInfo == null)
                    {
                        continue;
                    }

                    pData.Value.ExData_GoodsName_ = pInfo.GoodsName_;
                    pData.Value.goodsSeq_         = pInfo.Idx_;
                    pData.Value.goodsCode_        = pInfo.Goods_Code_;

                    if (DBSelected_List_.ContainsKey(pData.Key) == true)
                    {
                        COrderData pDBData = DBSelected_List_[pData.Value.channelOrderCode_];
                        if (pData.Value.State_ == pDBData.State_)
                        {
                            continue;
                        }

                        // 레저큐에서 예약을 완료한 상태 웹에 사용 처리를 해야한다.
                        if (pDBData.State_ == DealStateManager.Instance.StateString_[(Int32)DealStateEnum.FINISH_RESERVED])
                        {
                            pDBData.BuyDate_ = pData.Value.BuyDate_;
                            WebProcess_List_.Add(pDBData.channelOrderCode_, pDBData);
                        }
                        else if (pDBData.State_ == DealStateManager.Instance.StateString_[(Int32)DealStateEnum.AR])
                        {
                            pDBData.BuyDate_ = pData.Value.BuyDate_;
                            WebProcess_List_.Add(pDBData.channelOrderCode_, pDBData);
                        }
                    }
                }
            }
            catch (System.Exception ex)
            {
                NewLogManager2.Instance.Log(string.Format("Error public override bool CheckNeedUseWeb() - {0}", ex.Message));
                return(false);
            }

            return(true);
        }
コード例 #6
0
ファイル: WeekOn.cs プロジェクト: Youkyungjin/Crawler
        // 웹에서 사용처리 해야 할게 있는지 체크
        public override bool CheckNeedUseWeb()
        {
            try
            {
                foreach (var pData in Excel_List_)
                {
                    ChannelGoodInfo pInfo = null;

                    if (LQCrawlerInfo_.ExData_GoodName_ == 0)
                    {
                        pInfo = GetGoodInfoByGoodCodeAndOptionName(pData.Value.goodsCode_, pData.Value.ExData_Option_);
                    }
                    else
                    {
                        pInfo = GetGoodInfoByGoodOptionName(pData.Value.ExData_GoodsNick_, pData.Value.ExData_Option_);
                    }

                    if (pInfo == null)
                    {
                        continue;
                    }

                    pData.Value.goodsPassType     = pInfo.GoodsPassType_;
                    pData.Value.ExData_GoodsName_ = pInfo.GoodsName_;
                    pData.Value.goodsSeq_         = pInfo.Idx_;
                    pData.Value.goodsCode_        = pInfo.Goods_Code_;

                    if (DBSelected_List_.ContainsKey(pData.Key) == true)
                    {
                        COrderData pDBData = DBSelected_List_[pData.Value.channelOrderCode_];
                        if (pData.Value.State_ == pDBData.State_)
                        {
                            continue;
                        }


                        if (pData.Value.ExData_Use_ == "0000-00-00 00:00:00" && pData.Value.ExData_Cancel_ == "0000-00-00 00:00:00")
                        {
                            pDBData.BuyDate_ = pData.Value.BuyDate_;
                            WebProcess_List_.Add(pDBData.channelOrderCode_, pDBData);
                        }
                    }
                }
            }
            catch (System.Exception ex)
            {
                NewLogManager2.Instance.Log(string.Format("Error override bool CheckNeedUseWeb( - {0}", ex.Message));
                return(false);
            }

            return(true);
        }
コード例 #7
0
ファイル: WeMakePrice.cs プロジェクト: Youkyungjin/Crawler
        // 웹에서 사용처리 해야 할게 있는지 체크
        public override bool CheckNeedUseWeb()
        {
            try
            {
                foreach (var pData in DBSelected_List_)
                {
                    /*  ChannelGoodInfo pInfo = null;
                     *
                     * if (LQCrawlerInfo_.ExData_GoodName_ == 0)
                     *   pInfo = GetGoodInfoByGoodCodeAndOptionName(pData.Value.goodsCode_, pData.Value.ExData_Option_);
                     * else
                     *   pInfo = GetGoodInfoByGoodOptionName(pData.Value.ExData_GoodsName_, pData.Value.ExData_Option_);
                     *
                     * if (pInfo == null)
                     *   continue;
                     */

                    pData.Value.ExData_GoodsName_ = pData.Value.ExData_GoodsName_;
                    pData.Value.goodsSeq_         = pData.Value.goodsSeq_;
                    pData.Value.goodsCode_        = pData.Value.goodsCode_;

                    if (pData.Value.channelOrderCode_ == "4SMBFCRQ7K3D" || pData.Value.channelOrderCode_ == "4UAEDSKHEDQM" || pData.Value.channelOrderCode_ == "55WOW493OVMY")
                    {
                        Int32 a = 32;
                    }

                    if (DBSelected_List_.ContainsKey(pData.Key) == true)
                    {
                        COrderData pDBData = DBSelected_List_[pData.Value.channelOrderCode_];

                        // 레저큐에서 예약을 완료한 상태 웹에 사용 처리를 해야한다.
                        if (pDBData.State_ == DealStateManager.Instance.StateString_[(Int32)DealStateEnum.FINISH_RESERVED])
                        {
                            pDBData.BuyDate_ = pData.Value.BuyDate_;
                            WebProcess_List_.Add(pDBData.channelOrderCode_, pDBData);
                        }
                        else if (pDBData.State_ == DealStateManager.Instance.StateString_[(Int32)DealStateEnum.AR])
                        {
                            pDBData.BuyDate_ = pData.Value.BuyDate_;
                            WebProcess_List_.Add(pDBData.channelOrderCode_, pDBData);
                        }
                    }
                }
            }
            catch (System.Exception ex)
            {
                NewLogManager2.Instance.Log(string.Format("Error bool CheckNeedUseWeb - {0}", ex.Message));
                return(false);
            }

            return(true);
        }
コード例 #8
0
        public override bool CheckIsCancel()
        {
            foreach (var pData in Excel_Cancel_List_)
            {
                if (DBSelected_List_.ContainsKey(pData.Key) == true)
                {
                    if (DBProccess_List_.ContainsKey(pData.Key) == true)
                    {
                        NewLogManager2.Instance.Log(string.Format("CheckIsCancel DB 처리에 두가지가 다 들어가 있다.{0}", pData.Key));
                        continue;
                    }

                    COrderData pCOrderData = DBSelected_List_[pData.Key];

                    if (pCOrderData.State_ != DealStateManager.Instance.StateString_[(Int32)DealStateEnum.CANCEL])
                    {
                        pCOrderData.State_ = DealStateManager.Instance.StateString_[(Int32)DealStateEnum.CANCEL];
                        DBCancel_List_.Add(pCOrderData.channelOrderCode_, pCOrderData);
                    }
                }
            }

            return(true);
        }