简单的医院叫号系统


基于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  叫号系统SetupQueuingDebug
     文件      430592  2015-01-13 18:19  叫号系统SetupQueuingDebugsetup.exe
     文件     7209472  2015-01-13 18:19  叫号系统SetupQueuingDebugSetupQueuing.msi
     目录           0  2015-01-13 18:14  叫号系统SetupQueuingRelease
     文件       31652  2015-01-13 18:19  叫号系统SetupQueuingSetupQueuing.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  叫号系统WindowsFormsApplication1in
     目录           0  2015-01-13 18:15  叫号系统WindowsFormsApplication1inDebug
     文件       53760  2015-01-13 18:15  叫号系统WindowsFormsApplication1inDebugAxInterop.WMPLib.dll
     文件      331264  2015-01-13 18:15  叫号系统WindowsFormsApplication1inDebugInterop.WMPLib.dll
     文件       68224  2010-09-05 17:57  叫号系统WindowsFormsApplication1inDebugsmile.wav
     文件       16384  2015-01-13 18:15  叫号系统WindowsFormsApplication1inDebugWindowsFormsApplication1.exe
     文件       32256  2015-01-13 18:15  叫号系统WindowsFormsApplication1inDebugWindowsFormsApplication1.pdb
     文件       11600  2015-01-14 14:12  叫号系统WindowsFormsApplication1inDebugWindowsFormsApplication1.vshost.exe
     文件         490  2010-03-17 22:39  叫号系统WindowsFormsApplication1inDebugWindowsFormsApplication1.vshost.exe.manifest
     文件        2762  2015-01-13 18:00  叫号系统WindowsFormsApplication1Dianming.cs
     文件        4723  2015-01-13 18:00  叫号系统WindowsFormsApplication1Dianming.Designer.cs
     文件        5817  2015-01-13 18:00  叫号系统WindowsFormsApplication1Dianming.resx
     文件        1304  2015-01-13 18:00  叫号系统WindowsFormsApplication1Form1.cs
     文件        5467  2015-01-13 18:00  叫号系统WindowsFormsApplication1Form1.Designer.cs
     文件        6513  2015-01-13 18:00  叫号系统WindowsFormsApplication1Form1.resx
     目录           0  2011-08-28 16:18  叫号系统WindowsFormsApplication1obj
     目录           0  2011-08-28 16:18  叫号系统WindowsFormsApplication1objx86
     目录           0  2015-01-13 18:15  叫号系统WindowsFormsApplication1objx86Debug
     文件       53760  2015-01-13 18:15  叫号系统WindowsFormsApplication1objx86DebugAxInterop.WMPLib.dll
     文件       10836  2015-01-13 18:15  叫号系统WindowsFormsApplication1objx86DebugDesignTimeResolveAssemblyReferences.cache
     文件        6746  2015-01-13 18:15  叫号系统WindowsFormsApplication1objx86DebugDesignTimeResolveAssemblyReferencesInput.cache
............此处省略27个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)