Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        private void ThreadMZRegChangeAndTryChange()
        {
            SendUIMsg(MZ_ChangeUIMsg.DisabledTryChange);
            SendUIMsg(MZ_ChangeUIMsg.DisabledChange);

            try
            {
                SaveMZRegChangeMainParameter();
                SaveMZRegFeeInfoParameter(2);

                SendUIMsg(UIMsg.Display, "正在努力往中心上传改费数据,请稍后......");

                InterfaceClass.HN.MZ.CheckAndSaveFeeDetails checkAndSaveFeeDetails = new InterfaceClass.HN.MZ.CheckAndSaveFeeDetails(baseInterfaceHN);

                InterfaceClass.HN.MZ.MZRegOutParameter mz_ChangeOutParameter = checkAndSaveFeeDetails.CheckCalcAndSaveWrittenFeeDetails(this._mz_ChangeParameter);

                SaveMZRegBizInfo(0, mz_ChangeOutParameter.BizInfo);
                SaveMZRegPayInfo(0, mz_ChangeOutParameter.ListPayInfo);

                SendUIMsg(UIMsg.Close);
            }
            catch (Exception ex)
            {
                SendUIMsg(UIMsg.Close);
                SendUIMsg(UIMsg.MsgError, ex.Message);
            }

            SendUIMsg(MZ_ChangeUIMsg.EnableTryChange);
            SendUIMsg(MZ_ChangeUIMsg.EnableChange);
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        private void ThreadCancelOrder()
        {
            try
            {
                SendUIMsg(Report_MZ_BigClassFeeInfoUIMsg.DisabledCancelButton);
                SendUIMsg(UIMsg.Display, "正在取消结算单" + this._info.serial_no + ",请稍后......");

                InterfaceClass.HN.MZ.CheckAndSaveFeeDetails fee = new InterfaceClass.HN.MZ.CheckAndSaveFeeDetails(baseInterfaceHN);

                InterfaceClass.HN.MZ.MZRegOutParameter outParameter = fee.CheckCalcAndSaveWrittenFeeDetails(parameter);

                SendUIMsg(UIMsg.Close);

                SendUIMsg(UIMsg.MsgInfo, "成功取消结算单!!!");
            }
            catch (Exception ex)
            {
                SendUIMsg(Report_MZ_BigClassFeeInfoUIMsg.EnabledCancelButton);
                SendUIMsg(UIMsg.Close);
                SendUIMsg(UIMsg.MsgError, "撤销结算单发生错误,错误原因:" + ex.Message);
            }
        }
Esempio n. 3
0
        /// <summary>
        ///
        /// </summary>
        private void ThreadCancelOrders()
        {
            try
            {
                SendUIMsg(UIMsg.Display, "正在撤销结算单【" + this._serial_no + "】,请稍后......");

                DataTable dt = GetSerial_no_MZRegChargeInfo();

                InterfaceClass.HN.MZ.MZ_ChangeParameter mz_changeParameter = new InterfaceClass.HN.MZ.MZ_ChangeParameter();

                InterfaceClass.HN.MZ.MZRegChange mzRegChange = new InterfaceClass.HN.MZ.MZRegChange();

                List <Parameter> listParameter = GetProperties <InterfaceClass.HN.MZ.MZRegChange>(mzRegChange);

                foreach (Parameter p in listParameter)
                {
                    string value = dt.Rows[0][p.Name].ToString().Trim();

                    mzRegChange.SetAttributeValue(p.Name, value);
                }
                mzRegChange.save_flag  = "1"; //改费
                mzRegChange.query_flag = "1"; //退费

                mz_changeParameter.MZRegChange = mzRegChange;
                mz_changeParameter.ListFeeInfo = new List <InterfaceClass.HN.MZ.FeeInfo>();

                InterfaceClass.HN.MZ.CheckAndSaveFeeDetails inter = new InterfaceClass.HN.MZ.CheckAndSaveFeeDetails(baseInterfaceHN);

                inter.CheckCalcAndSaveWrittenFeeDetails(mz_changeParameter);

                SendUIMsg(UIMsg.Close);
            }
            catch (Exception ex)
            {
                SendUIMsg(UIMsg.Close);
                SendUIMsg(UIMsg.MsgError, "撤销订单【" + this._serial_no + "】发生错误,错误原因:" + ex.Message);
            }
        }