Ejemplo n.º 1
0
 private void OutPatientBackNum_Load(object sender, EventArgs e)
 {
     dataGridView1.AllowUserToAddRows       = false;
     dataGridView1.AllowUserToDeleteRows    = false;
     this.dataGridView1.ReadOnly            = false;
     this.dataGridView1.AutoGenerateColumns = false;
     OutPatientBackNumDAL.YQ(comboBox1);
 }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                MessageBox.Show("请选择科室名称");
                return;
            }
            string yqid      = comboBox1.SelectedValue.ToString();
            string starttime = dateTimePicker1.Value.ToString("yyyy-MM-dd") + " 00:00:00";
            string endtime   = dateTimePicker2.Value.ToString("yyyy-MM-dd") + " 23:59:59";
            string deptid    = textBox1.Tag.ToString();

            OutPatientBackNumDAL.OutPatientBackNum(yqid, deptid, starttime, endtime, dataGridView1);
        }