Exemple #1
0
        public void BespeakRegister(IWin32Window owner)
        {
            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }

            /*
             * 如果有预约挂号一级科室分类,则进入一级科室选择界面
             */
            if (string.IsNullOrEmpty(SkyComm.getvalue("预约挂号一级科室分类")))
            {
                FrmOfficeChoose frm = new FrmOfficeChoose();
                frm.ShowDialog(owner);
                frm.Dispose();
            }
            else
            {
                FrmLevelOneOfficeChooes frm = new FrmLevelOneOfficeChooes();
                frm.ShowDialog(owner);
                frm.Dispose();
            }
            ExitScanCard();
        }
Exemple #2
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;
            }
        }
Exemple #3
0
        /// <summary>
        /// 选择办卡类别
        /// </summary>
        /// <param name="sendCardType"></param>
        private void ChooseSendCardType(string sendCardType)
        {
            this.ucTime1.timer1.Stop();

            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }

            FrmSendCardMain frm = new FrmSendCardMain();

            frm.SendCardType = sendCardType;
            if (frm.ShowDialog(this) == DialogResult.Cancel)
            {
                this.ucTime1.timer1.Start();
            }
            frm.Dispose();
        }
Exemple #4
0
        //现金预存
        private void btnAddMoney_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();
            FrmCardSavingCash frm = new FrmCardSavingCash();

            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;
            }



            //this.AnsyWorker(ui => {
            //    ui.UpdateTitle("业务处理中...");
            //    intaa++;
            //    for (int i = 0; i < 900000000; i++)
            //    {

            //    }
            //    ui.SynUpdateUI(() =>
            //    {
            //        ucTime1.timer1.Stop();
            //        this.btnAddMoney.Text = intaa.ToString() + ",时间" + DateTime.Now.ToString();
            //        //MessageBox.Show ("自助预存:" + intaa +",时间"+ DateTime.Now.ToString());
            //        ucTime1.timer1.Start();
            //    }
            //    );
            //});
        }
Exemple #5
0
        private void labelYYGQ_Click(object sender, EventArgs e)
        {
            string diagnoseid = SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["DIAGNOSEID"].ToString().Trim();  //诊疗号
            CLINICMtReserveFacade reserveFacade = new CLINICMtReserveFacade();
            DataSet ds = new DataSet();

            try
            {
                ds = reserveFacade.checkReserveRecord(diagnoseid);
            }
            catch (Exception ex)
            {
                SkyComm.ShowMessageInfo("没有预约信息,请先预约!");
                return;
            }
            if (ds.Tables[0].Rows.Count > 0)
            {
                this.ucTime1.timer1.Stop();
                //判断打印机是否有纸
                if (AutoHostConfig.ReadCardType == "XUHUI")
                {
                    PrintManage_XH thePrintManage = new PrintManage_XH();
                    string         CheckInfo      = thePrintManage.CheckPrintStatus();
                    if (!string.IsNullOrEmpty(CheckInfo))
                    {
                        SkyComm.ShowMessageInfo(CheckInfo);
                        return;
                    }
                }

                if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo))
                {
                    FrmMain frmM      = new FrmMain();
                    int     intResult = SkyComm.ReadCard("医技预约");
                    if (intResult == 0)
                    {
                        this.ucTime1.timer1.Start();
                        return;
                    }
                }

                FrmUpdateReserveMain frm = new FrmUpdateReserveMain();
                if (frm.ShowDialog(this) == DialogResult.Cancel)
                {
                    this.ucTime1.timer1.Start();
                }
            }
            else
            {
                SkyComm.ShowMessageInfo("没有预约信息,请先预约!");
                return;
            }
        }
Exemple #6
0
        public void Charge(IWin32Window owner)
        {
            if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo))
            {
                int intResult = SkyComm.ReadCard("缴费");
                if (intResult == 0)
                {
                    return;
                }
            }

            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }

            FrmChargeMain frm = new FrmChargeMain();

            try
            {
                DataSet dsRecipe = GetRecipeInfo();
                if (dsRecipe == null)
                {
                    return;
                }

                frm.dsRecipe = dsRecipe;
                frm.ShowDialog(owner);
            }
            catch (Exception ex)
            {
                Skynet.LoggingService.LogService.GlobalInfoMessage("缴费失败:" + ex.Message);
                SkyComm.ShowMessageInfo("调用自助缴费出错!" + ex.Message);
            }
            finally
            {
                frm.Dispose();
                ExitScanCard();
            }
        }
