Example #1
0
        //银行卡预存
        private void lblAddMoneyBank_Click(object sender, EventArgs e)
        {
            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }

            this.ucTime1.timer1.Stop();
            FrmCardSavingBank frm = new FrmCardSavingBank();

            frm.CallType = 1;
            frm.ShowDialog(this);
            frm.Dispose();
            this.ucTime1.Sec = 60;
            this.ucTime1.timer1.Start();

            lblYE.Text = SkyComm.cardBlance.ToString();
            decimal decTotal = Convert.ToDecimal(lblTotalMoney.Text);

            if (decTotal > SkyComm.cardBlance)
            {
                lblOK.Visible = false;
            }
            else
            {
                lblOK.Visible = true;
            }
        }
Example #2
0
        private void lblYuCun_Click(object sender, EventArgs e)
        {
            SkyComm.CardSavingType = 0;

            if (!string.IsNullOrEmpty(AutoHostConfig.PosInterfaceType) && !string.IsNullOrEmpty(AutoHostConfig.CashBoxType))
            {
                FrmCardSavingMain frm = new FrmCardSavingMain();
                frm.ShowDialog(this);
                frm.Dispose();
            }
            else if (!string.IsNullOrEmpty(AutoHostConfig.CashBoxType))
            {
                #region 直接现金预存
                //现金预存前先刷卡
                //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡
                if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo))
                {
                    int intResult = SkyComm.ReadCard("现金预存");
                    if (intResult == 0)
                    {
                        return;
                    }
                }

                //拍照
                switch (AutoHostConfig.ReadCardType)
                {
                case "XUHUI":
                    AutoServiceSDK.SdkService.Common_XH camera = new AutoServiceSDK.SdkService.Common_XH();
                    camera.TakeCamera(SkyComm.cardInfoStruct.CardNo, SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["PATIENTNAME"].ToString(), AutoHostConfig.Machineno);
                    break;

                default:
                    break;
                }

                FrmCardSavingCash frm = new FrmCardSavingCash();
                frm.CallType = 0;
                if (frm.ShowDialog(this) == DialogResult.Cancel)
                {
                    frm.Dispose();
                    return;
                }
                frm.Dispose();

                #endregion
            }
            else if (!string.IsNullOrEmpty(AutoHostConfig.PosInterfaceType))
            {
                #region 直接银行预存
                //现金预存前先刷卡
                //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡
                if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo))
                {
                    int intResult = SkyComm.ReadCard("银行预存");
                    if (intResult == 0)
                    {
                        return;
                    }
                }

                FrmCardSavingBank frm = new FrmCardSavingBank();
                frm.CallType = 0;
                if (frm.ShowDialog(this) == DialogResult.Cancel)
                {
                    frm.Dispose();
                    return;
                }
                frm.Dispose();

                #endregion
            }


            if (SkyComm.CardSavingType == 1)
            {
                lblQianDao_Click(null, null);
            }
            else if (SkyComm.CardSavingType == 2)
            {
                lblJiaoFei_Click(null, null);
            }
        }
Example #3
0
        public void AddMoney(IWin32Window owner)
        {
            SkyComm.CardSavingType = 0;

            if (!string.IsNullOrEmpty(AutoHostConfig.PosInterfaceType) && !string.IsNullOrEmpty(AutoHostConfig.CashBoxType))
            {
                FrmCardSavingMain frm = new FrmCardSavingMain();
                frm.serviceType = NetPayServiceTypeEnum.门诊预交金充值.ToString();
                frm.ShowDialog(owner);
                frm.Dispose();
            }
            else if (!string.IsNullOrEmpty(AutoHostConfig.CashBoxType))
            {
                #region 直接现金预存
                //现金预存前先刷卡
                //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡
                if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo))
                {
                    int intResult = SkyComm.ReadCard("现金预存");
                    if (intResult == 0)
                    {
                        return;
                    }
                }

                //拍照
                switch (AutoHostConfig.ReadCardType)
                {
                case "XUHUI":
                    AutoServiceSDK.SdkService.Common_XH camera = new AutoServiceSDK.SdkService.Common_XH();
                    camera.TakeCamera(SkyComm.cardInfoStruct.CardNo, SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["PATIENTNAME"].ToString(), AutoHostConfig.Machineno);
                    break;

                default:
                    break;
                }

                FrmCardSavingCash frm = new FrmCardSavingCash();
                frm.CallType = 0;
                if (frm.ShowDialog(owner) == DialogResult.Cancel)
                {
                    frm.Dispose();
                    return;
                }
                frm.Dispose();

                #endregion
            }
            else if (!string.IsNullOrEmpty(AutoHostConfig.PosInterfaceType))
            {
                #region 直接银行预存
                //现金预存前先刷卡
                //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡
                if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo))
                {
                    int intResult = SkyComm.ReadCard("银行预存");
                    if (intResult == 0)
                    {
                        return;
                    }
                }

                FrmCardSavingBank frm = new FrmCardSavingBank();
                frm.CallType = 0;
                if (frm.ShowDialog(owner) == DialogResult.Cancel)
                {
                    frm.Dispose();
                    return;
                }
                frm.Dispose();

                #endregion
            }

            if (SkyComm.CardSavingType == 1)
            {
                BespeakSignIn(owner);
            }
            else if (SkyComm.CardSavingType == 2)
            {
                Charge(owner);
            }
            ExitScanCard();
        }