Example #1
0
        private void Save()
        {
            try
            {
                if (Settings.Default.运行模式 == "RUN")
                {
                    LogService.GlobalInfoMessage("调用充值存储过程");
                    SkyComm skyComm = new SkyComm();
                    skyComm.CardRecharge(FrmMain.cardInfoStruct.CardNo, Convert.ToDecimal(sum), ref rcptNo);
                    LogService.GlobalInfoMessage("完成调用充值存储过程");
                    LogService.GlobalInfoMessage("流水号 " + rcptNo);

                    DataSet parInfo = skyComm.QueryCardInfo(FrmMain.cardInfoStruct.CardNo);
                    FrmMain.cardBlance = Convert.ToDecimal(parInfo.Tables[0].Rows[0]["卡余额"]);
                }
                else
                {
                    FrmMain.cardBlance = Convert.ToDecimal(sum);
                }
            }
            catch (Exception err)
            {
                LogService.GlobalInfoMessage("充值存储过程错误" + err.Message);
                throw new LogonException(err.Message);
            }
        }