Beispiel #1
0
        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);
        }
Beispiel #2
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);
        }