Upload to server
uploading
This commit is contained in:
47
patientman/PatientMan/Forms/frmTreatmentList.cs
Normal file
47
patientman/PatientMan/Forms/frmTreatmentList.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml;
|
||||
using System.Linq;
|
||||
using Datalib.DatabaseSpecific;
|
||||
using Datalib.EntityClasses;
|
||||
using Datalib.FactoryClasses;
|
||||
using Datalib.HelperClasses;
|
||||
using SD.LLBLGen.Pro.LinqSupportClasses;
|
||||
using Datalib.Linq;
|
||||
using Datalib.RelationClasses;
|
||||
using System.Threading;
|
||||
using System.Globalization;
|
||||
using System.Configuration;
|
||||
using SD.LLBLGen.Pro.ORMSupportClasses.Miscellaneous;
|
||||
using SD.LLBLGen.Pro.ORMSupportClasses;
|
||||
namespace PatientMan.Forms
|
||||
{
|
||||
public partial class frmTreatmentList : PatientMan.BasicForms.frmCommon
|
||||
{
|
||||
EntityCollection<TblTreatmentEntity> Treatments = new EntityCollection<TblTreatmentEntity>();
|
||||
public frmTreatmentList()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
adapter.SaveEntityCollection(Treatments, true, true);
|
||||
(new frmShowSaveInfo()).Show();
|
||||
base.SaveRecord();
|
||||
}
|
||||
|
||||
public override void LoadData()
|
||||
{
|
||||
adapter.FetchEntityCollection(Treatments, null);
|
||||
grdTests.DataSource = Treatments;
|
||||
base.LoadData();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user