41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using DocumentManagement;
|
|
using System;
|
|
using System.Data;
|
|
using System.Windows.Forms;
|
|
using System.Xml;
|
|
|
|
namespace AIMS.OperationAanesthesia
|
|
{
|
|
public partial class frmLISResult : Form
|
|
{
|
|
public string PatientNo;
|
|
public frmLISResult()
|
|
{
|
|
InitializeComponent();
|
|
dgvType.AutoGenerateColumns = false;
|
|
}
|
|
|
|
private void frmLISInspectionReport_Load(object sender, EventArgs e)
|
|
{
|
|
dgvItems.AutoGenerateColumns = false;
|
|
|
|
DataTable lisdate = DocumentDAL.GetLisResultNos(PatientNo);
|
|
foreach (DataRow row in lisdate.Rows)
|
|
{
|
|
int index = this.dgvType.Rows.Add();
|
|
this.dgvType.Rows[index].Cells[0].Value = row[0].ToString();
|
|
this.dgvType.Rows[index].Cells[1].Value = row[1].ToString();
|
|
this.dgvType.Rows[index].Cells[2].Value = row[2].ToString();
|
|
}
|
|
}
|
|
|
|
private void dgvType_CellClick(object sender, DataGridViewCellEventArgs e)
|
|
{
|
|
if (!(dgvType.SelectedRows.Count > 0)) return;
|
|
string lisBillNo = dgvType.SelectedRows[0].Cells[0].Value.ToString();
|
|
DataTable lisdate = DocumentDAL.GetLisResultItems(PatientNo,lisBillNo);
|
|
dgvItems.DataSource = lisdate;
|
|
}
|
|
|
|
}
|
|
} |