private bool GetPatientInformation()
        {
            try
            {
                InHosRecordFacade theInHosRecordFacade = new InHosRecordFacade();
                InHosData   = theInHosRecordFacade.FindInfoByDiagnoseID(SkyComm.DiagnoseID);
                _diagnoseID = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["DIAGNOSEID"].ToString();
                if (InHosData != null && InHosData.Tables.Count != 0 && InHosData.Tables[0].Rows.Count != 0)
                {
                    DataRow drInHos = InHosData.Tables[0].Rows[0];

                    _inHosID = drInHos["INHOSID"].ToString();
                    return(true);
                }
                else
                {
                    SkyComm.ShowMessageInfo("未找到您的住院信息,点击关闭后返回!");
                    return(false);
                }
            }
            catch (Exception ex)
            {
                SkyComm.ShowMessageInfo("未找到您的住院信息,点击关闭后返回!");

                return(false);
            }
        }
Beispiel #2
0
        private bool BindPage()
        {
            try
            {
                if (SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["Is_FEECHARGING_CARD"].ToString() != "0")
                {
                    SkyComm.ShowMessageInfo("该卡是非储值卡,不能进行交款!");
                    return(false);
                }

                InHosRecordFacade theInHosRecordFacade = new InHosRecordFacade();

                InHosData   = theInHosRecordFacade.FindInfoByDiagnoseID(SkyComm.DiagnoseID);
                _diagnoseID = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["DIAGNOSEID"].ToString();
                if (InHosData != null && InHosData.Tables.Count != 0 && InHosData.Tables[0].Rows.Count != 0)
                {
                    DataRow drInHos = InHosData.Tables[0].Rows[0];

                    if (drInHos["INHOSSTATE"].ToString() == "1")
                    {
                        SkyComm.ShowMessageInfo("您的住院费用已经结算,不能进行预交款操作");
                        return(false);
                    }

                    this.lblPatient.Text = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["PATIENTNAME"].ToString();
                    this.lblSex.Text     = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["SEX"].ToString();
                    this.lblAge.Text     = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["AGE"].ToString() + SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["AGEUNIT"].ToString();
                    this.lblIDCard.Text  = "身份证号:" + SkyComm.ConvertIdCard(SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["IDENTITYCARD"].ToString());
                    _inHosID             = drInHos["INHOSID"].ToString();
                    _inHosOfficeID       = drInHos["INHOSOFFICEID"].ToString();
                    this.lblInHosID.Text = "住院号:" + _inHosID;
                    this.lblZyYe.Text    = Convert.ToDecimal(drInHos["BALANCEMONEY"].ToString()).ToString("0.00##");
                    SkyComm.GetCardBalance();
                    this.lblMzYe.Text    = SkyComm.cardBlance.ToString();
                    this.lblhm.Text      = SkyComm.cardBlance.ToString();
                    this.lblhm.ForeColor = System.Drawing.Color.Red;
                    return(true);
                }
                else
                {
                    SkyComm.ShowMessageInfo("未找到您的住院信息,点击关闭后返回!");
                    return(false);
                }
            }
            catch (Exception ex)
            {
                SkyComm.ShowMessageInfo("未找到您的住院信息,点击关闭后返回!");

                return(false);
            }
        }
