• 大小: 1.87MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-11-06
  • 语言: 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 FrmRegister.BLL;
using FrmRegister.Models;
using System.IO;
namespace FrmRegister
{
    public partial class Form1 : Form
    {
        public int id = 0;
        private SectionManager sectionManager = new SectionManager();
        private FrmRegisterManager frmRegisterManager = new FrmRegisterManager();
        public Form1()
        {
            InitializeComponent();
        }
        
        private void Form1_Load(object sender EventArgs e)
        {
            try
            {
                //combox中显示要查询的就诊科目
                List
 st = sectionManager.SelectAll();
                Section s = new Section();
                s.Id = 0;
                s.Office = “全部“;
                st.Insert(0 s);
                cboOffice.DataSource = st;
                cboOffice.ValueMember = “id“;
                cboOffice.DisplayMember = “office“;
                List la = frmRegisterManager.SelectAll();
                FillListView(la);
            }
            catch (Exception ex)
            {
                
                MessageBox .Show (ex.ToString ());
            }
        }
        //退出
        private void btnExit_Click(object sender EventArgs e)
        {
            Application.Exit();
        }

        //窗体载入时显示所有
        private void FillListView(List la)
        {
            lvRegister.Items.Clear();
            foreach (Model a in la)
            {
                ListViewItem lvi = new ListViewItem(a.Id.ToString());
                lvi.SubItems.AddRange(new string[] { a.Name a.Sex a.Age.ToString() a.Office });
                lvi.Tag = a.Id;
                lvRegister.Items.Add(lvi);
            }
        }

        private void btnAppend_Click(object sender EventArgs e)
        {
            Insert insert = new Insert();
            insert.Show();
        }

        private void btnNew_Click(object sender EventArgs e)
        {
            List la = frmRegisterManager.SelectAll();
            FillListView(la);
        }

        private void btnUpdate_Click(object sender EventArgs e)
        {
            id = (int)lvRegister.SelectedItems[0].Tag;
            Update update = new Update();
            update.id = id;
            update.Show();
            this.Visible = false;
            List la = frmRegisterManager.Select(cboSelect.Text txtSelect.Text);
        }

        private void btnSelect_Click(object sender EventArgs e)
        {
            List lists=new List ();
            if (cboSelect.Text.Trim() == ““ )//非空验证
            {
                MessageBox.Show(“查询类型不能为空“ “提示选择查询类型“ MessageBoxButtons.OK MessageBoxIcon.Information);
                cboSelect.Focus();
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    3145728  2009-04-08 11:53  FrmRegister\database\PatientsDB.mdf

     文件    1048576  2009-04-08 11:53  FrmRegister\database\PatientsDB_log.ldf

     文件        216  2011-01-05 10:03  FrmRegister\FrmRegister\App.config

     文件      37376  2009-04-08 11:22  FrmRegister\FrmRegister\bin\Debug\FrmRegister.exe

     文件        216  2011-01-05 10:03  FrmRegister\FrmRegister\bin\Debug\FrmRegister.exe.config

     文件      44544  2009-04-08 11:22  FrmRegister\FrmRegister\bin\Debug\FrmRegister.pdb

     文件      14328  2009-04-08 11:23  FrmRegister\FrmRegister\bin\Debug\FrmRegister.vshost.exe

     文件        216  2011-01-05 10:03  FrmRegister\FrmRegister\bin\Debug\FrmRegister.vshost.exe.config

     文件        490  2007-07-21 01:33  FrmRegister\FrmRegister\bin\Debug\FrmRegister.vshost.exe.manifest

     文件       5632  2009-04-08 11:22  FrmRegister\FrmRegister\bin\Debug\FrmRegisterBLL.dll

     文件      19968  2009-04-08 11:22  FrmRegister\FrmRegister\bin\Debug\FrmRegisterBLL.pdb

     文件       9216  2009-04-08 11:22  FrmRegister\FrmRegister\bin\Debug\FrmRegisterDAL.dll

     文件      26112  2009-04-08 11:22  FrmRegister\FrmRegister\bin\Debug\FrmRegisterDAL.pdb

     文件       5120  2009-04-08 11:22  FrmRegister\FrmRegister\bin\Debug\FrmRegisterModels.dll

     文件      19968  2009-04-08 11:22  FrmRegister\FrmRegister\bin\Debug\FrmRegisterModels.pdb

     文件     516096  2006-08-18 11:50  FrmRegister\FrmRegister\bin\Debug\IrisSkin2.dll

     文件          0  2009-04-08 11:22  FrmRegister\FrmRegister\bin\Debug\Print.txt

     文件      20139  2009-01-21 20:43  FrmRegister\FrmRegister\Calmness.ssk

     文件       5032  2009-02-12 19:00  FrmRegister\FrmRegister\DeepCyan.ssk

     文件       5037  2009-02-12 19:00  FrmRegister\FrmRegister\DeepGreen.ssk

     文件       4908  2009-02-12 19:00  FrmRegister\FrmRegister\DeepOrange.ssk

     文件      16021  2009-01-21 20:42  FrmRegister\FrmRegister\DiamondBlue.ssk

     文件      16669  2009-01-21 20:42  FrmRegister\FrmRegister\DiamondGreen.ssk

     文件      12666  2009-02-11 12:06  FrmRegister\FrmRegister\Emerald.ssk

     文件      12261  2009-02-11 12:06  FrmRegister\FrmRegister\EmeraldColor1.ssk

     文件      12360  2009-02-11 12:06  FrmRegister\FrmRegister\EmeraldColor2.ssk

     文件      11422  2009-02-11 12:06  FrmRegister\FrmRegister\EmeraldColor3.ssk

     文件       5325  2011-02-17 08:16  FrmRegister\FrmRegister\Form1.cs

     文件      12159  2011-02-17 08:16  FrmRegister\FrmRegister\Form1.Designer.cs

     文件      31686  2011-02-17 08:16  FrmRegister\FrmRegister\Form1.resx

............此处省略119个文件信息

评论

共有 条评论

相关资源