Exemple #7
0
        /// <summary>
        /// 补卡
        /// </summary>
        /// <param name="owner"></param>
        public void ReissueCard(IWin32Window owner)
        {
            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI" || AutoHostConfig.ReadCardType == "XUHUIM1")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }
            FrmReIssueCard frm = new FrmReIssueCard();

            frm.ShowDialog(owner);
            frm.Dispose();
        }
Exemple #8
0
        public void Electronics(IWin32Window owner)
        {
            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }
            FormElectronicsReadIdCard form = new FormElectronicsReadIdCard();

            form.SendCardType = "成人";
            form.ShowDialog(owner);
            form.Dispose();
        }
Exemple #9
0
        /// <summary>
        /// 办卡
        /// </summary>
        /// <param name="owner"></param>
        public void SendCard(IWin32Window owner)
        {
            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }
            //FrmSendCardMain frm = new FrmSendCardMain();
            FrmChooseSendCardType frm = new FrmChooseSendCardType();

            frm.ShowDialog(owner);
            frm.Dispose();
            ExitScanCard();
        }
Exemple #10
0
        /// <summary>
        /// 选择医技预约类别
        /// </summary>
        /// <param name="OfficeName"></param>
        private void ChooseReserve(string OfficeName)
        {
            this.ucTime1.timer1.Stop();

            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }

            if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo))
            {
                FrmMain frmM      = new FrmMain();
                int     intResult = SkyComm.ReadCard("医技预约");
                if (intResult == 0)
                {
                    this.ucTime1.timer1.Start();
                    return;
                }
            }

            FrmReserveMain frm = new FrmReserveMain();

            frm.OfficeType = OfficeName;
            if (frm.ShowDialog(this) == DialogResult.Cancel)
            {
                this.ucTime1.timer1.Start();
            }
            frm.Dispose();
        }
Exemple #11
0
        public void BespeakSignIn(IWin32Window owner)
        {
            //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡
            if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo))
            {
                int intResult = SkyComm.ReadCard("挂号");
                if (intResult == 0)
                {
                    return;
                }
            }

            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }

            //根据是否有预约信息,如果有预约信息,弹出界面选择。
            double minutes = Convert.ToDouble(SystemInfo.SystemConfigs["预约挂号报到延时时间"].DefaultValue);
            BespeakRegisterFacade bespeakFacade = new BespeakRegisterFacade();
            CommonFacade          commonFacade  = new CommonFacade();
            DateTime ServerdateTime             = commonFacade.GetServerDateTime();
            DataSet  bespeakInfoData            = bespeakFacade.FindCurrentBespeakByDiagnoseID(SkyComm.DiagnoseID, 1, ServerdateTime.AddMinutes(-minutes));
            bool     IsQueryBespeakData         = false;
            //ui.SynUpdateUI(() =>
            {
                if (bespeakInfoData.Tables[0].Rows.Count == 0)
                {
                    #region 没有预约信息时查询预约

                    SkyComm.ShowMessageInfo("没有查询到预约信息,如果已经预约请到相应窗口取号!");
                    return;

                    #endregion
                }

                //有预约信息时
                if (bespeakInfoData == null || bespeakInfoData.Tables[0].Rows.Count > 0)
                {
                    #region  预约信息确认取号
                    //有预约信息,再判断预约信息是几条

                    FrmBespeakList frm = new FrmBespeakList();
                    try
                    {
                        frm.dsBespeak          = bespeakInfoData;
                        frm.IsQueryBespeakData = IsQueryBespeakData;
                        if (frm.ShowDialog(owner) == System.Windows.Forms.DialogResult.OK)
                        {
                            SkyComm.GetCardBalance();
                        }
                    }
                    catch (Exception ex)
                    {
                        Skynet.LoggingService.LogService.GlobalInfoMessage("就诊号:" + SkyComm.DiagnoseID + "取号失败:" + ex.Message);
                    }
                    finally
                    {
                        frm.Dispose();
                    }
                    #endregion
                }
            }

            ExitScanCard();
        }