• 大小: 7.21MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-11-02
  • 语言: C#
  • 标签:

资源简介

基于C#做的医院叫号系统,很简单,能顺序叫号,插队叫号,重复叫号和特叫号,,文字转换语音,发声是基于系统自带的。不需要结合硬件。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SpeechLib;

namespace WindowsFormsApplication1
{
    public partial class Dianming : Form
    {
        Timer atimer = new Timer();
        int items=1000;
        int i = 0;
        SpeechVoiceSpeakFlags spFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync;
        SpVoice voice = new SpVoice();
        public Dianming()
        {
            InitializeComponent();
        }
        private void btnStart_Click(object sender EventArgs e)
        {
            try
            {
                SpeechVoiceSpeakFlags SpFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync;
                //SpeechVoiceSpeakFlags.
                SpVoice Voice = new SpVoice();
                Voice.Voice = Voice.GetVoices().Item(0);
                Voice.Speak(“请“+(int.Parse(this.textBoxText.Text.Trim()) + 1).ToString()+“号病人到窗口问诊!“ SpFlags);

                //this.textBoxText.Text = this.textBoxText.Text + 1;
                this.textBoxText.Text = (int.Parse(this.textBoxText.Text.Trim()) + 1).ToString();
            }
            catch (Exception er)
            {
                MessageBox.Show(“An Error Occured!“ “SpeechApp“ MessageBoxButtons.OK MessageBoxIcon.Error);
            }

        }
        //private void btnStart_Click(object sender EventArgs e)
        //{
        //    try
        //    {
        //        btnStart.Enabled = false;
        //        btnJxu.Enabled = true;
        //        btnZangting.Enabled = true;
        //        items = this.listBox1.Items.Count ;
        //        atimer.Interval = Convert.ToInt16(this.comboBox1.Text);
        //        atimer.Tick += new EventHandler(atimer_Tick);
        //        atimer.Start();

        //    }
        //    catch (Exception ee)
        //    {
        //        MessageBox.Show(ee.ToString());
        //    }
        //}

        private void btnAgain_Click(object sender EventArgs e)
        {

            try
            {
                SpeechVoiceSpeakFlags SpFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync;
                //SpeechVoiceSpeakFlags.
                SpVoice Voice = new SpVoice();
                Voice.Voice = Voice.GetVoices().Item(0);
                Voice.Speak(“请“ + (int.Parse(this.textBoxText.Text.Trim())).ToString() + “号病人到窗口问诊!“ SpFlags);
            }
            catch (Exception er)
            {
                MessageBox.Show(“An Error Occured!“ “SpeechApp“ MessageBoxButtons.OK MessageBoxIcon.Error);
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-01-13 18:14  叫号系统\
     目录           0  2015-01-13 18:15  叫号系统\SetupQueuing\
     目录           0  2015-01-13 18:19  叫号系统\SetupQueuing\Debug\
     文件      430592  2015-01-13 18:19  叫号系统\SetupQueuing\Debug\setup.exe
     文件     7209472  2015-01-13 18:19  叫号系统\SetupQueuing\Debug\SetupQueuing.msi
     目录           0  2015-01-13 18:14  叫号系统\SetupQueuing\Release\
     文件       31652  2015-01-13 18:19  叫号系统\SetupQueuing\SetupQueuing.vdproj
     目录           0  2011-08-28 16:18  叫号系统\WindowsFormsApplication1\
     文件        1216  2015-01-13 18:15  叫号系统\WindowsFormsApplication1.sln
     文件       34816  2015-01-14 14:12  叫号系统\WindowsFormsApplication1.suo
     目录           0  2011-08-28 16:18  叫号系统\WindowsFormsApplication1\bin\
     目录           0  2015-01-13 18:15  叫号系统\WindowsFormsApplication1\bin\Debug\
     文件       53760  2015-01-13 18:15  叫号系统\WindowsFormsApplication1\bin\Debug\AxInterop.WMPLib.dll
     文件      331264  2015-01-13 18:15  叫号系统\WindowsFormsApplication1\bin\Debug\Interop.WMPLib.dll
     文件       68224  2010-09-05 17:57  叫号系统\WindowsFormsApplication1\bin\Debug\smile.wav
     文件       16384  2015-01-13 18:15  叫号系统\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件       32256  2015-01-13 18:15  叫号系统\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       11600  2015-01-14 14:12  叫号系统\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件         490  2010-03-17 22:39  叫号系统\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
     文件        2762  2015-01-13 18:00  叫号系统\WindowsFormsApplication1\Dianming.cs
     文件        4723  2015-01-13 18:00  叫号系统\WindowsFormsApplication1\Dianming.Designer.cs
     文件        5817  2015-01-13 18:00  叫号系统\WindowsFormsApplication1\Dianming.resx
     文件        1304  2015-01-13 18:00  叫号系统\WindowsFormsApplication1\Form1.cs
     文件        5467  2015-01-13 18:00  叫号系统\WindowsFormsApplication1\Form1.Designer.cs
     文件        6513  2015-01-13 18:00  叫号系统\WindowsFormsApplication1\Form1.resx
     目录           0  2011-08-28 16:18  叫号系统\WindowsFormsApplication1\obj\
     目录           0  2011-08-28 16:18  叫号系统\WindowsFormsApplication1\obj\x86\
     目录           0  2015-01-13 18:15  叫号系统\WindowsFormsApplication1\obj\x86\Debug\
     文件       53760  2015-01-13 18:15  叫号系统\WindowsFormsApplication1\obj\x86\Debug\AxInterop.WMPLib.dll
     文件       10836  2015-01-13 18:15  叫号系统\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6746  2015-01-13 18:15  叫号系统\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此处省略27个文件信息

评论

共有 条评论