56 lines
1.6 KiB
C#
56 lines
1.6 KiB
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 EAS.Services;
|
|
using SOH.BLL;
|
|
using SOH.Entities;
|
|
using SOH;
|
|
using SOH.Common;
|
|
using SOH.Data;
|
|
using SOH.BasicSettings;
|
|
|
|
namespace SOH.BasicSettings
|
|
{
|
|
public partial class frmXianMuMiaoShuWeiHu : Form
|
|
{
|
|
frmNewMoBan fnmb;
|
|
|
|
public frmXianMuMiaoShuWeiHu()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public frmXianMuMiaoShuWeiHu(frmNewMoBan fnmb)
|
|
{
|
|
InitializeComponent();
|
|
this.fnmb = fnmb;
|
|
}
|
|
|
|
private void frmXianMuMiaoShuWeiHu_Load(object sender, EventArgs e)
|
|
{
|
|
var vservice = ServiceContainer.GetService<IZongJian>();
|
|
familiarDiagnoseBindingSource.DataSource = vservice.GetFDList();
|
|
}
|
|
|
|
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
|
{
|
|
var vservice = ServiceContainer.GetService<IZongJian>();
|
|
FamiliarDiagnose fd = new FamiliarDiagnose();
|
|
fd = vservice.GetFDById(Convert.ToInt32(dataGridView1.Rows[e.RowIndex].Cells["zdid"].Value.ToString()));
|
|
fnmb.getZd(fd);
|
|
this.Close();
|
|
}
|
|
|
|
private void textBox1_TextChanged(object sender, EventArgs e)
|
|
{
|
|
var vservice = ServiceContainer.GetService<IZongJian>();
|
|
dataGridView1.DataSource = vservice.GetFamiliarDiagnoseList(this.tb_zdPY.Text);
|
|
}
|
|
}
|
|
}
|