HospitalInformation/AdmDoc_Detail.cs

(完整代码) 1KB

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 System.Data.SqlClient;

namespace HospitalInformation
{
    public partial class AdmDoc_Detail : Form
    {
        public AdmDoc_Detail()
        {
            InitializeComponent();
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void 返回ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void AdmDoc_Detail_Load(object sender, EventArgs e)
        {
            SqlDataAdapter da;
            DataSet ds;
            string sql = "select DoctorNo AS 医生号,DoctorName AS 医生登录名,DoctorPwd AS 医生登录密码,DoctorDutyTime AS 医生值班时间,DoctorSection AS 医生科室,DoctorGender AS 医生性别,DoctorBirthDate AS 医生出生日期,DoctorTitle AS 医生职称,DoctorRegistrationPrice AS 医生挂号费用 from Doctor order by DoctorNo desc";
            using (SqlConnection conn = new SqlConnection(DBHelper.connString))
            {
                da = new SqlDataAdapter(sql, conn);
                ds = new DataSet();
                da.Fill(ds);
                dgv_DocDetail.DataSource = ds.Tables[0];
            }
        }

        private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。