Consoles, database generated.

This commit is contained in:
2019-04-11 11:59:22 +01:00
parent ef02a3a6ad
commit 724eb1c599
52 changed files with 16373 additions and 63 deletions
@@ -1,4 +1,6 @@
using Sarand.PatientMgr.Core.App;
using Sarand.PatientMgr.Win.Dbas.Utils;
using Sarand.PatientMgr.Win.Forms.App;
using Sarand.Win.Forms;
using Sarand.Win.Forms.Utils;
using System;
@@ -71,10 +73,24 @@ namespace Sarand.PatientMgr.App.Forms
//-------------------------------------------------------------------
// C o n t r o l A c t i v i t y
//-------------------------------------------------------------------
protected override void SetControlActivity ()
{
SetControlsReadOnly();
}
protected override void SetControlsReadOnly ()
{
}
//-------------------------------------------------------------------
// F o r m E v e n t s
//-------------------------------------------------------------------
private void buttonGenerateDbDfn_Click (object sender, EventArgs e)
{
SpmDbDfnGenerator.DbDfnGeneratorResultData result = SpmDbDfnGenerator.Generate(SpmGlobals.Application.GetDatabase(SpmGlobals_Win.SessionProfile.SessionContext).ConnectionString);
if (result.Success)
MessageBox.Show("Database definition generated", "Database Definition", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
else MessageBox.Show("Database definition not generated.\n\n"+result.ErrorMessage, "Database Definition", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
//-------------------------------------------------------------------
}