Reconfigure for GIT
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
namespace SISBusiness.Module
|
||||
{
|
||||
partial class AuditTrailVCC
|
||||
{
|
||||
/// <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.aGetAuditTrailC = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
//
|
||||
// aGetAuditTrailC
|
||||
//
|
||||
this.aGetAuditTrailC.Caption = "aGet Audit Trail C";
|
||||
this.aGetAuditTrailC.Category = "View";
|
||||
this.aGetAuditTrailC.ConfirmationMessage = null;
|
||||
this.aGetAuditTrailC.Id = "aGetAuditTrailC";
|
||||
this.aGetAuditTrailC.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject;
|
||||
this.aGetAuditTrailC.ToolTip = null;
|
||||
this.aGetAuditTrailC.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aGetAuditTrail_Execute);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
internal DevExpress.ExpressApp.Actions.SimpleAction aGetAuditTrailC;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using DevExpress.ExpressApp;
|
||||
using DevExpress.Data.Filtering;
|
||||
using System.Collections.Generic;
|
||||
using DevExpress.ExpressApp.Actions;
|
||||
using DevExpress.ExpressApp.Xpo;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace SISBusiness.Module
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out http://documentation.devexpress.com/#Xaf/clsDevExpressExpressAppViewControllertopic.
|
||||
public partial class AuditTrailVCC : ViewController
|
||||
{
|
||||
public AuditTrailVCC()
|
||||
{
|
||||
InitializeComponent();
|
||||
RegisterActions(components);
|
||||
TargetViewType = ViewType.ListView;
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
Frame.GetController<AuditTrailVCC>().aGetAuditTrailC.Active.SetItemValue("", false);
|
||||
|
||||
if( View.Id.Contains("AuditDataItemPersistent")) {
|
||||
Frame.GetController<AuditTrailVCC>().aGetAuditTrailC.Active.SetItemValue("", false);
|
||||
}
|
||||
// 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 aGetAuditTrail_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
|
||||
//XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||
//XPCollection<AuditDataItemPersistent> _AuditDataItemPersistent_Collection = default(XPCollection<AuditDataItemPersistent>);
|
||||
//XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
//CollectionSource _CS = new CollectionSource(_onew, typeof(AuditDataItemPersistent));
|
||||
|
||||
//_AuditDataItemPersistent_Collection = AuditedObjectWeakReference.GetAuditTrail(_ocur.Session, View.SelectedObjects[0]);
|
||||
|
||||
//_CS.BeginUpdateCriteria();
|
||||
//_CS.Criteria.Clear();
|
||||
//_CS.Criteria["First"] = CriteriaOperator.Parse("1=2");
|
||||
//_CS.EndUpdateCriteria();
|
||||
|
||||
//if (_AuditDataItemPersistent_Collection != null) {
|
||||
// foreach ( var _AuditDataItemPersistent in _AuditDataItemPersistent_Collection) {
|
||||
// _CS.Add(_onew.GetObject(_AuditDataItemPersistent));
|
||||
// }
|
||||
|
||||
// e.ShowViewParameters.CreatedView = Application.CreateListView("AuditDataItemPersistent_ListView", _CS, false);
|
||||
// e.ShowViewParameters.NewWindowTarget = NewWindowTarget.Separate;
|
||||
// e.ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow;
|
||||
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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="aGetAuditTrailC.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,67 @@
|
||||
namespace SISBusiness.Module
|
||||
{
|
||||
partial class CustomersOrderVC
|
||||
{
|
||||
/// <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.aCustomer_SysnBusinessDirectory = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
this.aOpenWindowsExplorer = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
//
|
||||
// aCustomer_SysnBusinessDirectory
|
||||
//
|
||||
this.aCustomer_SysnBusinessDirectory.Caption = "aCustomer_SyncBusinessDirectory";
|
||||
this.aCustomer_SysnBusinessDirectory.Category = "ObjectsCreation";
|
||||
this.aCustomer_SysnBusinessDirectory.ConfirmationMessage = null;
|
||||
this.aCustomer_SysnBusinessDirectory.Id = "aCustomer_SyncBusinessDirectory";
|
||||
this.aCustomer_SysnBusinessDirectory.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject;
|
||||
this.aCustomer_SysnBusinessDirectory.ToolTip = null;
|
||||
this.aCustomer_SysnBusinessDirectory.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aCustomer_SysnBusinessDirectory_Execute);
|
||||
//
|
||||
// aOpenWindowsExplorer
|
||||
//
|
||||
this.aOpenWindowsExplorer.Caption = "aOpen Windows Explorer";
|
||||
this.aOpenWindowsExplorer.Category = "ObjectsCreation";
|
||||
this.aOpenWindowsExplorer.ConfirmationMessage = null;
|
||||
this.aOpenWindowsExplorer.Id = "aOpenWindowsExplorer";
|
||||
this.aOpenWindowsExplorer.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject;
|
||||
this.aOpenWindowsExplorer.ToolTip = null;
|
||||
this.aOpenWindowsExplorer.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aOpenWindowsExplorer_Execute);
|
||||
//
|
||||
// CustomersOrderVC
|
||||
//
|
||||
this.Actions.Add(this.aCustomer_SysnBusinessDirectory);
|
||||
this.Actions.Add(this.aOpenWindowsExplorer);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.ExpressApp.Actions.SimpleAction aOpenWindowsExplorer;
|
||||
private DevExpress.ExpressApp.Actions.SimpleAction aCustomer_SysnBusinessDirectory;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,179 @@
|
||||
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 System.IO;
|
||||
using System.Collections;
|
||||
using System.Diagnostics;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.Xpo;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.Persistent.Base;
|
||||
using System.Collections.Generic;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
using DevExpress.Persistent.Validation;
|
||||
using DevExpress.ExpressApp.Model;
|
||||
|
||||
namespace SISBusiness.Module
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
public partial class CustomersOrderVC : ViewController
|
||||
{
|
||||
public CustomersOrderVC()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
Frame.GetController<CustomersOrderVC>().aCustomer_SysnBusinessDirectory.Active.SetItemValue("", false);
|
||||
Frame.GetController<CustomersOrderVC>().aOpenWindowsExplorer.Active.SetItemValue("", false);
|
||||
if (View.Id == "DBV_OfferOutRows_ListView")
|
||||
{
|
||||
Frame.GetController<CustomersOrderVC>().aCustomer_SysnBusinessDirectory.Active.SetItemValue("", true);
|
||||
}
|
||||
if (View.Id.Contains("OfferOutHeader_ListView"))
|
||||
{
|
||||
Frame.GetController<CustomersOrderVC>().aCustomer_SysnBusinessDirectory.Active.SetItemValue("", true);
|
||||
}
|
||||
DevExpress.ExpressApp.ListView _ListView = View as DevExpress.ExpressApp.ListView;
|
||||
if (_ListView != null)
|
||||
{
|
||||
IModelListView _IModelListView = (IModelListView)_ListView.Model;
|
||||
switch (_IModelListView.ModelClass.Name)
|
||||
{
|
||||
case "SISBusiness.Module.Customers":
|
||||
case "SISBusiness.Module.CustomersOrder":
|
||||
Frame.GetController<CustomersOrderVC>().aOpenWindowsExplorer.Active.SetItemValue("", true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
switch (View.Id)
|
||||
{
|
||||
case "DBV_OfferOutRows_ListView":
|
||||
case "DBV_Products_ListView":
|
||||
Frame.GetController<CustomersOrderVC>().aOpenWindowsExplorer.Active.SetItemValue("", true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
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 aOpenWindowsExplorer_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur = (XPObjectSpace)View.ObjectSpace;
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
XPBaseObject _Object = (XPBaseObject)View.SelectedObjects[0];
|
||||
|
||||
DevExpress.ExpressApp.ListView _ListView = (DevExpress.ExpressApp.ListView)View;
|
||||
if (_ListView != null)
|
||||
{
|
||||
IModelListView _IModelListView = (IModelListView)_ListView.Model;
|
||||
switch (_IModelListView.ModelClass.Name)
|
||||
{
|
||||
case "SISBusiness.Module.Products":
|
||||
_Object = ((Products)_Object).ProductGroups;
|
||||
break;
|
||||
case "SISBusiness.Module.Contacts":
|
||||
_Object = ((Contacts)_Object).Customers;
|
||||
break;
|
||||
case "SISBusiness.Module.OfferOutRows":
|
||||
_Object = ((OfferOutRows)_Object).OfferOutHeader;
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
if (_Object != null)
|
||||
{
|
||||
if (string.IsNullOrEmpty(_Object.GetMemberValue("DocumentPath").ToString()) == false)
|
||||
{
|
||||
if (Directory.Exists(_Object.GetMemberValue("DocumentPath").ToString()))
|
||||
{
|
||||
Process.Start(_Object.GetMemberValue("DocumentPath").ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void aCustomer_SysnBusinessDirectory_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur= (XPObjectSpace)View.ObjectSpace;
|
||||
Customers _Customers=null;
|
||||
OfferOutHeader _OfferOutHeader = null;
|
||||
switch (View.Id)
|
||||
{
|
||||
case "DBV_OfferOutRows_ListView":
|
||||
_OfferOutHeader = ((OfferOutRows)View.SelectedObjects[0]).OfferOutHeader;
|
||||
_Customers=_OfferOutHeader.Customers;
|
||||
break;
|
||||
case "OfferOutHeader_ListView":
|
||||
case "OfferOutHeader_ListView_Editable":
|
||||
_OfferOutHeader = ((OfferOutHeader)View.SelectedObjects[0]);
|
||||
_Customers = _OfferOutHeader.Customers;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
if (_Customers.MasterBusinessDirectory == null)
|
||||
{
|
||||
BusinessDirectory _CustomersBaseBusinessDirectory = _ocur.FindObject<BusinessDirectory>(CriteriaOperator.Parse("ShortName='Ügyfelek' AND IsNull(BusinessDirectory_Parent)=True"));
|
||||
|
||||
if (_CustomersBaseBusinessDirectory == null)
|
||||
{
|
||||
_CustomersBaseBusinessDirectory = new BusinessDirectory(_ocur.Session);
|
||||
var _with1 = _CustomersBaseBusinessDirectory;
|
||||
_with1.ShortName = "Ügyfelek";
|
||||
_with1.BusinessDirectory_Parent = null;
|
||||
}
|
||||
|
||||
BusinessDirectory _CustomersBusinessDirectory = new BusinessDirectory(_ocur.Session);
|
||||
_CustomersBusinessDirectory.ShortName = string.Format("{0} {1} {2}", _Customers.FullName, _Customers.Address1.City, _Customers.CustomerNumber);
|
||||
_CustomersBusinessDirectory.BusinessDirectory_Parent = _CustomersBaseBusinessDirectory;
|
||||
_CustomersBusinessDirectory.Save();
|
||||
_Customers.MasterBusinessDirectory = _CustomersBusinessDirectory;
|
||||
_ocur.CommitChanges();
|
||||
}
|
||||
|
||||
if (_OfferOutHeader.MasterBusinessDirectory == null)
|
||||
{
|
||||
BusinessDirectory _OfferOutBusinessDirectory = new BusinessDirectory(_ocur.Session);
|
||||
_OfferOutBusinessDirectory.ShortName = string.Format("{0}", _OfferOutHeader.DocumentNumber);
|
||||
_OfferOutBusinessDirectory.BusinessDirectory_Parent = _OfferOutHeader.Customers.MasterBusinessDirectory;
|
||||
_OfferOutBusinessDirectory.Save();
|
||||
_OfferOutHeader.MasterBusinessDirectory = _OfferOutBusinessDirectory;
|
||||
_ocur.CommitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
<?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="aCustomer_SysnBusinessDirectory.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aOpenWindowsExplorer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>254, 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,54 @@
|
||||
namespace SISBusiness.Module
|
||||
{
|
||||
partial class NavInvoiceReportVC
|
||||
{
|
||||
/// <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.aCreateNAVInvoiceReportXML = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
//
|
||||
// aCreateNAVInvoiceReportXML
|
||||
//
|
||||
this.aCreateNAVInvoiceReportXML.ActionMeaning = DevExpress.ExpressApp.Actions.ActionMeaning.Accept;
|
||||
this.aCreateNAVInvoiceReportXML.Caption = "aCreate NAVInvoice Report XML";
|
||||
this.aCreateNAVInvoiceReportXML.ConfirmationMessage = "aCreateNAVInvoiceReportXML";
|
||||
this.aCreateNAVInvoiceReportXML.Id = "aCreateNAVInvoiceReportXML";
|
||||
this.aCreateNAVInvoiceReportXML.TargetObjectType = typeof(SISBusiness.Module.NAVInvoiceReport);
|
||||
this.aCreateNAVInvoiceReportXML.ToolTip = null;
|
||||
this.aCreateNAVInvoiceReportXML.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aCreateNAVInvoiceReportXML_Execute);
|
||||
//
|
||||
// NavInvoiceReportVC
|
||||
//
|
||||
this.Actions.Add(this.aCreateNAVInvoiceReportXML);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.ExpressApp.Actions.SimpleAction aCreateNAVInvoiceReportXML;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,204 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using DevExpress.ExpressApp;
|
||||
using System.Collections.Generic;
|
||||
using DevExpress.ExpressApp.Actions;
|
||||
using DevExpress.Persistent.Validation;
|
||||
using System.Xml;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.ExpressApp.Xpo;
|
||||
using DevExpress.Data.Filtering;
|
||||
using SISBusiness.Module;
|
||||
using System.Globalization;
|
||||
using System.Windows.Forms;
|
||||
namespace SISBusiness.Module
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out http://documentation.devexpress.com/#Xaf/clsDevExpressExpressAppViewControllertopic.
|
||||
public partial class NavInvoiceReportVC : ViewController
|
||||
{
|
||||
public NavInvoiceReportVC()
|
||||
{
|
||||
InitializeComponent();
|
||||
RegisterActions(components);
|
||||
// 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 aCreateNAVInvoiceReportXML_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
|
||||
XPObjectSpace _ocur = (XPObjectSpace)View.ObjectSpace;
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
NAVInvoiceReport _NAVInvoiceReport = (NAVInvoiceReport)View.SelectedObjects[0];
|
||||
|
||||
//Kritéria a törzsbõl
|
||||
System.String _Criteria=" IsEditable=false and IsProforma=false and DocumentNumber!='' and IsNull(DocumentNumber)=false";
|
||||
|
||||
if (string.IsNullOrEmpty(_NAVInvoiceReport.DocumentNumberFrom)==false & string.IsNullOrEmpty(_NAVInvoiceReport.DocumentNumberTo)==false)
|
||||
{
|
||||
_Criteria += string.Format(" and (DocumentNumber>='{0}' and DocumentNumber <='{1}')", _NAVInvoiceReport.DocumentNumberFrom, _NAVInvoiceReport.DocumentNumberTo);
|
||||
}
|
||||
_Criteria += " and (GetDate(DateCreated)>=? and GetDate(DateCreated)<=?)";
|
||||
XPCollection<InvoiceHeader> _InvoiceHeader_Collection = new XPCollection<InvoiceHeader>(_onew.Session, CriteriaOperator.Parse(_Criteria, _NAVInvoiceReport.FromDate, _NAVInvoiceReport.ToDate));
|
||||
|
||||
_InvoiceHeader_Collection.Sorting.Add(new SortProperty("DateCreated", DevExpress.Xpo.DB.SortingDirection.Ascending));
|
||||
|
||||
System.String _Filename = string.Format(@"NR{0:yyyyMMddHHmm}.xml", System.DateTime.Now);
|
||||
if (Validator.RuleSet.ValidateAll(View.ObjectSpace, View.SelectedObjects, DefaultContexts.Save))
|
||||
{
|
||||
|
||||
XmlWriterSettings settings = new XmlWriterSettings() { Indent = true, NewLineOnAttributes = true };
|
||||
using (XmlWriter writer = XmlWriter.Create(string.Format(@"{0}\{1}",_NAVInvoiceReport.OutputPath,_Filename), settings))
|
||||
{
|
||||
writer.WriteStartDocument();
|
||||
writer.WriteStartElement("szamlak", @"http://schemas.nav.gov.hu/2013/szamla");
|
||||
writer.WriteElementString("export_datuma", DateTime.Now.ToString(@"yyyy-MM-dd"));
|
||||
writer.WriteElementString("export_szla_db", _InvoiceHeader_Collection.Count.ToString());
|
||||
writer.WriteElementString("kezdo_ido", _NAVInvoiceReport.FromDate.ToString(@"yyyy-MM-dd"));
|
||||
writer.WriteElementString("zaro_ido", _NAVInvoiceReport.ToDate.ToString(@"yyyy-MM-dd"));
|
||||
writer.WriteElementString("kezdo_szamlaszam", _NAVInvoiceReport.DocumentNumberFrom);
|
||||
writer.WriteElementString("zaro_szamlaszam", _NAVInvoiceReport.DocumentNumberTo);
|
||||
|
||||
foreach (InvoiceHeader _InvoiceHeader in _InvoiceHeader_Collection)
|
||||
{
|
||||
writer.WriteStartElement("szamla");
|
||||
|
||||
writer.WriteStartElement("fejlec");
|
||||
writer.WriteElementString("szlasorszam", _InvoiceHeader.DocumentNumber);
|
||||
writer.WriteElementString("szlatipus", "1");
|
||||
writer.WriteElementString("szladatum", _InvoiceHeader.DateCreated.ToString(@"yyyy-MM-dd"));
|
||||
writer.WriteElementString("teljdatum", _InvoiceHeader.DateExecution.ToString(@"yyyy-MM-dd"));
|
||||
|
||||
writer.WriteEndElement();//fejlec
|
||||
|
||||
writer.WriteStartElement("szamlakibocsato");
|
||||
writer.WriteElementString("adoszam", _InvoiceHeader.Saved_CustomersFrom_VATNumber);
|
||||
writer.WriteElementString("kisadozo", "false");
|
||||
writer.WriteElementString("nev", _InvoiceHeader.Saved_CustomersFrom_Name);
|
||||
|
||||
writer.WriteStartElement("cim");
|
||||
writer.WriteElementString("iranyitoszam", _InvoiceHeader.Saved_CustomersFrom_Address_ZipPostal);
|
||||
writer.WriteElementString("telepules", _InvoiceHeader.Saved_CustomersFrom_Address_City);
|
||||
|
||||
if (_InvoiceHeader.CustomersFrom.Address1.GetMemberValue("NameOfStreet") != null)
|
||||
{ writer.WriteElementString("kozterulet_neve", _InvoiceHeader.CustomersFrom.Address1.GetMemberValue("NameOfStreet").ToString()); }
|
||||
else
|
||||
{ writer.WriteElementString("kozterulet_neve", _InvoiceHeader.Saved_CustomersFrom_Address_Street); }
|
||||
|
||||
|
||||
if (_InvoiceHeader.CustomersFrom.Address1.GetMemberValue("District") != null) { writer.WriteElementString("kerulet", _InvoiceHeader.CustomersFrom.Address1.GetMemberValue("District").ToString()); }
|
||||
if (_InvoiceHeader.CustomersFrom.Address1.GetMemberValue("TypeOfStreet") != null) { writer.WriteElementString("kozterulet_jellege", _InvoiceHeader.CustomersFrom.Address1.GetMemberValue("TypeOfStreet").ToString()); }
|
||||
if (_InvoiceHeader.CustomersFrom.Address1.GetMemberValue("NumberOfStreet") != null) { writer.WriteElementString("hazszam", _InvoiceHeader.CustomersFrom.Address1.GetMemberValue("NumberOfStreet").ToString()); }
|
||||
if (_InvoiceHeader.CustomersFrom.Address1.GetMemberValue("Building") != null) { writer.WriteElementString("epulet", _InvoiceHeader.CustomersFrom.Address1.GetMemberValue("Building").ToString()); }
|
||||
if (_InvoiceHeader.CustomersFrom.Address1.GetMemberValue("StairCase") != null) { writer.WriteElementString("lepcsohaz", _InvoiceHeader.CustomersFrom.Address1.GetMemberValue("StairCase").ToString()); }
|
||||
if (_InvoiceHeader.CustomersFrom.Address1.GetMemberValue("Floor") != null) { writer.WriteElementString("szint", _InvoiceHeader.CustomersFrom.Address1.GetMemberValue("Floor").ToString()); }
|
||||
if (_InvoiceHeader.CustomersFrom.Address1.GetMemberValue("NumberOfDoor") != null) { writer.WriteElementString("ajto", _InvoiceHeader.CustomersFrom.Address1.GetMemberValue("NumberOfDoor").ToString()); }
|
||||
|
||||
//writer.WriteElementString("kerulet", (_InvoiceHeader.CustomersFrom.Address1.GetMemberValue("District") ?? "").ToString());
|
||||
|
||||
writer.WriteElementString("egyeni_vallalkozo", "");
|
||||
writer.WriteElementString("ev_nyilv_tart_szam", "");
|
||||
writer.WriteElementString("ev_neve", "");
|
||||
writer.WriteEndElement();//cim
|
||||
|
||||
writer.WriteEndElement();//szamlakibocsato
|
||||
|
||||
writer.WriteStartElement("vevo");
|
||||
writer.WriteElementString("nev", _InvoiceHeader.Saved_Customers_Name);
|
||||
|
||||
writer.WriteStartElement("cim");
|
||||
writer.WriteElementString("iranyitoszam", _InvoiceHeader.Saved_Customers_Address_ZipPostal);
|
||||
writer.WriteElementString("telepules", _InvoiceHeader.Saved_Customers_Address_City);
|
||||
if (_InvoiceHeader.Customers.Address1.GetMemberValue("NameOfStreet") != null)
|
||||
{ writer.WriteElementString("kozterulet_neve", _InvoiceHeader.Customers.Address1.GetMemberValue("NameOfStreet").ToString()); }
|
||||
else
|
||||
{ writer.WriteElementString("kozterulet_neve", _InvoiceHeader.Saved_Customers_Address_Street); }
|
||||
|
||||
|
||||
if (_InvoiceHeader.Customers.Address1.GetMemberValue("District") != null) { writer.WriteElementString("kerulet", _InvoiceHeader.Customers.Address1.GetMemberValue("District").ToString()); }
|
||||
if (_InvoiceHeader.Customers.Address1.GetMemberValue("TypeOfStreet") != null) { writer.WriteElementString("kozterulet_jellege", _InvoiceHeader.Customers.Address1.GetMemberValue("TypeOfStreet").ToString()); }
|
||||
if (_InvoiceHeader.Customers.Address1.GetMemberValue("NumberOfStreet") != null) { writer.WriteElementString("hazszam", _InvoiceHeader.Customers.Address1.GetMemberValue("NumberOfStreet").ToString()); }
|
||||
if (_InvoiceHeader.Customers.Address1.GetMemberValue("Building") != null) { writer.WriteElementString("epulet", _InvoiceHeader.Customers.Address1.GetMemberValue("Building").ToString()); }
|
||||
if (_InvoiceHeader.Customers.Address1.GetMemberValue("StairCase") != null) { writer.WriteElementString("lepcsohaz", _InvoiceHeader.Customers.Address1.GetMemberValue("StairCase").ToString()); }
|
||||
if (_InvoiceHeader.Customers.Address1.GetMemberValue("Floor") != null) { writer.WriteElementString("szint", _InvoiceHeader.Customers.Address1.GetMemberValue("Floor").ToString()); }
|
||||
if (_InvoiceHeader.Customers.Address1.GetMemberValue("NumberOfDoor") != null) { writer.WriteElementString("ajto", _InvoiceHeader.Customers.Address1.GetMemberValue("NumberOfDoor").ToString()); }
|
||||
|
||||
writer.WriteEndElement();//cim
|
||||
|
||||
writer.WriteEndElement();//vevo
|
||||
foreach (InvoiceRows _InvoiceRows in _InvoiceHeader.InvoiceRows)
|
||||
{
|
||||
writer.WriteStartElement("termek_szolgaltatas_tetelek");
|
||||
writer.WriteElementString("termeknev", _InvoiceRows.ShortName);
|
||||
writer.WriteElementString("menny", _InvoiceRows.QTT.ToString("F", CultureInfo.InvariantCulture));
|
||||
writer.WriteElementString("mertekegys", _InvoiceRows.Units.ShortName);
|
||||
writer.WriteElementString("nettoar", _InvoiceRows.SumPriceHUF.ToString("F", CultureInfo.InvariantCulture));
|
||||
writer.WriteElementString("nettoegysar", _InvoiceRows.ListPriceHUF.ToString("F", CultureInfo.InvariantCulture));
|
||||
writer.WriteElementString("adokulcs", _InvoiceRows.VAT.KeyValue.ToString("F", CultureInfo.InvariantCulture));
|
||||
writer.WriteElementString("adoertek", (_InvoiceRows.SumPriceBruttoHUF - _InvoiceRows.SumPriceHUF).ToString("F", CultureInfo.InvariantCulture));
|
||||
writer.WriteElementString("bruttoar", _InvoiceRows.SumPriceBruttoHUF.ToString("F", CultureInfo.InvariantCulture));
|
||||
|
||||
writer.WriteEndElement();//termek_szolgaltatas_tetelek
|
||||
}
|
||||
|
||||
writer.WriteStartElement("zaradekok");
|
||||
writer.WriteElementString("adoment_hiv", "false");
|
||||
writer.WriteEndElement(); //zaradekok
|
||||
|
||||
writer.WriteStartElement("nem_kotelezo");
|
||||
writer.WriteElementString("fiz_hatarido", _InvoiceHeader.DatePayment.ToString(@"yyyy-MM-dd"));
|
||||
writer.WriteElementString("fiz_mod", _InvoiceHeader.PaymentOption.ShortName);
|
||||
writer.WriteElementString("penznem", _InvoiceHeader.CurrencyName.ShortName);
|
||||
writer.WriteEndElement(); //nem_kotelezo
|
||||
|
||||
writer.WriteStartElement("osszesites");
|
||||
foreach (InvoiceVATRows _InvoiceVATRows in _InvoiceHeader.InvoiceVATRows)
|
||||
{
|
||||
writer.WriteStartElement("afarovat");
|
||||
writer.WriteElementString("nettoar", _InvoiceVATRows.AmountNettoHUF.ToString("F", CultureInfo.InvariantCulture));
|
||||
writer.WriteElementString("adokulcs", _InvoiceVATRows.VAT.KeyValue.ToString("F", CultureInfo.InvariantCulture));
|
||||
writer.WriteElementString("adoertek", _InvoiceVATRows.AmountVATHUF.ToString("F", CultureInfo.InvariantCulture));
|
||||
writer.WriteElementString("bruttoar", _InvoiceVATRows.AmountBruttoHUF.ToString("F", CultureInfo.InvariantCulture));
|
||||
|
||||
writer.WriteEndElement(); //afarovat
|
||||
}
|
||||
writer.WriteStartElement("vegosszeg");
|
||||
writer.WriteElementString("nettoarossz", _InvoiceHeader.TotalNettoHUF.ToString("F", CultureInfo.InvariantCulture));
|
||||
writer.WriteElementString("afaertekossz", _InvoiceHeader.TotalVATHUF.ToString("F", CultureInfo.InvariantCulture));
|
||||
writer.WriteElementString("bruttoarossz", _InvoiceHeader.TotalBruttoHUF.ToString("F", CultureInfo.InvariantCulture));
|
||||
|
||||
writer.WriteEndElement(); //vegosszeg
|
||||
writer.WriteEndElement(); //osszesites
|
||||
|
||||
writer.WriteEndElement(); //szamla
|
||||
}
|
||||
|
||||
writer.WriteEndElement();
|
||||
writer.WriteEndDocument();
|
||||
MessageBox.Show(string.Format("A letöltés befejezõdött !\nA fájl a következõ helyen :\n{0}", string.Format(@"{0}\{1}", _NAVInvoiceReport.OutputPath, _Filename)), "Adatletöltés állapota", MessageBoxButtons.OK);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void simpleAction1_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
DevExpress.ExpressApp.Reports.Win.ReportsController _ReportsController = Frame.GetController<DevExpress.ExpressApp.Reports.Win.ReportsController>();
|
||||
|
||||
_ReportsController.ShowReportDesignerAction.DoExecute();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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="aCreateNAVInvoiceReportXML.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>146, 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 @@
|
||||
namespace SISBusiness.Module
|
||||
{
|
||||
partial class NavigationItemVCC
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using DevExpress.ExpressApp.Actions;
|
||||
using DevExpress.ExpressApp.SystemModule;
|
||||
using DevExpress.ExpressApp.Xpo;
|
||||
|
||||
namespace SISBusiness.Module
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out http://documentation.devexpress.com/#Xaf/clsDevExpressExpressAppWindowControllertopic.
|
||||
public partial class NavigationItemVCC : SISBusiness.Module.Win.SISShowNavigationItemController
|
||||
{
|
||||
public NavigationItemVCC()
|
||||
{
|
||||
InitializeComponent();
|
||||
RegisterActions(components);
|
||||
// Target required Windows (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
// Perform various tasks depending on the target Window.
|
||||
}
|
||||
protected override void OnDeactivated()
|
||||
{
|
||||
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||
base.OnDeactivated();
|
||||
}
|
||||
|
||||
protected override void ShowNavigationItem(SingleChoiceActionExecuteEventArgs args)
|
||||
{
|
||||
if (args.SelectedChoiceActionItem != null && args.SelectedChoiceActionItem.Enabled)
|
||||
{
|
||||
if (args.SelectedChoiceActionItem.Id == "NAVInvoiceReport_ListView")
|
||||
{
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
NAVInvoiceReport _NAVInvoiceReport = _onew.CreateObject<NAVInvoiceReport>();
|
||||
|
||||
args.ShowViewParameters.CreatedView = Application.CreateDetailView(_onew, "NAVInvoiceReport_DetailView", true, _NAVInvoiceReport);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.ShowNavigationItem(args);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
Folder Description
|
||||
|
||||
The "Controllers" project folder is intended for storing Controller classes
|
||||
that can change the default XAF application flow and add new features.
|
||||
|
||||
|
||||
Relevant Documentation
|
||||
|
||||
Extend Functionality
|
||||
http://help.devexpress.com/#Xaf/CustomDocument2623
|
||||
|
||||
Controller Class
|
||||
http://help.devexpress.com/#Xaf/clsDevExpressExpressAppControllertopic
|
||||
|
||||
ViewController Class
|
||||
http://help.devexpress.com/#Xaf/clsDevExpressExpressAppViewControllertopic
|
||||
|
||||
WindowController Class
|
||||
http://help.devexpress.com/#Xaf/clsDevExpressExpressAppWindowControllertopic
|
||||
@@ -0,0 +1,53 @@
|
||||
namespace SISBusiness.Module.Controllers
|
||||
{
|
||||
partial class ZoomListViewVC
|
||||
{
|
||||
/// <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.aZoomListView = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
//
|
||||
// aZoomListView
|
||||
//
|
||||
this.aZoomListView.Caption = "aZoom List View";
|
||||
this.aZoomListView.Category = "ObjectsCreation";
|
||||
this.aZoomListView.ConfirmationMessage = null;
|
||||
this.aZoomListView.Id = "aZoomListView";
|
||||
this.aZoomListView.ToolTip = null;
|
||||
this.aZoomListView.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aZoomListView_Execute);
|
||||
//
|
||||
// ZoomListViewVC
|
||||
//
|
||||
this.Actions.Add(this.aZoomListView);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.ExpressApp.Actions.SimpleAction aZoomListView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
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;
|
||||
|
||||
namespace SISBusiness.Module.Controllers
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
public partial class ZoomListViewVC : ViewController
|
||||
{
|
||||
public ZoomListViewVC()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
Frame.GetController<ZoomListViewVC>().aZoomListView.Active.SetItemValue("", false);
|
||||
if (View.Id.Contains("BusinessDirectory"))
|
||||
{
|
||||
Frame.GetController<ZoomListViewVC>().aZoomListView.Active.SetItemValue("", true);
|
||||
|
||||
}
|
||||
if (View.Id == "DBV_OfferOutRows_ListView")
|
||||
{
|
||||
Frame.GetController<ZoomListViewVC>().aZoomListView.Active.SetItemValue("", true);
|
||||
}
|
||||
if (View.Id == "DBV_OrderInRows_ListView")
|
||||
{
|
||||
Frame.GetController<ZoomListViewVC>().aZoomListView.Active.SetItemValue("", true);
|
||||
}
|
||||
if (View.Id == "BusinessDirectory_ListView_Zoom")
|
||||
{
|
||||
Frame.GetController<ZoomListViewVC>().aZoomListView.Active.SetItemValue("", false);
|
||||
Frame.GetController<SISBusiness.Module.BusinessDirectory_VC>().aBusinessDirectory_SetRoleEnabled.Active.SetItemValue("", false);
|
||||
Frame.GetController<SISBusiness.Module.BusinessDirectory_VC>().aBusinessDirectory_SetRoleDisabled.Active.SetItemValue("", false);
|
||||
Frame.GetController<SISBusiness.Module.BusinessDirectory_VC>().aBusinessDirectory_NewDashboard.Active.SetItemValue("", false);
|
||||
Frame.GetController<SISBusiness.Module.BusinessDirectory_VC>().aBusinessDirectory_OpenDashboardWithDesigner.Active.SetItemValue("", false);
|
||||
//Frame.GetController<SISBusiness.Module.BusinessDirectory_VC>().aBusinessDirectory_OpenDashboardWithViewer.Active.SetItemValue("", false);
|
||||
}
|
||||
if (View.Id == "Customers_Customers_BusinessDirectory_ListView")
|
||||
{
|
||||
Frame.GetController<SISBusiness.Module.BusinessDirectory_VC>().aBusinessDirectory_SetRoleEnabled.Active.SetItemValue("", false);
|
||||
Frame.GetController<SISBusiness.Module.BusinessDirectory_VC>().aBusinessDirectory_SetRoleDisabled.Active.SetItemValue("", false);
|
||||
Frame.GetController<SISBusiness.Module.BusinessDirectory_VC>().aBusinessDirectory_NewDashboard.Active.SetItemValue("", false);
|
||||
Frame.GetController<SISBusiness.Module.BusinessDirectory_VC>().aBusinessDirectory_OpenDashboardWithDesigner.Active.SetItemValue("", false);
|
||||
Frame.GetController<SISBusiness.Module.BusinessDirectory_VC>().aBusinessDirectory_OpenDashboardWithViewer.Active.SetItemValue("", false);
|
||||
}
|
||||
}
|
||||
protected override void OnViewControlsCreated()
|
||||
{
|
||||
base.OnViewControlsCreated();
|
||||
|
||||
}
|
||||
protected override void OnDeactivated()
|
||||
{
|
||||
if (View.Id.Contains("BusinessDirectory"))
|
||||
{
|
||||
Frame.GetController<ZoomListViewVC>().aZoomListView.Active.SetItemValue("", false);
|
||||
|
||||
}
|
||||
if (View.Id == "DBV_OfferOutRows_ListView")
|
||||
{
|
||||
Frame.GetController<ZoomListViewVC>().aZoomListView.Active.SetItemValue("", false);
|
||||
}
|
||||
if (View.Id == "DBV_OrderInRows_ListView")
|
||||
{
|
||||
Frame.GetController<ZoomListViewVC>().aZoomListView.Active.SetItemValue("", false);
|
||||
}
|
||||
base.OnDeactivated();
|
||||
}
|
||||
|
||||
private void aZoomListView_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur = (XPObjectSpace)View.ObjectSpace;
|
||||
XPObjectSpace _onew = (XPObjectSpace)_ocur.CreateNestedObjectSpace();
|
||||
CollectionSource _CollectionSource=new CollectionSource(_onew,typeof(BusinessDirectory));
|
||||
string _ListViewID = "BusinessDirectory_ListView_Zoom";
|
||||
_CollectionSource.BeginUpdateCriteria();
|
||||
_CollectionSource.Criteria.Add("Clear",CriteriaOperator.Parse("1=2"));
|
||||
_CollectionSource.EndUpdateCriteria();
|
||||
|
||||
CollectionSourceBase _CollectionSourceOriginal=null;
|
||||
if (View.Id.Contains("BusinessDirectory"))
|
||||
{
|
||||
_CollectionSourceOriginal = ((ListView)View).CollectionSource;
|
||||
if (_CollectionSourceOriginal.List!=null)
|
||||
{
|
||||
foreach (var item in _CollectionSourceOriginal.List)
|
||||
{
|
||||
_CollectionSource.Add(_onew.GetObject(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (View.Id == "DBV_OfferOutRows_ListView") {
|
||||
if (View.SelectedObjects.Count > 0)
|
||||
{
|
||||
_ListViewID = "OfferOutRows_ListView_Zoom";
|
||||
_CollectionSource = new CollectionSource(_onew, typeof(OfferOutRows));
|
||||
_CollectionSource.BeginUpdateCriteria();
|
||||
_CollectionSource.Criteria.Add("Clear", CriteriaOperator.Parse("1=2"));
|
||||
_CollectionSource.EndUpdateCriteria();
|
||||
_CollectionSourceOriginal = ((ListView)View).CollectionSource;
|
||||
if (_CollectionSourceOriginal.List != null)
|
||||
{
|
||||
for (int i = 0; i < _CollectionSourceOriginal.List.Count; i++)
|
||||
{
|
||||
_CollectionSource.Add(_onew.GetObject(_CollectionSourceOriginal.List[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (View.Id == "DBV_OrderInRows_ListView")
|
||||
{
|
||||
if (View.SelectedObjects.Count > 0)
|
||||
{
|
||||
_ListViewID = "OrderInRows_ListView_Zoom";
|
||||
_CollectionSource = new CollectionSource(_onew, typeof(OrderInRows));
|
||||
_CollectionSource.BeginUpdateCriteria();
|
||||
_CollectionSource.Criteria.Add("Clear", CriteriaOperator.Parse("1=2"));
|
||||
_CollectionSource.EndUpdateCriteria();
|
||||
_CollectionSourceOriginal = ((ListView)View).CollectionSource;
|
||||
if (_CollectionSourceOriginal.List != null)
|
||||
{
|
||||
for (int i = 0; i < _CollectionSourceOriginal.List.Count; i++)
|
||||
{
|
||||
_CollectionSource.Add(_onew.GetObject(_CollectionSourceOriginal.List[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ShowViewParameters _ShowViewParameters=new ShowViewParameters();
|
||||
ShowViewSource _ShowViewSource = new ShowViewSource(Frame, null);
|
||||
|
||||
_ShowViewParameters.CreatedView = Application.CreateListView(_ListViewID, _CollectionSource, false);
|
||||
_ShowViewParameters.NewWindowTarget = NewWindowTarget.Separate;
|
||||
_ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow;
|
||||
|
||||
Application.ShowViewStrategy.ShowView(_ShowViewParameters, _ShowViewSource);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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="aZoomListView.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>
|
||||
Reference in New Issue
Block a user