private void btnApliPay_Click(object sender, EventArgs e) { this.ucTime1.timer1.Stop(); if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { FrmMain frmM = new FrmMain(); int intResult = SkyComm.ReadCard("支付宝预存"); if (intResult == 0) { this.ucTime1.timer1.Start(); return; } } // FrmChooseMoney mChooseMoneyFrm = new FrmChooseMoney(); FrmMoneyInput mChooseMoneyFrm = new FrmMoneyInput(); if (mChooseMoneyFrm.ShowDialog() == DialogResult.OK)//确认了金额 { // decimal mChooseMoney = mChooseMoneyFrm.ChooseMoney;//所选金额 string mMoney = mChooseMoneyFrm.inputMoney.ToString() + ".00"; decimal mChooseMoney = Math.Round(Convert.ToDecimal(mMoney), 2);//所选金额 if (!string.IsNullOrEmpty(SkyComm.getvalue("微信交易测试"))) { mChooseMoney = Math.Round(Convert.ToDecimal("0.01"), 2);//所选金额 } FrmNetPay payFrm = new FrmNetPay(); payFrm.PayMoney = mChooseMoney; payFrm.ServiceType = serviceType; payFrm.PayMethod = "2";//支付宝 switch (CallType) { case 0: payFrm.PayType = "充值"; break; case 1: payFrm.PayType = "缴费"; break; case 2: payFrm.PayType = "办卡"; break; default: payFrm.PayType = ""; break; } DialogResult mDialogResult = payFrm.ShowDialog(); if (mDialogResult == DialogResult.OK) { Savingsucceed = 1; RechargeMoney = mChooseMoney; // SkyComm.ShowMessageInfo(payFrm.PayType + "成功!"); FrmRechargeSuccessful frmRecharge = new FrmRechargeSuccessful(); frmRecharge.RechargeMoney = mChooseMoney; frmRecharge.ShowDialog(this); frmRecharge.Dispose(); } else { this.ucTime1.timer1.Start();//计时器动 } } else { this.ucTime1.timer1.Start();//计时器动 } }
private void label4_Click(object sender, EventArgs e) { this.ucTime1.timer1.Stop(); InHosRecordFacade theInHosRecordFacade = new InHosRecordFacade(); DataSet inHosData = theInHosRecordFacade.FindInfoByDiagnoseID(SkyComm.DiagnoseID); if (inHosData != null && inHosData.Tables.Count != 0 && inHosData.Tables[0].Rows.Count != 0) { if (inHosData.Tables[0].Rows[0]["INHOSSTATE"].ToString() == "1") { SkyComm.ShowMessageInfo("您已结算,不能继续预交款操作!"); return; } } if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { FrmMain frmM = new FrmMain(); int intResult = SkyComm.ReadCard("微信预存"); if (intResult == 0) { this.ucTime1.timer1.Start(); return; } } // FrmChooseMoney mChooseMoneyFrm = new FrmChooseMoney(); FrmMoneyInput mChooseMoneyFrm = new FrmMoneyInput(); if (mChooseMoneyFrm.ShowDialog() == DialogResult.OK)//确认了金额 { // decimal mChooseMoney = mChooseMoneyFrm.ChooseMoney;//所选金额 string mMoney = mChooseMoneyFrm.inputMoney.ToString() + ".00"; decimal mChooseMoney = Math.Round(Convert.ToDecimal(mMoney), 2);//所选金额 if (!string.IsNullOrEmpty(SkyComm.getvalue("微信交易测试"))) { mChooseMoney = Math.Round(Convert.ToDecimal("0.01"), 2);//所选金额 } FrmNetPay payFrm = new FrmNetPay(); payFrm.PayMoney = mChooseMoney; payFrm.ServiceType = "5"; payFrm.PayMethod = "2"; payFrm.PayType = "住院充值"; payFrm.inHosMoney = lblYE.Text; DialogResult mDialogResult = payFrm.ShowDialog(); if (mDialogResult == DialogResult.OK) { //his预存 inHosSave(inHosData, mChooseMoney, payFrm.mSerialNo, payFrm.bankNo); ; SkyComm.ShowMessageInfo(payFrm.PayType + "成功!"); } else { this.ucTime1.timer1.Start();//计时器动 } } else { this.ucTime1.timer1.Start();//计时器动 } }