private void XtraFrmShapeFarmacy_Load(object sender, EventArgs e) { db = new MedicalCenterDbEntities(); db.shapeFarmacy.Load(); shapeFarmacyBindingSource.DataSource = db.shapeFarmacy.Local; gridView1.Columns[3].Visible = false; gridView1.Columns[4].Visible = false; }
private void XtraFrmcompanySuplierDrag_Load(object sender, EventArgs e) { db = new MedicalCenterDbEntities(); db.companySuplierDragTab.Load(); companySuplierDragTabBindingSource.DataSource = db.companySuplierDragTab.Local; gridView1.Columns[7].Visible = false; gridView1.Columns[8].Visible = false; }
private void XtraFrmscientificNameDrag_Load(object sender, EventArgs e) { db = new MedicalCenterDbEntities(); db.scientificNameDragTab.Load(); scientificNameDragTabBindingSource.DataSource = db.scientificNameDragTab.Local; gridView1.Columns[4].Visible = false; gridView1.Columns[5].Visible = false; }
private void XtraFrmDoctor_Load(object sender, EventArgs e) { db = new MedicalCenterDbEntities(); db.doctorsTab.Load(); doctorsTabBindingSource.DataSource = db.doctorsTab.Local; gridView2.Columns[0].Visible = false; gridView2.Columns[18].Visible = false; gridView2.Columns[19].Visible = false; gridView2.Columns[17].Visible = false; DBConnection Db = new DBConnection(); SqlDataAdapter da = new SqlDataAdapter("select clId, clName from clinicTab", Db.sqlconnection); DataSet ds = new DataSet(); da.Fill(ds, "clinic"); clIdTextEdit.Properties.DataSource = ds.Tables["clinic"]; clIdTextEdit.Properties.DisplayMember = "clName"; clIdTextEdit.Properties.ValueMember = "clId"; doImgPictureEdit.EditValue = img; }
private void diagnosePatientReport_Load(object sender, EventArgs e) { using (MedicalCenterDbEntities db = new MedicalCenterDbEntities()) { getDiagnosePatientByVistID_ResultBindingSource.DataSource = db.getDiagnosePatientByVistID(VISITID).ToList(); Microsoft.Reporting.WinForms.ReportParameter[] pram = new Microsoft.Reporting.WinForms.ReportParameter[] { new Microsoft.Reporting.WinForms.ReportParameter(VISITID.ToString()), }; getHeaderInformationResultBindingSource.DataSource = db.getHeaderInformation(VISITID).ToList(); Microsoft.Reporting.WinForms.ReportParameter[] pram1 = new Microsoft.Reporting.WinForms.ReportParameter[] { new Microsoft.Reporting.WinForms.ReportParameter(VISITID.ToString()), }; // reportViewer1.LocalReport.SetParameters(pram); this.reportViewer1.RefreshReport(); } }