MNB Árfolyam 2006-tól
Ügyfél ármátrix Szállítói bizonylat árfolyam kitöltése
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.Persistent.Base;
|
||||
namespace Nuvolar.Module.BusinessObjects
|
||||
{
|
||||
[DefaultClassOptions]
|
||||
[NavigationItem(false)]
|
||||
[NonPersistent()]
|
||||
public class PriceFixCustomers : XPBaseObject
|
||||
{
|
||||
public PriceFixCustomers(Session session) : base(session) { }
|
||||
|
||||
|
||||
public Customers Customers { get; set; }
|
||||
public Products Products { get; set; }
|
||||
public double PriceNettoHUF { get; set; }
|
||||
public double PriceNettoDEV { get; set; }
|
||||
public double PriceAverageNettoHUF { get; set; }
|
||||
public double PriceAverageNettoDEV { get; set; }
|
||||
public double MarginPercent { get; set; }
|
||||
public CurrencyName CurrencyName { get; set; }
|
||||
public double CurrencyRateValue { get; set; }
|
||||
public DateTime DateValid { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
namespace Nuvolar.Module.BusinessObjects
|
||||
{
|
||||
partial class PriceFixCustomers_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.aViewPriceFixCustomers = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
//
|
||||
// aViewPriceFixCustomers
|
||||
//
|
||||
this.aViewPriceFixCustomers.Caption = "aView Price Fix Customers";
|
||||
this.aViewPriceFixCustomers.ConfirmationMessage = null;
|
||||
this.aViewPriceFixCustomers.Id = "aViewPriceFixCustomers";
|
||||
this.aViewPriceFixCustomers.TargetObjectType = typeof(Nuvolar.Module.Customers);
|
||||
this.aViewPriceFixCustomers.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
|
||||
this.aViewPriceFixCustomers.TargetViewType = DevExpress.ExpressApp.ViewType.ListView;
|
||||
this.aViewPriceFixCustomers.ToolTip = null;
|
||||
this.aViewPriceFixCustomers.TypeOfView = typeof(DevExpress.ExpressApp.ListView);
|
||||
this.aViewPriceFixCustomers.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aViewPriceFixCustomers_Execute);
|
||||
//
|
||||
// PriceFixCustomers_VC
|
||||
//
|
||||
this.Actions.Add(this.aViewPriceFixCustomers);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.ExpressApp.Actions.SimpleAction aViewPriceFixCustomers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
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.Persistent.Base;
|
||||
using DevExpress.Persistent.Validation;
|
||||
using DevExpress.ExpressApp.Xpo;
|
||||
using DevExpress.Xpo;
|
||||
using Nuvolar.Module.Win;
|
||||
|
||||
namespace Nuvolar.Module.BusinessObjects
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
|
||||
public partial class PriceFixCustomers_VC : ViewController
|
||||
{
|
||||
private WaitFormClass _WaitFormClass;
|
||||
public PriceFixCustomers_VC()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
if (View.Id == "PriceFixCustomers_ListView")
|
||||
{
|
||||
_WaitFormClass = new WaitFormClass();
|
||||
Load_PriceFixCustomers_ListView();
|
||||
}
|
||||
// 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 aViewPriceFixCustomers_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
CollectionSource _CS = new CollectionSource(_onew, typeof(PriceFixCustomers));
|
||||
|
||||
e.ShowViewParameters.CreatedView = Application.CreateListView("PriceFixCustomers_ListView", _CS, false);
|
||||
e.ShowViewParameters.NewWindowTarget = NewWindowTarget.MdiChild;
|
||||
e.ShowViewParameters.TargetWindow = TargetWindow.NewWindow;
|
||||
}
|
||||
private void Load_PriceFixCustomers_ListView()
|
||||
{
|
||||
XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||
ListView _ListView = View as ListView;
|
||||
|
||||
XPCollection<CurrencyRate> _CurrencyRate_Collection = new XPCollection<CurrencyRate>(_ocur.Session, CriteriaOperator.Parse("IsMNB=True And GetDate(DateValid)=?", DateTime.Now.Date));
|
||||
|
||||
|
||||
|
||||
|
||||
XPCollection<Customers> _Customers_Collection = new XPCollection<Customers>(_ocur.Session, CriteriaOperator.Parse("IsNull(Pricing)=False"));
|
||||
|
||||
|
||||
_WaitFormClass.Initwork(1, 1, _Customers_Collection.Count);
|
||||
foreach (Customers _Customers in _Customers_Collection)
|
||||
{
|
||||
_WaitFormClass.DoWork();
|
||||
foreach (PricingFix _PricingFix in _Customers.Pricing.PricingFix)
|
||||
{
|
||||
PriceFixCustomers _PriceFixCustomers = new PriceFixCustomers(_ocur.Session);
|
||||
_PriceFixCustomers.Customers = _Customers;
|
||||
_PriceFixCustomers.CurrencyName = _PricingFix.CurrencyName;
|
||||
_PriceFixCustomers.Products = _PricingFix.Products;
|
||||
if (_PricingFix.CurrencyName.ShortName == "HUF")
|
||||
{
|
||||
_PriceFixCustomers.PriceNettoHUF = _PricingFix.PriceNetto;
|
||||
_PriceFixCustomers.PriceNettoDEV = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (CurrencyRate _CurrencyRate in _CurrencyRate_Collection)
|
||||
{
|
||||
if (_CurrencyRate.CurrencyName.ShortName == _PricingFix.CurrencyName.ShortName)
|
||||
{
|
||||
_PriceFixCustomers.PriceNettoHUF = _PricingFix.PriceNetto * _CurrencyRate.RateAverage;
|
||||
_PriceFixCustomers.CurrencyRateValue = _CurrencyRate.RateAverage;
|
||||
}
|
||||
}
|
||||
_PriceFixCustomers.PriceNettoDEV = _PricingFix.PriceNetto;
|
||||
}
|
||||
_PriceFixCustomers.CurrencyName = _PricingFix.CurrencyName;
|
||||
|
||||
|
||||
|
||||
XPCollection<DeliveryNoteInRRFC> _DeliveryNoteInRRFC_Collection = new XPCollection<DeliveryNoteInRRFC>(_ocur.Session, CriteriaOperator.Parse("IsNull(RegistryRowsFinancialControlling)=False And DeliveryNoteInRows.DeliveryNoteInHeader.IsEditable=False And DeliveryNoteInRows.Products=?", _PricingFix.Products));
|
||||
|
||||
_DeliveryNoteInRRFC_Collection.Sorting.Add(new SortProperty("RegistryRowsFinancialControlling.RegistryHeader.F_DateExecution", DevExpress.Xpo.DB.SortingDirection.Descending));
|
||||
|
||||
if (_DeliveryNoteInRRFC_Collection.Count > 0)
|
||||
{
|
||||
_PriceFixCustomers.DateValid = _DeliveryNoteInRRFC_Collection[0].RegistryRowsFinancialControlling.RegistryHeader.F_DateExecution;
|
||||
if (_DeliveryNoteInRRFC_Collection[0].RegistryRowsFinancialControlling.RegistryHeader.F_CurrencyName.ShortName == "HUF")
|
||||
{
|
||||
_PriceFixCustomers.PriceAverageNettoDEV = 0;
|
||||
_PriceFixCustomers.PriceAverageNettoHUF = (_DeliveryNoteInRRFC_Collection[0].DeliveryNoteInRows.SumPriceHUF) / _DeliveryNoteInRRFC_Collection[0].DeliveryNoteInRows.QTT;
|
||||
}
|
||||
else
|
||||
{
|
||||
_PriceFixCustomers.PriceAverageNettoDEV = _DeliveryNoteInRRFC_Collection[0].DeliveryNoteInRows.SumPriceDEV / _DeliveryNoteInRRFC_Collection[0].DeliveryNoteInRows.QTT;
|
||||
_PriceFixCustomers.PriceAverageNettoHUF = (_DeliveryNoteInRRFC_Collection[0].DeliveryNoteInRows.SumPriceDEV * _DeliveryNoteInRRFC_Collection[0].RegistryRowsFinancialControlling.RegistryHeader.F_CurrencyRate) / _DeliveryNoteInRRFC_Collection[0].DeliveryNoteInRows.QTT;
|
||||
}
|
||||
}
|
||||
|
||||
if (_PriceFixCustomers.PriceNettoHUF!=0)
|
||||
{
|
||||
if (_PriceFixCustomers.CurrencyName.ShortName == "HUF")
|
||||
{
|
||||
_PriceFixCustomers.MarginPercent = (_PriceFixCustomers.PriceNettoHUF - _PriceFixCustomers.PriceAverageNettoHUF) / _PriceFixCustomers.PriceNettoHUF * 100;
|
||||
}
|
||||
else {
|
||||
_PriceFixCustomers.MarginPercent = (_PriceFixCustomers.PriceNettoDEV - _PriceFixCustomers.PriceAverageNettoDEV) / _PriceFixCustomers.PriceNettoDEV * 100;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
_ListView.CollectionSource.Add(_PriceFixCustomers);
|
||||
}
|
||||
|
||||
}
|
||||
_WaitFormClass.FinalWork();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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="aViewPriceFixCustomers.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>
|
||||
@@ -0,0 +1,57 @@
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
partial class StorageOut_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.aCreateDeliveryNoteOutfromStorageOut = new DevExpress.ExpressApp.Actions.PopupWindowShowAction(this.components);
|
||||
//
|
||||
// aCreateDeliveryNoteOutfromStorageOut
|
||||
//
|
||||
this.aCreateDeliveryNoteOutfromStorageOut.AcceptButtonCaption = null;
|
||||
this.aCreateDeliveryNoteOutfromStorageOut.CancelButtonCaption = null;
|
||||
this.aCreateDeliveryNoteOutfromStorageOut.Caption = "aCreate Delivery Note Outfrom Storage Out";
|
||||
this.aCreateDeliveryNoteOutfromStorageOut.ConfirmationMessage = null;
|
||||
this.aCreateDeliveryNoteOutfromStorageOut.Id = "aCreateDeliveryNoteOutfromStorageOut";
|
||||
this.aCreateDeliveryNoteOutfromStorageOut.TargetObjectType = typeof(Nuvolar.Module.StorageOutHeader);
|
||||
this.aCreateDeliveryNoteOutfromStorageOut.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
|
||||
this.aCreateDeliveryNoteOutfromStorageOut.TargetViewType = DevExpress.ExpressApp.ViewType.ListView;
|
||||
this.aCreateDeliveryNoteOutfromStorageOut.ToolTip = null;
|
||||
this.aCreateDeliveryNoteOutfromStorageOut.TypeOfView = typeof(DevExpress.ExpressApp.ListView);
|
||||
//
|
||||
// StorageOut_VC
|
||||
//
|
||||
this.Actions.Add(this.aCreateDeliveryNoteOutfromStorageOut);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.ExpressApp.Actions.PopupWindowShowAction aCreateDeliveryNoteOutfromStorageOut;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
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.Persistent.Base;
|
||||
using DevExpress.Persistent.Validation;
|
||||
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
public partial class StorageOut_VC : ViewController
|
||||
{
|
||||
public StorageOut_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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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="aCreateDeliveryNoteOutfromStorageOut.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>
|
||||
@@ -0,0 +1,36 @@
|
||||
using DevExpress.ExpressApp.Xpo;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Nuvolar.Module.Helpers
|
||||
{
|
||||
public static class BusinessDocumentHelper
|
||||
{
|
||||
|
||||
#region DeliveryNoteOut
|
||||
/// <summary>
|
||||
/// Új kimenő szállítólevél fejlécet készít
|
||||
/// </summary>
|
||||
public static DeliveryNoteOutHeader CreateNewDeliveryNoteOutHeader(XPObjectSpace _ObjectSpace)
|
||||
{
|
||||
DeliveryNoteOutHeader _DeliveryNoteOutHeader = _ObjectSpace.CreateObject<DeliveryNoteOutHeader>();
|
||||
|
||||
return _DeliveryNoteOutHeader;
|
||||
}
|
||||
|
||||
public static bool AddNewDeliveryNoteOutRows(XPObjectSpace _ObjectSpace, DeliveryNoteOutHeader _DeliveryNoteOutHeader)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public static bool FinalizeDeliveryNoteOutHeader(XPObjectSpace _ObjectSpace, DeliveryNoteOutHeader _DeliveryNoteOutHeader)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endregion
|
||||
#region Invoice
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,20 @@
|
||||
<Member Name="StorageOutRowsInRows" Caption="Kitárolási sorok" />
|
||||
</OwnMembers>
|
||||
</Class>
|
||||
<Class Name="Nuvolar.Module.BusinessObjects.PriceFixCustomers" Caption="Ármátrix">
|
||||
<OwnMembers>
|
||||
<Member Name="CurrencyName" Caption="Deviza" />
|
||||
<Member Name="CurrencyRateValue" Caption="Mai napi árfolyam" />
|
||||
<Member Name="Customers" Caption="Vevő" />
|
||||
<Member Name="DateValid" Caption="Érvényes" />
|
||||
<Member Name="MarginPercent" Caption="Árrés %" DisplayFormat="{0:#,##0.0}" />
|
||||
<Member Name="PriceAverageNettoDEV" Caption="Besz. ár (DEV)" DisplayFormat="{0:#,##0.00}" />
|
||||
<Member Name="PriceAverageNettoHUF" Caption="Besz. ár (HUF)" DisplayFormat="{0:#,##0}" />
|
||||
<Member Name="PriceNettoDEV" Caption="El. ár (DEV)" DisplayFormat="{0:#,##0.00}" />
|
||||
<Member Name="PriceNettoHUF" Caption="El. ár (HUF)" DisplayFormat="{0:#,##0}" />
|
||||
<Member Name="Products" Caption="Termék" />
|
||||
</OwnMembers>
|
||||
</Class>
|
||||
<Class Name="Nuvolar.Module.NAVInvoiceReport" Caption="Adóhatósági ellenőrzési adatszolgáltatás">
|
||||
<OwnMembers>
|
||||
<Member Name="DocumentNumberBegin" Caption="Számlatömb előtag" />
|
||||
|
||||
@@ -2,12 +2,14 @@
|
||||
<Application>
|
||||
<ActionDesign>
|
||||
<Actions>
|
||||
<Action Id="aCreateDeliveryNoteOutfromStorageOut" ImageName="document_lock" Caption="Szállítólevél készítése" TargetObjectsCriteria="[StorageMoveType.MoveDirection] = ##Enum#Nuvolar.Module.eMoveDirection,eOutput# And [StorageMoveType.MoveType] = ##Enum#Nuvolar.Module.eMoveType,InventoryTransfer#" />
|
||||
<Action Id="aCreateNAVInvoiceReportXML" ImageName="Action_Export_ToXML" />
|
||||
<Action Id="aDeliveryNoteOutPrint_Divided" ImageName="MenuBar_Print" TargetObjectsCriteria="[DividedOriginal] In (2L, 1L)" />
|
||||
<Action Id="aMoveOrderIn" ImageName="replace2" />
|
||||
<Action Id="aMoveOrderInBack" ImageName="selection_replace" TargetObjectsCriteria="[OrderInHeader.IsEditable] = True And [QTT_Invoiced] = 0.0 And [QTT_DeliveryNoted] > 0.0 And [QTT_DeliveryNoted] = [QTT_Storaged] And [DividedOriginal] = 1L" />
|
||||
<Action Id="aOpenWindowsExplorer" ImageName="console" />
|
||||
<Action Id="aOrderInStorageOut" ImageName="document_out" />
|
||||
<Action Id="aViewPriceFixCustomers" Caption="Ármátrix áttekintése" ImageName="money2" />
|
||||
</Actions>
|
||||
<ActionToContainerMapping>
|
||||
<ActionContainer Id="@NAVReport" IsNewNode="True">
|
||||
@@ -30,6 +32,18 @@
|
||||
<Class Name="Nuvolar.Module.BusinessObjects.NewCustomersFrom" ImageName="BO_User" />
|
||||
<Class Name="Nuvolar.Module.BusinessObjects.PCIGroupAdvance" ImageName="link" />
|
||||
<Class Name="Nuvolar.Module.BusinessObjects.Popup.OrderInMovePopup" ImageName="selection_replace" />
|
||||
<Class Name="Nuvolar.Module.BusinessObjects.PriceFixCustomers">
|
||||
<AppearanceRules>
|
||||
<AppearanceRule Id="AR Invalid Margin" BackColor="Red" FontColor="Yellow" TargetItems="MarginPercent" Criteria="[MarginPercent] >= 80.0 Or [MarginPercent] < 1.0" IsNewNode="True" />
|
||||
<AppearanceRule Id="AR Warning Margin" BackColor="Transparent" FontColor="Goldenrod" TargetItems="MarginPercent" Criteria="[MarginPercent] <= 10.0" IsNewNode="True" />
|
||||
</AppearanceRules>
|
||||
<OwnMembers>
|
||||
<Member Name="PriceAverageNettoDEV" HideValueIfZero="True" />
|
||||
<Member Name="PriceAverageNettoHUF" HideValueIfZero="True" />
|
||||
<Member Name="PriceNettoDEV" HideValueIfZero="True" />
|
||||
<Member Name="PriceNettoHUF" HideValueIfZero="True" />
|
||||
</OwnMembers>
|
||||
</Class>
|
||||
<Class Name="Nuvolar.Module.CustomersOrder">
|
||||
<OwnMembers>
|
||||
<Member Name="DocumentPath" PropertyEditorType="MM.Module.Win.Editors.FolderBrowseEditor" />
|
||||
@@ -63,10 +77,10 @@
|
||||
</NavigationItems>
|
||||
<Options EnableHtmlFormatting="True" />
|
||||
<SchemaModules>
|
||||
<SchemaModule Name="CloneObjectModule" Version="15.2.5.0" IsNewNode="True" />
|
||||
<SchemaModule Name="CloneObjectModule" Version="16.2.3.0" IsNewNode="True" />
|
||||
<SchemaModule Name="SchedulerModuleBase" Version="15.2.5.0" IsNewNode="True" />
|
||||
<SchemaModule Name="SchedulerWindowsFormsModule" Version="15.2.5.0" IsNewNode="True" />
|
||||
<SchemaModule Name="SystemModule" Version="15.2.5.0" IsNewNode="True" />
|
||||
<SchemaModule Name="SystemModule" Version="16.2.3.0" IsNewNode="True" />
|
||||
<SchemaModule Name="SystemWindowsFormsModule" Version="15.2.5.0" IsNewNode="True" />
|
||||
</SchemaModules>
|
||||
<Views>
|
||||
@@ -565,6 +579,23 @@
|
||||
<Filter Id="@Closed" Criteria="[AmountHUF] = 0.0" Index="1" ImageName="bullet_ball_green" IsNewNode="True" />
|
||||
</Filters>
|
||||
</ListView>
|
||||
<ListView Id="PriceFixCustomers_ListView" AllowDelete="False" AllowLink="False" AllowNew="False" AutoExpandAllGroups="True" DataAccessMode="Client" IsListViewProcess="False" IsGroupPanelVisible="True">
|
||||
<Columns>
|
||||
<ColumnInfo Id="Products" Width="55" Index="-1" />
|
||||
<ColumnInfo Id="CurrencyName" SortIndex="-1" GroupIndex="0" Width="63" />
|
||||
<ColumnInfo Id="Customers" Width="44" SortOrder="Ascending" GroupIndex="1" />
|
||||
<ColumnInfo Id="Products.ProductGroups.ShortName" PropertyName="Products.ProductGroups.ShortName" Index="2" IsNewNode="True" />
|
||||
<ColumnInfo Id="Products.ProductNumber" PropertyName="Products.ProductNumber" Index="3" IsNewNode="True" />
|
||||
<ColumnInfo Id="Products.ShortName" PropertyName="Products.ShortName" Index="4" IsNewNode="True" />
|
||||
<ColumnInfo Id="PriceNettoHUF" Width="76" Index="5" />
|
||||
<ColumnInfo Id="PriceNettoDEV" Width="0" Index="6" />
|
||||
<ColumnInfo Id="PriceAverageNettoHUF" Width="90" Index="7" />
|
||||
<ColumnInfo Id="PriceAverageNettoDEV" Width="89" Index="8" />
|
||||
<ColumnInfo Id="MarginPercent" Width="60" Index="9" />
|
||||
<ColumnInfo Id="CurrencyRateValue" Width="104" Index="10" />
|
||||
<ColumnInfo Id="DateValid" Width="73" Index="11" />
|
||||
</Columns>
|
||||
</ListView>
|
||||
<ListView Id="Products_Products_BusinessDirectory_ListView">
|
||||
<Columns>
|
||||
<ColumnInfo Id="BusinessDirectory_Parent" Index="-1" />
|
||||
|
||||
@@ -220,9 +220,16 @@
|
||||
<Compile Include="BusinessObjects\NAVInvoiceReport.cs" />
|
||||
<Compile Include="BusinessObjects\NewCustomersFrom.cs" />
|
||||
<Compile Include="BusinessObjects\nopCommerce\nopCParameters.cs" />
|
||||
<Compile Include="BusinessObjects\PriceFixCustomers.cs" />
|
||||
<Compile Include="BusinessObjects\PCIGroupAdvance.cs" />
|
||||
<Compile Include="BusinessObjects\Popup\OrderInMovePopup.cs" />
|
||||
<Compile Include="BusinessObjects\Popup\StorageSelectPopup.cs" />
|
||||
<Compile Include="BusinessObjects\PriceFixCustomers_VC.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BusinessObjects\PriceFixCustomers_VC.Designer.cs">
|
||||
<DependentUpon>PriceFixCustomers_VC.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BusinessObjects\StoragePDACollectionRowsH.cs" />
|
||||
<Compile Include="Controllers\AuditTrailVCC.cs">
|
||||
<SubType>Component</SubType>
|
||||
@@ -278,6 +285,12 @@
|
||||
<Compile Include="Controllers\ReportV2_VC.Designer.cs">
|
||||
<DependentUpon>ReportV2_VC.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controllers\StorageOut_VC.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controllers\StorageOut_VC.Designer.cs">
|
||||
<DependentUpon>StorageOut_VC.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controllers\StoragePDACollectionHeader_VC.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
@@ -286,6 +299,7 @@
|
||||
</Compile>
|
||||
<Compile Include="Controllers\WorkEventArgs.cs" />
|
||||
<Compile Include="Editors\FolderBrowseEditor.cs" />
|
||||
<Compile Include="Helpers\BusinessDocumentHelper.cs" />
|
||||
<Compile Include="Module.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
@@ -302,6 +316,9 @@
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="BusinessObjects\PriceFixCustomers_VC.resx">
|
||||
<DependentUpon>PriceFixCustomers_VC.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controllers\AuditTrailVCC.resx">
|
||||
<DependentUpon>AuditTrailVCC.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -329,6 +346,9 @@
|
||||
<EmbeddedResource Include="Controllers\ReportV2_VC.resx">
|
||||
<DependentUpon>ReportV2_VC.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controllers\StorageOut_VC.resx">
|
||||
<DependentUpon>StorageOut_VC.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controllers\StoragePDACollectionHeader_VC.resx">
|
||||
<DependentUpon>StoragePDACollectionHeader_VC.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -409,6 +429,10 @@
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Nuvolar.Module.Win\Nuvolar.Module.Win.vbproj">
|
||||
<Project>{98539DCF-BF11-4158-AEC0-4B008A404A0E}</Project>
|
||||
<Name>Nuvolar.Module.Win</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Nuvolar.Module\Nuvolar.Module.vbproj">
|
||||
<Project>{60bf693f-7dea-4cf6-85bd-ea96829d79dd}</Project>
|
||||
<Name>Nuvolar.Module</Name>
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
DevExpress.ExpressApp.ViewController, DevExpress.ExpressApp.v16.2, Version=16.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||
|
||||
DevExpress.ExpressApp.SystemModule.SystemModule, DevExpress.ExpressApp.v16.2, Version=16.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||
Reference in New Issue
Block a user