Adatmigráció más Nuvolar rendszerből (MSSQL !!!)
MySQL
This commit is contained in:
@@ -0,0 +1,87 @@
|
|||||||
|
using System;
|
||||||
|
using DevExpress.Xpo;
|
||||||
|
using DevExpress.Data.Filtering;
|
||||||
|
using DevExpress.Persistent.Base;
|
||||||
|
using DevExpress.Persistent.BaseImpl;
|
||||||
|
|
||||||
|
namespace Nuvolar.Module.BusinessObjects.Financial
|
||||||
|
{
|
||||||
|
[DefaultClassOptions, NavigationItem(false), CreatableItem(false), NonPersistent]
|
||||||
|
|
||||||
|
public class PCIEdit : BaseObject
|
||||||
|
{
|
||||||
|
public PCIEdit(Session session)
|
||||||
|
: base(session)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public override void AfterConstruction()
|
||||||
|
{
|
||||||
|
base.AfterConstruction();
|
||||||
|
|
||||||
|
}
|
||||||
|
private LiquidAssets _LiquidAssets;
|
||||||
|
private PCIGroup _PCIGroup;
|
||||||
|
private string _DocumentNumber;
|
||||||
|
private DateTime _DateExecution;
|
||||||
|
private double _CurrencyRate;
|
||||||
|
|
||||||
|
[ImmediatePostData]
|
||||||
|
public LiquidAssets LiquidAssets
|
||||||
|
{
|
||||||
|
get { return _LiquidAssets; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetPropertyValue("LiquidAssets", ref _LiquidAssets, value);
|
||||||
|
//GLRows.Load();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public PCIGroup PCIGroup
|
||||||
|
{
|
||||||
|
get { return _PCIGroup; }
|
||||||
|
set { SetPropertyValue("PCIGroup", ref _PCIGroup, value); }
|
||||||
|
}
|
||||||
|
public DateTime DateExecution
|
||||||
|
{
|
||||||
|
get { return _DateExecution; }
|
||||||
|
set { SetPropertyValue("DateExecution", ref _DateExecution, value); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[ImmediatePostData]
|
||||||
|
public string DocumentNumber
|
||||||
|
{
|
||||||
|
get { return _DocumentNumber; }
|
||||||
|
set { SetPropertyValue("DocumentNumber", ref _DocumentNumber, value); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public XPCollection<GLRows> GLRows
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
XPCollection<GLRows> _GRLRows_Nothing = new XPCollection<GLRows>(Session, CriteriaOperator.Parse("1=2"));
|
||||||
|
if (this.LiquidAssets == null)
|
||||||
|
{
|
||||||
|
return _GRLRows_Nothing;
|
||||||
|
}
|
||||||
|
if (this.LiquidAssets.LiquidAssetsType == eLiquidAssetsType.NormalBank)
|
||||||
|
|
||||||
|
{
|
||||||
|
GLBank _GLBank = Session.FindObject<GLBank>(CriteriaOperator.Parse("IsEditable=True AND LiquidAssets_Main.Oid= ? AND DocumentNumber=?",
|
||||||
|
this.LiquidAssets.Oid, this.DocumentNumber));
|
||||||
|
if (_GLBank != null)
|
||||||
|
{
|
||||||
|
return _GLBank.GLRows;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return _GRLRows_Nothing;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return _GRLRows_Nothing;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+87
@@ -0,0 +1,87 @@
|
|||||||
|
namespace Nuvolar.Module.BusinessObjects.Financial
|
||||||
|
{
|
||||||
|
partial class PCIEdit_VC
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Component Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
this.aPCIEdit = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||||
|
this.aToTable_PCIEdit = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||||
|
this.aToTableD_PCIEdit = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||||
|
//
|
||||||
|
// aPCIEdit
|
||||||
|
//
|
||||||
|
this.aPCIEdit.Caption = "aPCIEdit";
|
||||||
|
this.aPCIEdit.ConfirmationMessage = null;
|
||||||
|
this.aPCIEdit.Id = "aPCIEdit";
|
||||||
|
this.aPCIEdit.TargetObjectType = typeof(Nuvolar.Module.PCIGroup);
|
||||||
|
this.aPCIEdit.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
|
||||||
|
this.aPCIEdit.TargetViewType = DevExpress.ExpressApp.ViewType.ListView;
|
||||||
|
this.aPCIEdit.ToolTip = null;
|
||||||
|
this.aPCIEdit.TypeOfView = typeof(DevExpress.ExpressApp.ListView);
|
||||||
|
this.aPCIEdit.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aPCIEdit_Execute);
|
||||||
|
//
|
||||||
|
// aToTable_PCIEdit
|
||||||
|
//
|
||||||
|
this.aToTable_PCIEdit.Caption = "aToTable_PCIEdit";
|
||||||
|
this.aToTable_PCIEdit.Category = "aToTable_PCIEdit";
|
||||||
|
this.aToTable_PCIEdit.ConfirmationMessage = null;
|
||||||
|
this.aToTable_PCIEdit.Id = "aToTable_PCIEdit";
|
||||||
|
this.aToTable_PCIEdit.TargetObjectType = typeof(Nuvolar.Module.BusinessObjects.Financial.PCIEdit);
|
||||||
|
this.aToTable_PCIEdit.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
|
||||||
|
this.aToTable_PCIEdit.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView;
|
||||||
|
this.aToTable_PCIEdit.ToolTip = null;
|
||||||
|
this.aToTable_PCIEdit.TypeOfView = typeof(DevExpress.ExpressApp.DetailView);
|
||||||
|
this.aToTable_PCIEdit.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aToTable_PCIEdit_Execute);
|
||||||
|
//
|
||||||
|
// aToTableD_PCIEdit
|
||||||
|
//
|
||||||
|
this.aToTableD_PCIEdit.Caption = "aToTableD_PCIEdit";
|
||||||
|
this.aToTableD_PCIEdit.Category = "aToTableD_PCIEdit";
|
||||||
|
this.aToTableD_PCIEdit.ConfirmationMessage = null;
|
||||||
|
this.aToTableD_PCIEdit.Id = "aToTableD_PCIEdit";
|
||||||
|
this.aToTableD_PCIEdit.TargetObjectType = typeof(Nuvolar.Module.BusinessObjects.Financial.PCIEdit);
|
||||||
|
this.aToTableD_PCIEdit.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
|
||||||
|
this.aToTableD_PCIEdit.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView;
|
||||||
|
this.aToTableD_PCIEdit.ToolTip = null;
|
||||||
|
this.aToTableD_PCIEdit.TypeOfView = typeof(DevExpress.ExpressApp.DetailView);
|
||||||
|
//
|
||||||
|
// PCIEdit_VC
|
||||||
|
//
|
||||||
|
this.Actions.Add(this.aPCIEdit);
|
||||||
|
this.Actions.Add(this.aToTable_PCIEdit);
|
||||||
|
this.Actions.Add(this.aToTableD_PCIEdit);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private DevExpress.ExpressApp.Actions.SimpleAction aPCIEdit;
|
||||||
|
private DevExpress.ExpressApp.Actions.SimpleAction aToTable_PCIEdit;
|
||||||
|
private DevExpress.ExpressApp.Actions.SimpleAction aToTableD_PCIEdit;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using DevExpress.Data.Filtering;
|
||||||
|
using DevExpress.ExpressApp;
|
||||||
|
using DevExpress.ExpressApp.Actions;
|
||||||
|
using DevExpress.ExpressApp.Editors;
|
||||||
|
using DevExpress.ExpressApp.Layout;
|
||||||
|
using DevExpress.ExpressApp.Model.NodeGenerators;
|
||||||
|
using DevExpress.ExpressApp.SystemModule;
|
||||||
|
using DevExpress.ExpressApp.Templates;
|
||||||
|
using DevExpress.ExpressApp.Utils;
|
||||||
|
using DevExpress.ExpressApp.Xpo;
|
||||||
|
using DevExpress.Persistent.Base;
|
||||||
|
using DevExpress.Persistent.Validation;
|
||||||
|
|
||||||
|
namespace Nuvolar.Module.BusinessObjects.Financial
|
||||||
|
{
|
||||||
|
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||||
|
public partial class PCIEdit_VC : ViewController
|
||||||
|
{
|
||||||
|
public PCIEdit_VC()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||||
|
}
|
||||||
|
protected override void OnActivated()
|
||||||
|
{
|
||||||
|
base.OnActivated();
|
||||||
|
// Perform various tasks depending on the target View.
|
||||||
|
}
|
||||||
|
protected override void OnViewControlsCreated()
|
||||||
|
{
|
||||||
|
base.OnViewControlsCreated();
|
||||||
|
// Access and customize the target View control.
|
||||||
|
}
|
||||||
|
protected override void OnDeactivated()
|
||||||
|
{
|
||||||
|
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||||
|
base.OnDeactivated();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void aPCIEdit_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||||
|
{
|
||||||
|
XPObjectSpace _onew = Application.CreateObjectSpace() as XPObjectSpace;
|
||||||
|
PCIEdit _PCIEdit = _onew.CreateObject<PCIEdit>();
|
||||||
|
ShowViewParameters _ShowViewParameters=new ShowViewParameters();
|
||||||
|
ShowViewSource _ShowViewSource = new ShowViewSource(Frame, null);
|
||||||
|
|
||||||
|
_ShowViewParameters.CreatedView = Application.CreateDetailView(_onew, "PCIEdit_DetailView", true, _PCIEdit);
|
||||||
|
_ShowViewParameters.NewWindowTarget = NewWindowTarget.MdiChild;
|
||||||
|
_ShowViewParameters.TargetWindow = TargetWindow.NewWindow;
|
||||||
|
Application.ShowViewStrategy.ShowView(_ShowViewParameters, _ShowViewSource);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void aToTable_PCIEdit_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||||
|
{
|
||||||
|
XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||||
|
PCIEdit _PCIEdit = View.SelectedObjects[0] as PCIEdit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,132 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="aPCIEdit.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>315, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="aToTable_PCIEdit.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="aToTableD_PCIEdit.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>162, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using DevExpress.Xpo;
|
||||||
|
using DevExpress.ExpressApp;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using DevExpress.ExpressApp.DC;
|
||||||
|
using DevExpress.Data.Filtering;
|
||||||
|
using DevExpress.Persistent.Base;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using DevExpress.ExpressApp.Model;
|
||||||
|
using DevExpress.Persistent.BaseImpl;
|
||||||
|
using DevExpress.Persistent.Validation;
|
||||||
|
|
||||||
|
namespace Nuvolar.Module.BusinessObjects.Migration
|
||||||
|
{
|
||||||
|
[DefaultClassOptions,NavigationItem(false),CreatableItem(false)]
|
||||||
|
|
||||||
|
public class MigrationParameters : BaseObject
|
||||||
|
{ // Inherit from a different class to provide a custom primary key, concurrency and deletion behavior, etc. (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument113146.aspx).
|
||||||
|
public MigrationParameters(Session session)
|
||||||
|
: base(session)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public override void AfterConstruction()
|
||||||
|
{
|
||||||
|
base.AfterConstruction();
|
||||||
|
// Place your initialization code here (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112834.aspx).
|
||||||
|
}
|
||||||
|
private string _SQLServer;
|
||||||
|
private eSQLType _SQLType;
|
||||||
|
private string _SQLPort;
|
||||||
|
private string _SQLUser;
|
||||||
|
private string _SQLPassword;
|
||||||
|
private string _SQLDatabase;
|
||||||
|
|
||||||
|
public string SQLServer
|
||||||
|
{
|
||||||
|
get { return _SQLServer; }
|
||||||
|
set { SetPropertyValue(nameof(SQLServer), ref _SQLServer, value); }
|
||||||
|
}
|
||||||
|
public eSQLType SQLType
|
||||||
|
{
|
||||||
|
get { return _SQLType; }
|
||||||
|
set { SetPropertyValue(nameof(SQLType), ref _SQLType, value); }
|
||||||
|
}
|
||||||
|
public string SQLPort
|
||||||
|
{
|
||||||
|
get { return _SQLPort; }
|
||||||
|
set { SetPropertyValue(nameof(SQLPort), ref _SQLPort, value); }
|
||||||
|
}
|
||||||
|
public string SQLUser
|
||||||
|
{
|
||||||
|
get { return _SQLUser; }
|
||||||
|
set { SetPropertyValue(nameof(SQLUser), ref _SQLUser, value); }
|
||||||
|
}
|
||||||
|
public string SQLPassword
|
||||||
|
{
|
||||||
|
get { return _SQLPassword; }
|
||||||
|
set { SetPropertyValue(nameof(SQLPassword), ref _SQLPassword, value); }
|
||||||
|
}
|
||||||
|
public string SQLDatabase
|
||||||
|
{
|
||||||
|
get { return _SQLDatabase; }
|
||||||
|
set { SetPropertyValue(nameof(SQLDatabase), ref _SQLDatabase, value); }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
namespace Nuvolar.Module.BusinessObjects.Migration
|
||||||
|
{
|
||||||
|
partial class Migration_VC
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Component Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
this.aMigrateBaseObjects = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||||
|
//
|
||||||
|
// aMigrateBaseObjects
|
||||||
|
//
|
||||||
|
this.aMigrateBaseObjects.Caption = "aMigrate Base Objects";
|
||||||
|
this.aMigrateBaseObjects.ConfirmationMessage = null;
|
||||||
|
this.aMigrateBaseObjects.Id = "aMigrateBaseObjects";
|
||||||
|
this.aMigrateBaseObjects.TargetObjectType = typeof(Nuvolar.Module.BusinessObjects.Migration.MigrationParameters);
|
||||||
|
this.aMigrateBaseObjects.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
|
||||||
|
this.aMigrateBaseObjects.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView;
|
||||||
|
this.aMigrateBaseObjects.ToolTip = null;
|
||||||
|
this.aMigrateBaseObjects.TypeOfView = typeof(DevExpress.ExpressApp.DetailView);
|
||||||
|
this.aMigrateBaseObjects.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aMigrateBaseObjects_Execute);
|
||||||
|
//
|
||||||
|
// Migration_VC
|
||||||
|
//
|
||||||
|
this.Actions.Add(this.aMigrateBaseObjects);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private DevExpress.ExpressApp.Actions.SimpleAction aMigrateBaseObjects;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,486 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Globalization;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Text;
|
||||||
|
using DevExpress.Data.Filtering;
|
||||||
|
using DevExpress.ExpressApp;
|
||||||
|
using DevExpress.ExpressApp.Actions;
|
||||||
|
using DevExpress.ExpressApp.Editors;
|
||||||
|
using DevExpress.ExpressApp.Layout;
|
||||||
|
using DevExpress.ExpressApp.Model.NodeGenerators;
|
||||||
|
using DevExpress.ExpressApp.SystemModule;
|
||||||
|
using DevExpress.ExpressApp.Templates;
|
||||||
|
using DevExpress.ExpressApp.Utils;
|
||||||
|
using DevExpress.ExpressApp.Xpo;
|
||||||
|
using DevExpress.Persistent.Base;
|
||||||
|
using DevExpress.Persistent.BaseImpl;
|
||||||
|
using DevExpress.Persistent.Validation;
|
||||||
|
using DevExpress.PivotGrid.Criteria;
|
||||||
|
using DevExpress.Xpo;
|
||||||
|
using MySql.Data.MySqlClient;
|
||||||
|
|
||||||
|
namespace Nuvolar.Module.BusinessObjects.Migration
|
||||||
|
{
|
||||||
|
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||||
|
public partial class Migration_VC : ViewController
|
||||||
|
{
|
||||||
|
public Migration_VC()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||||
|
}
|
||||||
|
protected override void OnActivated()
|
||||||
|
{
|
||||||
|
base.OnActivated();
|
||||||
|
// Perform various tasks depending on the target View.
|
||||||
|
}
|
||||||
|
protected override void OnViewControlsCreated()
|
||||||
|
{
|
||||||
|
base.OnViewControlsCreated();
|
||||||
|
// Access and customize the target View control.
|
||||||
|
}
|
||||||
|
protected override void OnDeactivated()
|
||||||
|
{
|
||||||
|
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||||
|
base.OnDeactivated();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void aMigrateBaseObjects_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||||
|
{
|
||||||
|
MigrationParameters _MigrationParameters = View.SelectedObjects[0] as MigrationParameters;
|
||||||
|
XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||||
|
|
||||||
|
if (_MigrationParameters.SQLType == eSQLType.MSSQL)
|
||||||
|
{
|
||||||
|
//Sync_XPObjectType_MSSQL_MySQL(_ocur);
|
||||||
|
//Sync_HCategory_ChartOfAccounts_MSSQL_MySQL(_ocur);
|
||||||
|
//Sync_ChartOfAccounts_MSSQL_MySQL(_ocur);
|
||||||
|
Sync_ChartOfAccountsYear_MSSQL_MySQL(_ocur);
|
||||||
|
//Sync_HCategory_Controlling_MSSQL_MySQL(_ocur);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
private void Sync_XPObjectType_MSSQL_MySQL(XPObjectSpace _ocur)
|
||||||
|
{
|
||||||
|
MakeObjectType<HCategory>(_ocur);
|
||||||
|
MakeObjectType<ChartOfAccounts>(_ocur);
|
||||||
|
MakeObjectType<ChartOfAccountsYear>(_ocur);
|
||||||
|
MakeObjectType<Controlling>(_ocur);
|
||||||
|
MakeObjectType<ControllingYear>(_ocur);
|
||||||
|
}
|
||||||
|
private void MakeObjectType<T>(XPObjectSpace _ocur)
|
||||||
|
{
|
||||||
|
XPObjectType _XPObjectType = _ocur.FindObject<XPObjectType>(CriteriaOperator.Parse("TypeName = ?", typeof(T).FullName));
|
||||||
|
if (_XPObjectType == null)
|
||||||
|
{
|
||||||
|
Assembly a = typeof(T).Assembly;
|
||||||
|
|
||||||
|
_XPObjectType = _ocur.CreateObject<XPObjectType>();
|
||||||
|
_XPObjectType.TypeName = typeof(T).FullName;
|
||||||
|
_XPObjectType.AssemblyName = a.FullName.Split(',')[0];
|
||||||
|
|
||||||
|
}
|
||||||
|
_ocur.CommitChanges();
|
||||||
|
}
|
||||||
|
private int GetObjectTypeOID<T>(XPObjectSpace _ocur)
|
||||||
|
{
|
||||||
|
int _return = -1;
|
||||||
|
XPObjectType _XPObjectType = _ocur.FindObject<XPObjectType>(CriteriaOperator.Parse("TypeName = ?", typeof(T).FullName));
|
||||||
|
if (_XPObjectType != null)
|
||||||
|
{
|
||||||
|
_return = _XPObjectType.Oid;
|
||||||
|
}
|
||||||
|
return _return;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Sync_HCategory_ChartOfAccounts_MSSQL_MySQL(XPObjectSpace _ocur)
|
||||||
|
{
|
||||||
|
MigrationParameters _MigrationParameters = View.SelectedObjects[0] as MigrationParameters;
|
||||||
|
_ocur.Session.ExecuteNonQuery("SET FOREIGN_KEY_CHECKS=0");
|
||||||
|
string _ConnectionStringMSSQL = string.Format(" User ID={0}; " +
|
||||||
|
" Password={1};" +
|
||||||
|
" Pooling=false;" +
|
||||||
|
" Data Source={2};" +
|
||||||
|
" Initial Catalog={3}",
|
||||||
|
_MigrationParameters.SQLUser,
|
||||||
|
_MigrationParameters.SQLPassword,
|
||||||
|
_MigrationParameters.SQLServer,
|
||||||
|
_MigrationParameters.SQLDatabase);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SqlConnection _SqlConnection = new SqlConnection(_ConnectionStringMSSQL);
|
||||||
|
MySqlConnection _MySqlConnection = new MySqlConnection(Nuvolar.Module.GeneralFunction.GLOBAL_ConnectionString.Replace("XpoProvider=MySql;", ""));
|
||||||
|
|
||||||
|
_SqlConnection.Open();
|
||||||
|
_MySqlConnection.Open();
|
||||||
|
if (_SqlConnection.State == ConnectionState.Open)
|
||||||
|
{
|
||||||
|
int _ObjectType_OID = GetObjectTypeOID<ChartOfAccounts>(_ocur);
|
||||||
|
|
||||||
|
string _SQL = " select t1.* " +
|
||||||
|
" from HCategory t1" +
|
||||||
|
" where oid in (select Oid from ChartOfAccounts) and t1.GCRecord is null";
|
||||||
|
SqlCommand _SqlCommand = new SqlCommand(_SQL, _SqlConnection);
|
||||||
|
SqlDataReader _SqlDataReader = _SqlCommand.ExecuteReader();
|
||||||
|
|
||||||
|
if (_SqlDataReader.HasRows)
|
||||||
|
{
|
||||||
|
while (_SqlDataReader.Read())
|
||||||
|
{
|
||||||
|
string _MySQL = "SELECT count(*) FROM HCategory WHERE Oid=@Oid";
|
||||||
|
using (MySqlCommand _MySqlCommand = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
{
|
||||||
|
_MySqlCommand.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
|
||||||
|
object _Found = _MySqlCommand.ExecuteScalar();
|
||||||
|
|
||||||
|
if (_Found != null)
|
||||||
|
{
|
||||||
|
double _F;
|
||||||
|
IsNumeric(_Found, out _F);
|
||||||
|
if (_F == 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
_MySQL = " SET FOREIGN_KEY_CHECKS=0;" +
|
||||||
|
" INSERT INTO HCategory (Oid,Parent,Name,ObjectType)" +
|
||||||
|
" SELECT @Oid,@Parent,@Name,@ObjectType;";
|
||||||
|
using (MySqlCommand _MySqlCommand_Insert = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
{
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@Parent", DbType = DbType.Guid, Value = _SqlDataReader["Parent"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@Name", DbType = DbType.String, Value = _SqlDataReader["Name"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ObjectType", DbType = DbType.Int64, Value = _ObjectType_OID });
|
||||||
|
|
||||||
|
|
||||||
|
_MySqlCommand_Insert.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else // Ha már VAN
|
||||||
|
{
|
||||||
|
_MySQL = " SET FOREIGN_KEY_CHECKS=0;" +
|
||||||
|
" UPDATE HCategory SET Name=@Name," +
|
||||||
|
" Parent=@Parent " +
|
||||||
|
" WHERE Oid=@Oid";
|
||||||
|
using (MySqlCommand _MySqlCommand_Update = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
{
|
||||||
|
|
||||||
|
_MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
_MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Parent", DbType = DbType.Guid, Value = _SqlDataReader["Parent"] });
|
||||||
|
_MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Name", DbType = DbType.String, Value = _SqlDataReader["Name"] });
|
||||||
|
|
||||||
|
_MySqlCommand_Update.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
_SqlConnection.Close();
|
||||||
|
_MySqlConnection.Close();
|
||||||
|
_ocur.Session.ExecuteNonQuery("SET FOREIGN_KEY_CHECKS=1");
|
||||||
|
}
|
||||||
|
private void Sync_HCategory_Controlling_MSSQL_MySQL(XPObjectSpace _ocur)
|
||||||
|
{
|
||||||
|
MigrationParameters _MigrationParameters = View.SelectedObjects[0] as MigrationParameters;
|
||||||
|
_ocur.Session.ExecuteNonQuery("SET FOREIGN_KEY_CHECKS=0");
|
||||||
|
string _ConnectionStringMSSQL = string.Format(" User ID={0}; " +
|
||||||
|
" Password={1};" +
|
||||||
|
" Pooling=false;" +
|
||||||
|
" Data Source={2};" +
|
||||||
|
" Initial Catalog={3}",
|
||||||
|
_MigrationParameters.SQLUser,
|
||||||
|
_MigrationParameters.SQLPassword,
|
||||||
|
_MigrationParameters.SQLServer,
|
||||||
|
_MigrationParameters.SQLDatabase);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SqlConnection _SqlConnection = new SqlConnection(_ConnectionStringMSSQL);
|
||||||
|
MySqlConnection _MySqlConnection = new MySqlConnection(Nuvolar.Module.GeneralFunction.GLOBAL_ConnectionString.Replace("XpoProvider=MySql;", ""));
|
||||||
|
|
||||||
|
_SqlConnection.Open();
|
||||||
|
_MySqlConnection.Open();
|
||||||
|
if (_SqlConnection.State == ConnectionState.Open)
|
||||||
|
{
|
||||||
|
int _ObjectType_OID = GetObjectTypeOID<Controlling>(_ocur);
|
||||||
|
|
||||||
|
string _SQL = " select t1.* " +
|
||||||
|
" from HCategory t1" +
|
||||||
|
" where oid in (select Oid from Controlling) and t1.GCRecord is null";
|
||||||
|
SqlCommand _SqlCommand = new SqlCommand(_SQL, _SqlConnection);
|
||||||
|
SqlDataReader _SqlDataReader = _SqlCommand.ExecuteReader();
|
||||||
|
|
||||||
|
if (_SqlDataReader.HasRows)
|
||||||
|
{
|
||||||
|
while (_SqlDataReader.Read())
|
||||||
|
{
|
||||||
|
string _MySQL = "SELECT count(*) FROM HCategory WHERE Oid=@Oid";
|
||||||
|
using (MySqlCommand _MySqlCommand = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
{
|
||||||
|
_MySqlCommand.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
|
||||||
|
object _Found = _MySqlCommand.ExecuteScalar();
|
||||||
|
|
||||||
|
if (_Found != null)
|
||||||
|
{
|
||||||
|
double _F;
|
||||||
|
IsNumeric(_Found, out _F);
|
||||||
|
if (_F == 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
_MySQL = " SET FOREIGN_KEY_CHECKS=0;" +
|
||||||
|
" INSERT INTO HCategory (Oid,Parent,Name,ObjectType)" +
|
||||||
|
" SELECT @Oid,@Parent,@Name,@ObjectType;";
|
||||||
|
using (MySqlCommand _MySqlCommand_Insert = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
{
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@Parent", DbType = DbType.Guid, Value = _SqlDataReader["Parent"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@Name", DbType = DbType.String, Value = _SqlDataReader["Name"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ObjectType", DbType = DbType.Int64, Value = _ObjectType_OID });
|
||||||
|
|
||||||
|
|
||||||
|
_MySqlCommand_Insert.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else // Ha már VAN
|
||||||
|
{
|
||||||
|
_MySQL = " SET FOREIGN_KEY_CHECKS=0;" +
|
||||||
|
" UPDATE HCategory SET Name=@Name," +
|
||||||
|
" Parent=@Parent " +
|
||||||
|
" WHERE Oid=@Oid";
|
||||||
|
using (MySqlCommand _MySqlCommand_Update = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
{
|
||||||
|
|
||||||
|
_MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
_MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Parent", DbType = DbType.Guid, Value = _SqlDataReader["Parent"] });
|
||||||
|
_MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Name", DbType = DbType.String, Value = _SqlDataReader["Name"] });
|
||||||
|
|
||||||
|
_MySqlCommand_Update.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
_SqlConnection.Close();
|
||||||
|
_MySqlConnection.Close();
|
||||||
|
_ocur.Session.ExecuteNonQuery("SET FOREIGN_KEY_CHECKS=1");
|
||||||
|
}
|
||||||
|
private void Sync_ChartOfAccounts_MSSQL_MySQL(XPObjectSpace _ocur)
|
||||||
|
{
|
||||||
|
MigrationParameters _MigrationParameters = View.SelectedObjects[0] as MigrationParameters;
|
||||||
|
_ocur.Session.ExecuteNonQuery("SET FOREIGN_KEY_CHECKS=0");
|
||||||
|
string _ConnectionStringMSSQL = string.Format(" User ID={0}; " +
|
||||||
|
" Password={1};" +
|
||||||
|
" Pooling=false;" +
|
||||||
|
" Data Source={2};" +
|
||||||
|
" Initial Catalog={3}",
|
||||||
|
_MigrationParameters.SQLUser,
|
||||||
|
_MigrationParameters.SQLPassword,
|
||||||
|
_MigrationParameters.SQLServer,
|
||||||
|
_MigrationParameters.SQLDatabase);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SqlConnection _SqlConnection = new SqlConnection(_ConnectionStringMSSQL);
|
||||||
|
MySqlConnection _MySqlConnection = new MySqlConnection(Nuvolar.Module.GeneralFunction.GLOBAL_ConnectionString.Replace("XpoProvider=MySql;", ""));
|
||||||
|
|
||||||
|
_SqlConnection.Open();
|
||||||
|
_MySqlConnection.Open();
|
||||||
|
if (_SqlConnection.State == ConnectionState.Open)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
string _SQL = " select t1.* " +
|
||||||
|
" from ChartOfAccounts t1 left join HCategory t2 on" +
|
||||||
|
" t1.Oid=t2.Oid" +
|
||||||
|
" WHERE t2.GCRecord is null";
|
||||||
|
SqlCommand _SqlCommand = new SqlCommand(_SQL, _SqlConnection);
|
||||||
|
SqlDataReader _SqlDataReader = _SqlCommand.ExecuteReader();
|
||||||
|
|
||||||
|
if (_SqlDataReader.HasRows)
|
||||||
|
{
|
||||||
|
while (_SqlDataReader.Read())
|
||||||
|
{
|
||||||
|
string _MySQL = "SELECT count(*) FROM ChartOfAccounts WHERE Oid=@Oid";
|
||||||
|
using (MySqlCommand _MySqlCommand = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
{
|
||||||
|
_MySqlCommand.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
|
||||||
|
object _Found = _MySqlCommand.ExecuteScalar();
|
||||||
|
|
||||||
|
if (_Found != null)
|
||||||
|
{
|
||||||
|
double _F;
|
||||||
|
IsNumeric(_Found, out _F);
|
||||||
|
if (_F == 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
_MySQL = " SET FOREIGN_KEY_CHECKS=0;" +
|
||||||
|
" INSERT INTO ChartOfAccounts (Oid,AccountYear,AccountNumber,IsParent,ChartOfAccounts_Parent,ChartOfAccounts1," +
|
||||||
|
" ChartOfAccounts2,ChartOfAccounts3,ChartOfAccounts4,ChartOfAccounts5,ChartOfAccounts6,ChartOfAccounts7,ChartOfAccounts8)" +
|
||||||
|
" SELECT @Oid,@AccountYear,@AccountNumber,@IsParent,@ChartOfAccounts_Parent,@ChartOfAccounts1," +
|
||||||
|
" @ChartOfAccounts2,@ChartOfAccounts3,@ChartOfAccounts4,@ChartOfAccounts5,@ChartOfAccounts6,@ChartOfAccounts7,@ChartOfAccounts8;";
|
||||||
|
using (MySqlCommand _MySqlCommand_Insert = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
{
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@AccountYear", DbType = DbType.Int64, Value = _SqlDataReader["AccountYear"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@AccountNumber", DbType = DbType.String, Value = _SqlDataReader["AccountNumber"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@IsParent", DbType = DbType.Boolean, Value = _SqlDataReader["IsParent"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ChartOfAccounts_Parent", DbType = DbType.Guid, Value = _SqlDataReader["ChartOfAccounts_Parent"] });
|
||||||
|
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ChartOfAccounts1", DbType = DbType.Guid, Value = _SqlDataReader["ChartOfAccounts1"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ChartOfAccounts2", DbType = DbType.Guid, Value = _SqlDataReader["ChartOfAccounts2"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ChartOfAccounts3", DbType = DbType.Guid, Value = _SqlDataReader["ChartOfAccounts3"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ChartOfAccounts4", DbType = DbType.Guid, Value = _SqlDataReader["ChartOfAccounts4"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ChartOfAccounts5", DbType = DbType.Guid, Value = _SqlDataReader["ChartOfAccounts5"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ChartOfAccounts6", DbType = DbType.Guid, Value = _SqlDataReader["ChartOfAccounts6"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ChartOfAccounts7", DbType = DbType.Guid, Value = _SqlDataReader["ChartOfAccounts7"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@ChartOfAccounts8", DbType = DbType.Guid, Value = _SqlDataReader["ChartOfAccounts8"] });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
_MySqlCommand_Insert.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else // Ha már VAN
|
||||||
|
{
|
||||||
|
//_MySQL = " SET FOREIGN_KEY_CHECKS=0;" +
|
||||||
|
// " UPDATE HCategory SET Name=@Name," +
|
||||||
|
// " Parent=@Parent " +
|
||||||
|
// " WHERE Oid=@Oid";
|
||||||
|
//using (MySqlCommand _MySqlCommand_Update = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
//{
|
||||||
|
|
||||||
|
// _MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
// _MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Parent", DbType = DbType.Guid, Value = _SqlDataReader["Parent"] });
|
||||||
|
// _MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Name", DbType = DbType.String, Value = _SqlDataReader["Name"] });
|
||||||
|
|
||||||
|
// _MySqlCommand_Update.ExecuteNonQuery();
|
||||||
|
//}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
_SqlConnection.Close();
|
||||||
|
_MySqlConnection.Close();
|
||||||
|
_ocur.Session.ExecuteNonQuery("SET FOREIGN_KEY_CHECKS=1");
|
||||||
|
}
|
||||||
|
private void Sync_ChartOfAccountsYear_MSSQL_MySQL(XPObjectSpace _ocur)
|
||||||
|
{
|
||||||
|
MigrationParameters _MigrationParameters = View.SelectedObjects[0] as MigrationParameters;
|
||||||
|
_ocur.Session.ExecuteNonQuery("SET FOREIGN_KEY_CHECKS=0");
|
||||||
|
string _ConnectionStringMSSQL = string.Format(" User ID={0}; " +
|
||||||
|
" Password={1};" +
|
||||||
|
" Pooling=false;" +
|
||||||
|
" Data Source={2};" +
|
||||||
|
" Initial Catalog={3}",
|
||||||
|
_MigrationParameters.SQLUser,
|
||||||
|
_MigrationParameters.SQLPassword,
|
||||||
|
_MigrationParameters.SQLServer,
|
||||||
|
_MigrationParameters.SQLDatabase);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SqlConnection _SqlConnection = new SqlConnection(_ConnectionStringMSSQL);
|
||||||
|
MySqlConnection _MySqlConnection = new MySqlConnection(Nuvolar.Module.GeneralFunction.GLOBAL_ConnectionString.Replace("XpoProvider=MySql;", ""));
|
||||||
|
|
||||||
|
_SqlConnection.Open();
|
||||||
|
_MySqlConnection.Open();
|
||||||
|
if (_SqlConnection.State == ConnectionState.Open)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
string _SQL = " select t1.* " +
|
||||||
|
" from ChartOfAccountsYear t1 " +
|
||||||
|
" WHERE t1.GCRecord is null";
|
||||||
|
SqlCommand _SqlCommand = new SqlCommand(_SQL, _SqlConnection);
|
||||||
|
SqlDataReader _SqlDataReader = _SqlCommand.ExecuteReader();
|
||||||
|
|
||||||
|
if (_SqlDataReader.HasRows)
|
||||||
|
{
|
||||||
|
while (_SqlDataReader.Read())
|
||||||
|
{
|
||||||
|
string _MySQL = "SELECT count(*) FROM ChartOfAccountsYear WHERE Oid=@Oid";
|
||||||
|
using (MySqlCommand _MySqlCommand = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
{
|
||||||
|
_MySqlCommand.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
|
||||||
|
object _Found = _MySqlCommand.ExecuteScalar();
|
||||||
|
|
||||||
|
if (_Found != null)
|
||||||
|
{
|
||||||
|
double _F;
|
||||||
|
IsNumeric(_Found, out _F);
|
||||||
|
if (_F == 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
_MySQL = " SET FOREIGN_KEY_CHECKS=0;" +
|
||||||
|
" INSERT INTO ChartOfAccountsYear (Oid,AccountYear,IsClosed)" +
|
||||||
|
" SELECT @Oid,@AccountYear,@IsClosed;";
|
||||||
|
using (MySqlCommand _MySqlCommand_Insert = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
{
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@AccountYear", DbType = DbType.Int64, Value = _SqlDataReader["AccountYear"] });
|
||||||
|
_MySqlCommand_Insert.Parameters.Add(new MySqlParameter() { ParameterName = "@IsClosed", DbType = DbType.Boolean, Value = _SqlDataReader["IsClosed"] });
|
||||||
|
|
||||||
|
_MySqlCommand_Insert.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else // Ha már VAN
|
||||||
|
{
|
||||||
|
//_MySQL = " SET FOREIGN_KEY_CHECKS=0;" +
|
||||||
|
// " UPDATE HCategory SET Name=@Name," +
|
||||||
|
// " Parent=@Parent " +
|
||||||
|
// " WHERE Oid=@Oid";
|
||||||
|
//using (MySqlCommand _MySqlCommand_Update = new MySqlCommand() { CommandText = _MySQL, Connection = _MySqlConnection })
|
||||||
|
//{
|
||||||
|
|
||||||
|
// _MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Oid", DbType = DbType.Guid, Value = _SqlDataReader["Oid"] });
|
||||||
|
// _MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Parent", DbType = DbType.Guid, Value = _SqlDataReader["Parent"] });
|
||||||
|
// _MySqlCommand_Update.Parameters.Add(new MySqlParameter() { ParameterName = "@Name", DbType = DbType.String, Value = _SqlDataReader["Name"] });
|
||||||
|
|
||||||
|
// _MySqlCommand_Update.ExecuteNonQuery();
|
||||||
|
//}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
_SqlConnection.Close();
|
||||||
|
_MySqlConnection.Close();
|
||||||
|
_ocur.Session.ExecuteNonQuery("SET FOREIGN_KEY_CHECKS=1");
|
||||||
|
}
|
||||||
|
private bool IsNumeric(object Expression, out double retNum)
|
||||||
|
{
|
||||||
|
bool isNum = Double.TryParse(Convert.ToString(Expression), NumberStyles.Any, NumberFormatInfo.InvariantInfo, out retNum);
|
||||||
|
return isNum;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<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>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
@@ -12,10 +12,21 @@
|
|||||||
<Action Id="aPrintLastInvoice" Caption="Utolsó számla" />
|
<Action Id="aPrintLastInvoice" Caption="Utolsó számla" />
|
||||||
<Action Id="aRecreateCustomersOrderDocuments" Caption="Beszállítói dokumentum paraméter generálása" />
|
<Action Id="aRecreateCustomersOrderDocuments" Caption="Beszállítói dokumentum paraméter generálása" />
|
||||||
<Action Id="aStornoDeliveryNoteOutfromStorageOut" Caption="Szállítólevél stornírozása" />
|
<Action Id="aStornoDeliveryNoteOutfromStorageOut" Caption="Szállítólevél stornírozása" />
|
||||||
|
<Action Id="aToTable_PCIEdit" Caption="Sor rögzítése" />
|
||||||
|
<Action Id="aToTableD_PCIEdit" Caption="Sor törlése" />
|
||||||
</Actions>
|
</Actions>
|
||||||
</ActionDesign>
|
</ActionDesign>
|
||||||
<BOModel>
|
<BOModel>
|
||||||
<Class Name="DevExpress.Persistent.BaseImpl.ReportDataV2" Caption="Report V2" />
|
<Class Name="DevExpress.Persistent.BaseImpl.ReportDataV2" Caption="Report V2" />
|
||||||
|
<Class Name="Nuvolar.Module.BusinessObjects.Migration.MigrationParameters" Caption="Migrációs paraméter">
|
||||||
|
<OwnMembers>
|
||||||
|
<Member Name="SQLPassword" Caption="Jelszó" />
|
||||||
|
<Member Name="SQLPort" Caption="Port" />
|
||||||
|
<Member Name="SQLServer" Caption="Szerver" />
|
||||||
|
<Member Name="SQLType" Caption="Tipus" />
|
||||||
|
<Member Name="SQLUser" Caption="Felhasználó" />
|
||||||
|
</OwnMembers>
|
||||||
|
</Class>
|
||||||
<Class Name="Nuvolar.Module.BusinessObjects.NewCustomersFrom" Caption="Saját cég + DEMO adatok" />
|
<Class Name="Nuvolar.Module.BusinessObjects.NewCustomersFrom" Caption="Saját cég + DEMO adatok" />
|
||||||
<Class Name="Nuvolar.Module.BusinessObjects.PCIGroupAdvance" Caption="Pontozási infó (előleg)">
|
<Class Name="Nuvolar.Module.BusinessObjects.PCIGroupAdvance" Caption="Pontozási infó (előleg)">
|
||||||
<OwnMembers>
|
<OwnMembers>
|
||||||
@@ -185,6 +196,7 @@
|
|||||||
<ActionContainerViewItem Id="@OrderInHeader_Transaction" Caption="@OrderInHeader_Transaction(98)" />
|
<ActionContainerViewItem Id="@OrderInHeader_Transaction" Caption="@OrderInHeader_Transaction(98)" />
|
||||||
</Items>
|
</Items>
|
||||||
</DetailView>
|
</DetailView>
|
||||||
|
<ListView Id="PCIEdit_GLRows_ListView" Caption="Pénzügyi rögzítések" />
|
||||||
<ListView Id="PCIGroupAdvance_ListView_0" Caption="Pontozási infó vevői (előleg)">
|
<ListView Id="PCIGroupAdvance_ListView_0" Caption="Pontozási infó vevői (előleg)">
|
||||||
<Filters>
|
<Filters>
|
||||||
<Filter Id="@Opened" Caption="Nyitott" />
|
<Filter Id="@Opened" Caption="Nyitott" />
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
<Action Id="aPrintLastDeliveryNoteOut" ImageName="printer_information" />
|
<Action Id="aPrintLastDeliveryNoteOut" ImageName="printer_information" />
|
||||||
<Action Id="aPrintLastInvoice" ImageName="printer_information" />
|
<Action Id="aPrintLastInvoice" ImageName="printer_information" />
|
||||||
<Action Id="aStornoDeliveryNoteOutfromStorageOut" ImageName="document_delete" TargetObjectsCriteria="[DeliveryNoteOutHeader] Is Not Null And [DeliveryNoteOutHeader.IsStorno] = False And [StorageMoveType.MoveType] In (##Enum#Nuvolar.Module.eMoveType,InventoryTransfer#, ##Enum#Nuvolar.Module.eMoveType,ReturnBack#) And [StorageMoveType.MoveDirection] = ##Enum#Nuvolar.Module.eMoveDirection,eOutput#" />
|
<Action Id="aStornoDeliveryNoteOutfromStorageOut" ImageName="document_delete" TargetObjectsCriteria="[DeliveryNoteOutHeader] Is Not Null And [DeliveryNoteOutHeader.IsStorno] = False And [StorageMoveType.MoveType] In (##Enum#Nuvolar.Module.eMoveType,InventoryTransfer#, ##Enum#Nuvolar.Module.eMoveType,ReturnBack#) And [StorageMoveType.MoveDirection] = ##Enum#Nuvolar.Module.eMoveDirection,eOutput#" />
|
||||||
|
<Action Id="aToTable_PCIEdit" ImageName="table_add" />
|
||||||
|
<Action Id="aToTableD_PCIEdit" ImageName="table_delete" />
|
||||||
<Action Id="aViewPriceFixCustomers" Caption="Ármátrix áttekintése" ImageName="money2" />
|
<Action Id="aViewPriceFixCustomers" Caption="Ármátrix áttekintése" ImageName="money2" />
|
||||||
</Actions>
|
</Actions>
|
||||||
<ActionToContainerMapping>
|
<ActionToContainerMapping>
|
||||||
@@ -36,6 +38,11 @@
|
|||||||
</ActionToContainerMapping>
|
</ActionToContainerMapping>
|
||||||
</ActionDesign>
|
</ActionDesign>
|
||||||
<BOModel>
|
<BOModel>
|
||||||
|
<Class Name="Nuvolar.Module.BusinessObjects.Migration.MigrationParameters" ImageName="ChartType_StepArea3D">
|
||||||
|
<OwnMembers>
|
||||||
|
<Member Name="SQLPassword" IsPassword="True" />
|
||||||
|
</OwnMembers>
|
||||||
|
</Class>
|
||||||
<Class Name="Nuvolar.Module.BusinessObjects.NewCustomersFrom" ImageName="BO_User" />
|
<Class Name="Nuvolar.Module.BusinessObjects.NewCustomersFrom" ImageName="BO_User" />
|
||||||
<Class Name="Nuvolar.Module.BusinessObjects.PCIGroupAdvance" ImageName="link" />
|
<Class Name="Nuvolar.Module.BusinessObjects.PCIGroupAdvance" ImageName="link" />
|
||||||
<Class Name="Nuvolar.Module.BusinessObjects.Popup.OrderInMovePopup" ImageName="selection_replace" />
|
<Class Name="Nuvolar.Module.BusinessObjects.Popup.OrderInMovePopup" ImageName="selection_replace" />
|
||||||
@@ -91,6 +98,11 @@
|
|||||||
<Item Id="NAVInvoiceReport_ListView" ImageName="BO_Customer" ViewId="NAVInvoiceReport_DetailView" />
|
<Item Id="NAVInvoiceReport_ListView" ImageName="BO_Customer" ViewId="NAVInvoiceReport_DetailView" />
|
||||||
</Items>
|
</Items>
|
||||||
</Item>
|
</Item>
|
||||||
|
<Item Id="Default">
|
||||||
|
<Items>
|
||||||
|
<Item Id="MigrationParameters_ListView" ViewId="MigrationParameters_ListView" IsNewNode="True" />
|
||||||
|
</Items>
|
||||||
|
</Item>
|
||||||
</Items>
|
</Items>
|
||||||
</NavigationItems>
|
</NavigationItems>
|
||||||
<Options EnableHtmlFormatting="True" />
|
<Options EnableHtmlFormatting="True" />
|
||||||
@@ -661,6 +673,93 @@
|
|||||||
<ColumnInfo Id="QTT_Will" Index="6" InLineEdit="True" InLineEditAutoCommit="False" />
|
<ColumnInfo Id="QTT_Will" Index="6" InLineEdit="True" InLineEditAutoCommit="False" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</ListView>
|
</ListView>
|
||||||
|
<DetailView Id="PCIEdit_DetailView">
|
||||||
|
<Items>
|
||||||
|
<ActionContainerViewItem Id="@aToTable_PCIEdit" ActionContainer="aToTable_PCIEdit" Caption="@aToTable_PCIEdit(10)" IsNewNode="True" />
|
||||||
|
<ActionContainerViewItem Id="@aToTableD_PCIEdit" ActionContainer="aToTableD_PCIEdit" Caption="@aToTableD_PCIEdit(12)" IsNewNode="True" />
|
||||||
|
</Items>
|
||||||
|
<Layout>
|
||||||
|
<LayoutGroup Id="Main" RelativeSize="100">
|
||||||
|
<LayoutGroup Id="SimpleEditors" RelativeSize="16.647398843930635">
|
||||||
|
<LayoutGroup Id="PCIEdit" RelativeSize="100">
|
||||||
|
<LayoutItem Id="LiquidAssets" RelativeSize="22.222222222222221" />
|
||||||
|
<LayoutItem Id="PCIGroup" RelativeSize="16.666666666666668" />
|
||||||
|
<LayoutItem Id="DateExecution" RelativeSize="16.666666666666668" />
|
||||||
|
<LayoutGroup Id="Autod1545e5a-c1e7-4f95-b2e6-56b34ba21865" ShowCaption="False" Caption="Autod1545e5a-c1e7-4f95-b2e6-56b34ba21865(7)" Direction="Horizontal" Index="3" RelativeSize="44.444444444444443" IsNewNode="True">
|
||||||
|
<LayoutItem Id="DocumentNumber" ViewItem="DocumentNumber" Index="0" RelativeSize="74.663677130044846" IsNewNode="True" />
|
||||||
|
<LayoutGroup Id="Auto82a73893-36f2-460d-91a5-5194566e0b98" ShowCaption="False" Caption="" Index="1" RelativeSize="25.336322869955158" IsNewNode="True">
|
||||||
|
<LayoutItem Id="@aToTable_PCIEdit" ViewItem="@aToTable_PCIEdit" Index="0" RelativeSize="50" IsNewNode="True" />
|
||||||
|
<LayoutItem Id="@aToTableD_PCIEdit" ViewItem="@aToTableD_PCIEdit" Index="1" RelativeSize="50" IsNewNode="True" />
|
||||||
|
</LayoutGroup>
|
||||||
|
</LayoutGroup>
|
||||||
|
<LayoutItem Id="DocumentNumber" Removed="True" />
|
||||||
|
</LayoutGroup>
|
||||||
|
</LayoutGroup>
|
||||||
|
<LayoutGroup Id="GLRows_Group" Direction="Vertical" RelativeSize="83.352601156069369">
|
||||||
|
<LayoutItem Id="GLRows" RelativeSize="100" />
|
||||||
|
</LayoutGroup>
|
||||||
|
</LayoutGroup>
|
||||||
|
</Layout>
|
||||||
|
</DetailView>
|
||||||
|
<ListView Id="PCIEdit_GLRows_ListView" AllowDelete="False" AllowLink="False" AllowNew="False" AutoExpandAllGroups="True">
|
||||||
|
<Columns>
|
||||||
|
<ColumnInfo Id="AmountDEV" Index="-1" Width="85" />
|
||||||
|
<ColumnInfo Id="AmountDEVFIFO" Index="-1" Width="112" />
|
||||||
|
<ColumnInfo Id="AmountHUF" Index="-1" Width="86" />
|
||||||
|
<ColumnInfo Id="BankImportHeaderSumDetail" Index="-1" Width="155" />
|
||||||
|
<ColumnInfo Id="CashType" Index="-1" Width="0" />
|
||||||
|
<ColumnInfo Id="ConnectInfoAdvanced" Index="-1" Width="126" />
|
||||||
|
<ColumnInfo Id="Controlling" Index="-1" Width="83" />
|
||||||
|
<ColumnInfo Id="CostHolder" Index="-1" Width="82" />
|
||||||
|
<ColumnInfo Id="CostPlace" Index="-1" Width="0" />
|
||||||
|
<ColumnInfo Id="CreditAmountDEV" Index="-1" Width="86" />
|
||||||
|
<ColumnInfo Id="CreditAmountHUF" Index="-1" Width="87" />
|
||||||
|
<ColumnInfo Id="CreditChartOfAccounts" Index="-1" Width="130" />
|
||||||
|
<ColumnInfo Id="CurrencyRate" Index="-1" Width="63" />
|
||||||
|
<ColumnInfo Id="CurrencyRate2" Index="-1" Width="98" />
|
||||||
|
<ColumnInfo Id="DateExecution" Index="-1" Width="0" />
|
||||||
|
<ColumnInfo Id="DateVAT" Index="-1" Width="79" />
|
||||||
|
<ColumnInfo Id="DebitAmountDEV" Index="-1" Width="88" />
|
||||||
|
<ColumnInfo Id="DebitAmountHUF" Index="-1" Width="89" />
|
||||||
|
<ColumnInfo Id="DebitChartOfAccounts" Index="-1" />
|
||||||
|
<ColumnInfo Id="GLHeader" Index="-1" />
|
||||||
|
<ColumnInfo Id="GLRowsGUID" Index="-1" Width="85" />
|
||||||
|
<ColumnInfo Id="GLRowsType" Index="-1" Width="76" />
|
||||||
|
<ColumnInfo Id="GLRowsTypeVAT" Index="-1" Width="62" />
|
||||||
|
<ColumnInfo Id="ImportID" Index="-1" Width="66" />
|
||||||
|
<ColumnInfo Id="InAmountDEV2" Index="-1" Width="0" />
|
||||||
|
<ColumnInfo Id="JobNumberObjects" Index="-1" Width="109" />
|
||||||
|
<ColumnInfo Id="LiquidAssets" Index="-1" Width="77" />
|
||||||
|
<ColumnInfo Id="OutAmountDEV2" Index="-1" Width="72" />
|
||||||
|
<ColumnInfo Id="TransactionType" Index="-1" Width="103" />
|
||||||
|
<ColumnInfo Id="UniqueObjects" Index="-1" Width="101" />
|
||||||
|
<ColumnInfo Id="VAT" Index="-1" Width="60" />
|
||||||
|
<ColumnInfo Id="RowIndex" Index="0" Width="72" />
|
||||||
|
<ColumnInfo Id="Customer" Index="1" Width="64" />
|
||||||
|
<ColumnInfo Id="ConnectInfo" Index="2" Width="115" />
|
||||||
|
<ColumnInfo Id="PartnerType" Index="3" Width="88" />
|
||||||
|
<ColumnInfo Id="OutAmountHUF" Index="4" Width="92">
|
||||||
|
<Summary>
|
||||||
|
<ColumnSummaryItem Id="Summary0" SummaryType="Sum" IsNewNode="True" />
|
||||||
|
</Summary>
|
||||||
|
</ColumnInfo>
|
||||||
|
<ColumnInfo Id="InAmountHUF" Index="5" Width="91">
|
||||||
|
<Summary>
|
||||||
|
<ColumnSummaryItem Id="Summary0" SummaryType="Sum" IsNewNode="True" />
|
||||||
|
</Summary>
|
||||||
|
</ColumnInfo>
|
||||||
|
<ColumnInfo Id="OutAmountDEV" Index="6" Width="91">
|
||||||
|
<Summary>
|
||||||
|
<ColumnSummaryItem Id="Summary0" SummaryType="Sum" IsNewNode="True" />
|
||||||
|
</Summary>
|
||||||
|
</ColumnInfo>
|
||||||
|
<ColumnInfo Id="InAmountDEV" Index="7" Width="90">
|
||||||
|
<Summary>
|
||||||
|
<ColumnSummaryItem Id="Summary0" SummaryType="Sum" IsNewNode="True" />
|
||||||
|
</Summary>
|
||||||
|
</ColumnInfo>
|
||||||
|
</Columns>
|
||||||
|
</ListView>
|
||||||
<ListView Id="PCIGroupAdvance_ListView" AllowDelete="False" AllowNew="False" AutoExpandAllGroups="True" IsGroupPanelVisible="True" IsListViewProcess="False" GridViewGroupFormat="{1}">
|
<ListView Id="PCIGroupAdvance_ListView" AllowDelete="False" AllowNew="False" AutoExpandAllGroups="True" IsGroupPanelVisible="True" IsListViewProcess="False" GridViewGroupFormat="{1}">
|
||||||
<Columns>
|
<Columns>
|
||||||
<ColumnInfo Id="ConnectInfoAdvanced" Width="189" Index="0" SortOrder="None" GroupIndex="-1" />
|
<ColumnInfo Id="ConnectInfoAdvanced" Width="189" Index="0" SortOrder="None" GroupIndex="-1" />
|
||||||
|
|||||||
@@ -241,6 +241,20 @@
|
|||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="BusinessObjects\CostPlanner.cs" />
|
<Compile Include="BusinessObjects\CostPlanner.cs" />
|
||||||
<Compile Include="BusinessObjects\CostPlannerRows.cs" />
|
<Compile Include="BusinessObjects\CostPlannerRows.cs" />
|
||||||
|
<Compile Include="BusinessObjects\Financial\Partner Connection\PCIEdit.cs" />
|
||||||
|
<Compile Include="BusinessObjects\Financial\Partner Connection\PCIEdit_VC.cs">
|
||||||
|
<SubType>Component</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BusinessObjects\Financial\Partner Connection\PCIEdit_VC.Designer.cs">
|
||||||
|
<DependentUpon>PCIEdit_VC.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BusinessObjects\Migration\MigrationParameters.cs" />
|
||||||
|
<Compile Include="BusinessObjects\Migration\Migration_VC.cs">
|
||||||
|
<SubType>Component</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BusinessObjects\Migration\Migration_VC.Designer.cs">
|
||||||
|
<DependentUpon>Migration_VC.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="BusinessObjects\NAVInvoiceReport.cs" />
|
<Compile Include="BusinessObjects\NAVInvoiceReport.cs" />
|
||||||
<Compile Include="BusinessObjects\NewCustomersFrom.cs" />
|
<Compile Include="BusinessObjects\NewCustomersFrom.cs" />
|
||||||
<Compile Include="BusinessObjects\nopCommerce\nopCParameters.cs" />
|
<Compile Include="BusinessObjects\nopCommerce\nopCParameters.cs" />
|
||||||
@@ -355,6 +369,12 @@
|
|||||||
<EmbeddedResource Include="BusinessObjects\Business\BusinessTransactions\Orders\OrderIn\OrderIn_VC.resx">
|
<EmbeddedResource Include="BusinessObjects\Business\BusinessTransactions\Orders\OrderIn\OrderIn_VC.resx">
|
||||||
<DependentUpon>OrderIn_VC.cs</DependentUpon>
|
<DependentUpon>OrderIn_VC.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BusinessObjects\Financial\Partner Connection\PCIEdit_VC.resx">
|
||||||
|
<DependentUpon>PCIEdit_VC.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BusinessObjects\Migration\Migration_VC.resx">
|
||||||
|
<DependentUpon>Migration_VC.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="BusinessObjects\PriceFixCustomers_VC.resx">
|
<EmbeddedResource Include="BusinessObjects\PriceFixCustomers_VC.resx">
|
||||||
<DependentUpon>PriceFixCustomers_VC.cs</DependentUpon>
|
<DependentUpon>PriceFixCustomers_VC.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
@@ -28,5 +28,5 @@ using System.Runtime.InteropServices;
|
|||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("20.1.4.1000")]
|
[assembly: AssemblyVersion("20.1.4.1002")]
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
DevExpress.ExpressApp.SystemModule.SystemModule, DevExpress.ExpressApp.v20.1, Version=20.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
DevExpress.ExpressApp.ViewController, DevExpress.ExpressApp.v20.1, Version=20.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||||
|
DevExpress.ExpressApp.SystemModule.SystemModule, DevExpress.ExpressApp.v20.1, Version=20.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
namespace Nuvolar.Module.Win.CSharp.Controllers
|
||||||
|
{
|
||||||
|
partial class VATReport_VC
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Component Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
this.aVATReport_Create60XML = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||||
|
//
|
||||||
|
// aVATReport_Create60XML
|
||||||
|
//
|
||||||
|
this.aVATReport_Create60XML.Caption = "aVATReport_Create60XML";
|
||||||
|
this.aVATReport_Create60XML.ConfirmationMessage = null;
|
||||||
|
this.aVATReport_Create60XML.Id = "aVATReport_Create60XML";
|
||||||
|
this.aVATReport_Create60XML.TargetObjectType = typeof(Nuvolar.Module.VATReport);
|
||||||
|
this.aVATReport_Create60XML.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView;
|
||||||
|
this.aVATReport_Create60XML.ToolTip = null;
|
||||||
|
this.aVATReport_Create60XML.TypeOfView = typeof(DevExpress.ExpressApp.DetailView);
|
||||||
|
this.aVATReport_Create60XML.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aVATReport_Create60XML_Execute);
|
||||||
|
//
|
||||||
|
// VATReport_VC
|
||||||
|
//
|
||||||
|
this.Actions.Add(this.aVATReport_Create60XML);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
internal DevExpress.ExpressApp.Actions.SimpleAction aVATReport_Create60XML;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using DevExpress.Data.Filtering;
|
||||||
|
using DevExpress.ExpressApp;
|
||||||
|
using DevExpress.ExpressApp.Actions;
|
||||||
|
using DevExpress.ExpressApp.Editors;
|
||||||
|
using DevExpress.ExpressApp.Layout;
|
||||||
|
using DevExpress.ExpressApp.Model.NodeGenerators;
|
||||||
|
using DevExpress.ExpressApp.SystemModule;
|
||||||
|
using DevExpress.ExpressApp.Templates;
|
||||||
|
using DevExpress.ExpressApp.Utils;
|
||||||
|
using DevExpress.ExpressApp.Xpo;
|
||||||
|
using DevExpress.Persistent.Base;
|
||||||
|
using DevExpress.Persistent.Validation;
|
||||||
|
|
||||||
|
namespace Nuvolar.Module.Win.CSharp.Controllers
|
||||||
|
{
|
||||||
|
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||||
|
public partial class VATReport_VC : ViewController
|
||||||
|
{
|
||||||
|
public VATReport_VC()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||||
|
}
|
||||||
|
protected override void OnActivated()
|
||||||
|
{
|
||||||
|
base.OnActivated();
|
||||||
|
// Perform various tasks depending on the target View.
|
||||||
|
}
|
||||||
|
protected override void OnViewControlsCreated()
|
||||||
|
{
|
||||||
|
base.OnViewControlsCreated();
|
||||||
|
// Access and customize the target View control.
|
||||||
|
}
|
||||||
|
protected override void OnDeactivated()
|
||||||
|
{
|
||||||
|
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||||
|
base.OnDeactivated();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void aVATReport_Create60XML_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||||
|
{
|
||||||
|
XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||||
|
VATReport _VATReport = View.SelectedObjects[0] as VATReport;
|
||||||
|
string _NAVProgramPath = "";
|
||||||
|
string _FileName60 = "";
|
||||||
|
|
||||||
|
SaveFileDialog _SaveFileDialog = new SaveFileDialog();
|
||||||
|
if (_NAVProgramPath != "")
|
||||||
|
{
|
||||||
|
_FileName60 = string.Format("{0}{1}.xml", Path.GetTempPath(), _VATReport.ShortName);
|
||||||
|
//Me.Create1465XML(_ocur, _FileName65, _VATReport)
|
||||||
|
//string _ShellCommand = String.Format("{0} ""cmd:open.xml {1}""", _NAVProgramPath, _FileName60);
|
||||||
|
|
||||||
|
//Shell(_ShellCommand, AppWinStyle.NormalFocus)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_SaveFileDialog.Filter = "XML files (*.xml)|*.xml";
|
||||||
|
_SaveFileDialog.FileName = _VATReport.ShortName;
|
||||||
|
_SaveFileDialog.DefaultExt = "xml";
|
||||||
|
_SaveFileDialog.FilterIndex = 2;
|
||||||
|
_SaveFileDialog.RestoreDirectory = true;
|
||||||
|
|
||||||
|
if (_SaveFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||||
|
{
|
||||||
|
_FileName60 = _SaveFileDialog.FileName;
|
||||||
|
|
||||||
|
//Me.Create65XML(_ocur, _FileName65, _VATReport)
|
||||||
|
|
||||||
|
|
||||||
|
//MsgBox(String.Format("Az XML file ""{0}"" névvel a következő helyen került elmentésre:" + vbNewLine + "{1}", System.IO.Path.GetFileName(_SaveFileDialog.FileName), IO.Path.GetFullPath(_SaveFileDialog.FileName)), _
|
||||||
|
// MsgBoxStyle.OkOnly + MsgBoxStyle.Information, "Exportálás befejeződött!")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="aVATReport_Create60XML.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
<ActionDesign>
|
<ActionDesign>
|
||||||
<Actions>
|
<Actions>
|
||||||
<Action Id="aNewCustomersFrom" Caption="Saját cég létrehozása" />
|
<Action Id="aNewCustomersFrom" Caption="Saját cég létrehozása" />
|
||||||
|
<Action Id="aVATReport_Create60XML" Caption="ÁFA bevallás, 60-as nyomtatvány" />
|
||||||
</Actions>
|
</Actions>
|
||||||
</ActionDesign>
|
</ActionDesign>
|
||||||
</Application>
|
</Application>
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
<Actions>
|
<Actions>
|
||||||
<Action Id="aGIROInfo_ImportCSV" ImageName="BO_Security_Permission_Type" Caption="GIRO import CSV" />
|
<Action Id="aGIROInfo_ImportCSV" ImageName="BO_Security_Permission_Type" Caption="GIRO import CSV" />
|
||||||
<Action Id="aNewCustomersFrom" ImageName="BO_Organization" />
|
<Action Id="aNewCustomersFrom" ImageName="BO_Organization" />
|
||||||
|
<Action Id="aVATReport_Create60XML" ImageName="document_chart" />
|
||||||
</Actions>
|
</Actions>
|
||||||
</ActionDesign>
|
</ActionDesign>
|
||||||
<SchemaModules>
|
<SchemaModules>
|
||||||
|
|||||||
@@ -197,6 +197,12 @@
|
|||||||
<Compile Include="Controllers\Transfer_VC.Designer.cs">
|
<Compile Include="Controllers\Transfer_VC.Designer.cs">
|
||||||
<DependentUpon>Transfer_VC.cs</DependentUpon>
|
<DependentUpon>Transfer_VC.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Controllers\VATReport_VC.cs">
|
||||||
|
<SubType>Component</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Controllers\VATReport_VC.Designer.cs">
|
||||||
|
<DependentUpon>VATReport_VC.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="DatabaseUpdate\Updater.cs" />
|
<Compile Include="DatabaseUpdate\Updater.cs" />
|
||||||
<Compile Include="Editor\GanttListEditor.cs" />
|
<Compile Include="Editor\GanttListEditor.cs" />
|
||||||
<Compile Include="Editor\GanttUserControl.cs">
|
<Compile Include="Editor\GanttUserControl.cs">
|
||||||
@@ -220,6 +226,9 @@
|
|||||||
<EmbeddedResource Include="Controllers\NewCustomersFromVC.resx">
|
<EmbeddedResource Include="Controllers\NewCustomersFromVC.resx">
|
||||||
<DependentUpon>NewCustomersFromVC.cs</DependentUpon>
|
<DependentUpon>NewCustomersFromVC.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Controllers\VATReport_VC.resx">
|
||||||
|
<DependentUpon>VATReport_VC.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Editor\GanttUserControl.resx">
|
<EmbeddedResource Include="Editor\GanttUserControl.resx">
|
||||||
<DependentUpon>GanttUserControl.cs</DependentUpon>
|
<DependentUpon>GanttUserControl.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
DevExpress.ExpressApp.SystemModule.SystemModule, DevExpress.ExpressApp.v20.1, Version=20.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
DevExpress.ExpressApp.ViewController, DevExpress.ExpressApp.v20.1, Version=20.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||||
|
DevExpress.ExpressApp.SystemModule.SystemModule, DevExpress.ExpressApp.v20.1, Version=20.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||||
|
|||||||
+14
@@ -147,6 +147,20 @@ Partial Class VATReportVC
|
|||||||
Me.aViewAttachments_VATCompareDetail.TargetViewType = DevExpress.ExpressApp.ViewType.ListView
|
Me.aViewAttachments_VATCompareDetail.TargetViewType = DevExpress.ExpressApp.ViewType.ListView
|
||||||
Me.aViewAttachments_VATCompareDetail.ToolTip = Nothing
|
Me.aViewAttachments_VATCompareDetail.ToolTip = Nothing
|
||||||
Me.aViewAttachments_VATCompareDetail.TypeOfView = GetType(DevExpress.ExpressApp.ListView)
|
Me.aViewAttachments_VATCompareDetail.TypeOfView = GetType(DevExpress.ExpressApp.ListView)
|
||||||
|
'
|
||||||
|
'VATReportVC
|
||||||
|
'
|
||||||
|
Me.Actions.Add(Me.aGenerateVATReport)
|
||||||
|
Me.Actions.Add(Me.aViewRegistry_VAT)
|
||||||
|
Me.Actions.Add(Me.aViewAttachments_VAT)
|
||||||
|
Me.Actions.Add(Me.aViewRegistry_VATNoPay)
|
||||||
|
Me.Actions.Add(Me.aVATReportPrint)
|
||||||
|
Me.Actions.Add(Me.aViewAttachments_VATNoPay)
|
||||||
|
Me.Actions.Add(Me.aVATClosePreviewPDF)
|
||||||
|
Me.Actions.Add(Me.aVATCloseBack)
|
||||||
|
Me.Actions.Add(Me.aVATClose)
|
||||||
|
Me.Actions.Add(Me.aGenerateVATCompare)
|
||||||
|
Me.Actions.Add(Me.aViewAttachments_VATCompareDetail)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Friend WithEvents aGenerateVATReport As DevExpress.ExpressApp.Actions.SimpleAction
|
Friend WithEvents aGenerateVATReport As DevExpress.ExpressApp.Actions.SimpleAction
|
||||||
|
|||||||
+20
-20
@@ -118,37 +118,37 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="aGenerateVATReport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="aGenerateVATReport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 134</value>
|
<value>306, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="aViewRegistry_VAT.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="aViewRegistry_VAT.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 368</value>
|
<value>607, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="aViewAttachments_VAT.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="aViewAttachments_VAT.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 329</value>
|
<value>762, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="aViewRegistry_VATNoPay.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="aViewRegistry_VATNoPay.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 251</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="aVATReportPrint.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>17, 290</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="aViewAttachments_VATNoPay.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>17, 212</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="aVATClosePreviewPDF.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>17, 173</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="aVATCloseBack.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>17, 95</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="aVATClose.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>17, 56</value>
|
<value>17, 56</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="aVATReportPrint.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>685, 56</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="aViewAttachments_VATNoPay.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>208, 56</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="aVATClosePreviewPDF.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>942, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="aVATCloseBack.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>472, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="aVATClose.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="aGenerateVATCompare.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="aGenerateVATCompare.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>152, 56</value>
|
<value>127, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="aViewAttachments_VATCompareDetail.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="aViewAttachments_VATCompareDetail.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>172, 368</value>
|
<value>424, 56</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
|
DevExpress.ExpressApp.ViewController, DevExpress.ExpressApp.v20.1, Version=20.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||||
|
|||||||
Reference in New Issue
Block a user