Beispiel #3
0
        private bool BindPage()
        {
            try
            {
                if (inHosData == null)
                {
                    InHosRecordFacade theInHosRecordFacade = new InHosRecordFacade();
                    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(false);
                    }
                    Skynet.LoggingService.LogService.GlobalInfoMessage("调用现金预存LOAD_1");
                    eCardAuthorizationData = new CardAuthorizationData();

                    if (eCardAuthorizationFacade == null)
                    {
                        eCardAuthorizationFacade = new CardAuthorizationFacade();
                    }
                    Skynet.LoggingService.LogService.GlobalInfoMessage("调用现金预存LOAD_2");
                    eCardAuthorizationData = (CardAuthorizationData)eCardAuthorizationFacade.SelectPatientAndCardInfoByCardID(SkyComm.cardInfoStruct.CardNo);
                    Skynet.LoggingService.LogService.GlobalInfoMessage("调用现金预存LOAD_3");
                    string patientName = eCardAuthorizationData.Tables["T_CARD_AUTHORIZATION"].Rows[0][CardAuthorizationData.T_CARD_AUTHORIZATION_PATIENTNAME].ToString();
                    string sex         = eCardAuthorizationData.Tables["T_CARD_AUTHORIZATION"].Rows[0][CardAuthorizationData.T_CARD_AUTHORIZATION_SEX].ToString();
                    string identity    = eCardAuthorizationData.Tables["T_CARD_AUTHORIZATION"].Rows[0][CardAuthorizationData.T_CARD_AUTHORIZATION_IDENTITYCARD].ToString();

                    lblPatientInfo.Text = patientName + " " + sex + " 身份证:" + SkyComm.ConvertIdCard(identity);
                    lblye.Text          = Convert.ToDecimal(inHosData.Tables[0].Rows[0]["BALANCEMONEY"].ToString()).ToString("0.00##");
                    return(true);
                }
                else
                {
                    SkyComm.ShowMessageInfo("未找到您的住院信息!");
                    return(false);
                }
            }
            catch (Exception ex)
            {
                SkyComm.ShowMessageInfo("患者信息绑定失败,现金预存功能暂不能使用。请与医院工作人员联系!");
                Skynet.LoggingService.LogService.GlobalInfoMessage("调用现金预存LOAD失败:" + ex.Message);
                return(false);
            }
        }
        private bool BindPage()
        {
            try
            {
                InHosRecordFacade theInHosRecordFacade = new InHosRecordFacade();

                InHosData   = theInHosRecordFacade.FindInfoByDiagnoseID(SkyComm.DiagnoseID);
                _diagnoseID = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["DIAGNOSEID"].ToString();
                if (InHosData != null && InHosData.Tables.Count != 0 && InHosData.Tables[0].Rows.Count != 0)
                {
                    DataRow drInHos = InHosData.Tables[0].Rows[0];
                    if (drInHos["INHOSSTATE"].ToString() == "1")
                    {
                        SkyComm.ShowMessageInfo("您已结算,不能继续预交款操作!");
                        return(false);
                    }
                    this.lblInHosDate.Text       = Convert.ToDateTime(drInHos["ENTERHOSDATE"].ToString()).ToString("yyyy-MM-dd");
                    this.lblEnterOfficeDate.Text = drInHos["ENTEROFFICEDATE"].ToString().Trim() != "" ? Convert.ToDateTime(drInHos["ENTEROFFICEDATE"].ToString().Trim()).ToString("yyyy-MM-dd") : "";
                    this.lblName.Text            = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["PATIENTNAME"].ToString();
                    _inHosID               = drInHos["INHOSID"].ToString();
                    this.lblInHosNO.Text   = _inHosID;
                    this.lblBedNo.Text     = drInHos["OFFICEBEDID"].ToString();
                    this.lblYJK.Text       = Convert.ToDecimal(drInHos["ADVANCEMONEY"].ToString()).ToString("0.00##");
                    this.lblTotalCost.Text = Convert.ToDecimal(drInHos["TOTALCONSUMEMONEY"].ToString()).ToString("0.00##");
                    this.lblYE.Text        = Convert.ToDecimal(drInHos["BALANCEMONEY"].ToString()).ToString("0.00##");
                    return(true);
                }
                else
                {
                    SkyComm.ShowMessageInfo("未找到您的住院信息,点击关闭后返回!");
                    return(false);
                }
            }
            catch (Exception ex)
            {
                SkyComm.ShowMessageInfo("未找到您的住院信息,点击关闭后返回!");

                return(false);
            }
        }
        private bool BindPage()
        {
            try
            {
                InHosRecordFacade theInHosRecordFacade = new InHosRecordFacade();

                InHosData            = theInHosRecordFacade.FindInfoByDiagnoseID(SkyComm.DiagnoseID);
                _diagnoseID          = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["DIAGNOSEID"].ToString();
                this.lblPatient.Text = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["PATIENTNAME"].ToString();
                this.lblSex.Text     = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["SEX"].ToString();
                this.lblAge.Text     = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["AGE"].ToString() + SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["AGEUNIT"].ToString();
                this.lblIDCard.Text  = "身份证号:" + SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["IDENTITYCARD"].ToString();
                if (InHosData != null && InHosData.Tables.Count != 0 && InHosData.Tables[0].Rows.Count != 0)
                {
                    DataRow drInHos = InHosData.Tables[0].Rows[0];
                    _inHosID             = drInHos["INHOSID"].ToString();
                    _inHosOfficeID       = drInHos["INHOSOFFICEID"].ToString();
                    this.lblInHosID.Text = "住院号:" + _inHosID;
                }
                DataTable dtReport = GetListData();
                if (dtReport != null && dtReport.Rows.Count != 0)
                {
                    this.gdcMain.DataSource = dtReport;
                    return(true);
                }
                else
                {
                    SkyComm.ShowMessageInfo("未找到您的检验报告单信息!");
                    return(false);
                }
            }
            catch (Exception ex)
            {
                SkyComm.ShowMessageInfo("获取患者信息失败!");
                return(false);
            }
        }
        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();//计时器动
            }
        }