Example #1
0
        /// <summary>
        /// 상품교환권 확인
        /// </summary>
        void CheckExchange()
        {
            ChildManager.ShowProgress(true);
            SetControlDisable(true);


            //중복 및 건수확인
            if (!ChkDup())
            {
                ChildManager.ShowProgress(false);
                SetControlDisable(false);
                return;
            }

            try
            {
                PG01ReqData reqData = new PG01ReqData();
                reqData.GiftChangeNo = txtTicketNo.Text.ToString();

                PG01DataTask pg01 = new PG01DataTask(reqData);
                pg01.TaskCompleted += new WSWD.WmallPos.FX.NetComm.Tasks.TaskCompletedHandler(pg01_TaskCompleted);
                pg01.Errored       += new WSWD.WmallPos.FX.NetComm.Client.ErrorHandler(pg01_Errored);
                pg01.ExecuteTask();
            }
            catch (Exception ex)
            {
                LogUtils.Instance.LogException(ex);
                ChildManager.ShowProgress(false);
                SetControlDisable(false);
            }
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="giftNo"></param>
        private void ValidateGiftNo(bool scanned, string giftNo)
        {
            // reset status message
            StatusMessage = MSG_INPUT;

            m_scannedGiftNo = scanned;
            if (!ValidateInputGiftNo(scanned, giftNo))
            {
                return;
            }

            m_inputGiftNo = giftNo;
            var task = new PG01DataTask(new PG01ReqData()
            {
                GiftChangeNo = giftNo
            });

            task.Errored       += new WSWD.WmallPos.FX.NetComm.Client.ErrorHandler(task_Errored);
            task.TaskCompleted += new WSWD.WmallPos.FX.NetComm.Tasks.TaskCompletedHandler(task_TaskCompleted);
            ChildManager.ShowProgress(true);
            task.ExecuteTask();
        }