コード例 #1
0
 protected void AddLabOrderToData_Click(object sender, EventArgs e)
 {
     AddLabDiv.Visible = false;
     int iddoctor = Convert.ToInt32(DoctorNameLab.Text);
     DateTime dat = DateTime.Parse(DateLab.Text);
     var drug = new LabOrder() { DoctorID = iddoctor, Date = dat };
     DataBaseAllDataContext dataAll = new DataBaseAllDataContext();
     dataAll.LabOrders.InsertOnSubmit(drug);
     dataAll.SubmitChanges();
     AddLabOrderGrid.DataBind();
 }
コード例 #2
0
 protected void AddNewDrug_ClickG(object sender, EventArgs e)
 {
     if (IsValid)
     {
         TableAddDrugG.Visible = false;
         int iddoctor = Convert.ToInt32(DoctorID.Text);
         DateTime dat = DateTime.Parse(date.Text);
         var drug = new LabOrder() { DoctorID = iddoctor, Date = dat };
         DataBaseAllDataContext dataAll = new DataBaseAllDataContext();
         dataAll.LabOrders.InsertOnSubmit(drug);
         dataAll.SubmitChanges();
         GridDrugG.DataBind();
         TableAddDrugG.Visible = false;
         GridDrugG.Visible = true;
         ViewState["state"] = "load";
     }
 }
コード例 #3
0
 partial void DeleteLabOrder(LabOrder instance);
コード例 #4
0
 partial void UpdateLabOrder(LabOrder instance);
コード例 #5
0
 partial void InsertLabOrder(LabOrder instance);
コード例 #6
0
		private void detach_LabOrders(LabOrder entity)
		{
			this.SendPropertyChanging();
			entity.Doctor = null;
		}
コード例 #7
0
		private void attach_LabOrders(LabOrder entity)
		{
			this.SendPropertyChanging();
			entity.Doctor = this;
		}