Migráció Debrának 2.0

This commit is contained in:
2020-09-04 14:36:45 +02:00
parent 621f9a02ce
commit b1c2db4f35
10 changed files with 1364 additions and 17 deletions
@@ -0,0 +1,50 @@
using System;
using DevExpress.Xpo;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
namespace Nuvolar.Module.BusinessObjects.Migration
{
[DefaultClassOptions,NavigationItem(false),CreatableItem(false)]
public class MigrationLog : BaseObject
{
public MigrationLog(Session session)
: base(session)
{
}
public override void AfterConstruction()
{
base.AfterConstruction();
}
private DateTime _DateCreated;
private User _UserCreated;
private string _ShortName;
private string _Description;
public DateTime DateCreated
{
get { return _DateCreated; }
set { SetPropertyValue(nameof(DateCreated), ref _DateCreated, value); }
}
public User UserCreated
{
get { return _UserCreated; }
set { SetPropertyValue(nameof(UserCreated), ref _UserCreated, value); }
}
public string ShortName
{
get { return _ShortName; }
set { SetPropertyValue(nameof(ShortName), ref _ShortName, value); }
}
[Size(-1)]
public string Description
{
get { return _Description; }
set { SetPropertyValue(nameof(Description), ref _Description, value); }
}
}
}
@@ -34,6 +34,9 @@ namespace Nuvolar.Module.BusinessObjects.Migration
private string _SQLPassword;
private string _SQLDatabase;
private DateTime _DateFrom;
private DateTime _DateTo;
public string SQLServer
{
get { return _SQLServer; }
@@ -65,5 +68,16 @@ namespace Nuvolar.Module.BusinessObjects.Migration
set { SetPropertyValue(nameof(SQLDatabase), ref _SQLDatabase, value); }
}
public DateTime DateFrom
{
get { return _DateFrom; }
set { SetPropertyValue(nameof(DateFrom), ref _DateFrom, value); }
}
public DateTime DateTo
{
get { return _DateTo; }
set { SetPropertyValue(nameof(DateTo), ref _DateTo, value); }
}
}
}
@@ -30,6 +30,8 @@
{
this.components = new System.ComponentModel.Container();
this.aMigrateBaseObjects = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
this.aMigrateInvoiceOut = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
this.aMigrateInvoiceIn = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
//
// aMigrateBaseObjects
//
@@ -43,14 +45,41 @@
this.aMigrateBaseObjects.TypeOfView = typeof(DevExpress.ExpressApp.DetailView);
this.aMigrateBaseObjects.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aMigrateBaseObjects_Execute);
//
// aMigrateInvoiceOut
//
this.aMigrateInvoiceOut.Caption = "aMigrate Invoice Out";
this.aMigrateInvoiceOut.ConfirmationMessage = null;
this.aMigrateInvoiceOut.Id = "aMigrateInvoiceOut";
this.aMigrateInvoiceOut.TargetObjectType = typeof(Nuvolar.Module.BusinessObjects.Migration.MigrationParameters);
this.aMigrateInvoiceOut.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
this.aMigrateInvoiceOut.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView;
this.aMigrateInvoiceOut.ToolTip = null;
this.aMigrateInvoiceOut.TypeOfView = typeof(DevExpress.ExpressApp.DetailView);
this.aMigrateInvoiceOut.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aMigrateInvoiceOut_Execute);
//
// aMigrateInvoiceIn
//
this.aMigrateInvoiceIn.Caption = "aMigrate Invoice In";
this.aMigrateInvoiceIn.ConfirmationMessage = null;
this.aMigrateInvoiceIn.Id = "aMigrateInvoiceIn";
this.aMigrateInvoiceIn.TargetObjectType = typeof(Nuvolar.Module.BusinessObjects.Migration.MigrationParameters);
this.aMigrateInvoiceIn.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
this.aMigrateInvoiceIn.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView;
this.aMigrateInvoiceIn.ToolTip = null;
this.aMigrateInvoiceIn.TypeOfView = typeof(DevExpress.ExpressApp.DetailView);
//
// Migration_VC
//
this.Actions.Add(this.aMigrateBaseObjects);
this.Actions.Add(this.aMigrateInvoiceOut);
this.Actions.Add(this.aMigrateInvoiceIn);
}
#endregion
private DevExpress.ExpressApp.Actions.SimpleAction aMigrateBaseObjects;
private DevExpress.ExpressApp.Actions.SimpleAction aMigrateInvoiceOut;
private DevExpress.ExpressApp.Actions.SimpleAction aMigrateInvoiceIn;
}
}
File diff suppressed because it is too large Load Diff
@@ -118,7 +118,13 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="aMigrateBaseObjects.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
<value>17, 95</value>
</metadata>
<metadata name="aMigrateInvoiceOut.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 56</value>
</metadata>
<metadata name="aMigrateInvoiceIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>343, 17</value>
</metadata>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>