First create solution
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ClassDiagram MajorVersion="1" MinorVersion="1">
|
||||
<Class Name="Nuvolar.Module.StorageOutRows">
|
||||
<Position X="7.5" Y="0.5" Width="2.25" />
|
||||
<TypeIdentifier />
|
||||
<ShowAsAssociation>
|
||||
<Property Name="OrderInRows" />
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="Nuvolar.Module.OrderInRows">
|
||||
<Position X="11.25" Y="1.25" Width="1.75" />
|
||||
<Members>
|
||||
<Method Name="AddRows" Hidden="true" />
|
||||
<Property Name="APCSheetByProducts" Hidden="true" />
|
||||
<Property Name="DeliveryNoteOutRows" Hidden="true" />
|
||||
<Property Name="Description" Hidden="true" />
|
||||
<Property Name="DescriptionPrivate" Hidden="true" />
|
||||
<Property Name="DiscountPercent" Hidden="true" />
|
||||
<Property Name="DiscountPriceDEV" Hidden="true" />
|
||||
<Property Name="DiscountPriceHUF" Hidden="true" />
|
||||
<Property Name="DisplayName" Hidden="true" />
|
||||
<Property Name="FinalPriceDEV" Hidden="true" />
|
||||
<Property Name="FinalPriceHUF" Hidden="true" />
|
||||
<Property Name="ListPriceDEV" Hidden="true" />
|
||||
<Property Name="ListPriceHUF" Hidden="true" />
|
||||
<Property Name="ListPriceOriginalHUF" Hidden="true" />
|
||||
<Property Name="OfferOutRows" Hidden="true" />
|
||||
<Method Name="OnDeleted" Hidden="true" />
|
||||
<Method Name="OnSaved" Hidden="true" />
|
||||
<Method Name="OnSaving" Hidden="true" />
|
||||
<Method Name="OrderInRows" Hidden="true" />
|
||||
<Property Name="QTT_Storaged_Will" Hidden="true" />
|
||||
<Property Name="QTT_To" Hidden="true" />
|
||||
<Property Name="QualityOption" Hidden="true" />
|
||||
<Method Name="RecalculateRows" Hidden="true" />
|
||||
<Method Name="RemoveRows" Hidden="true" />
|
||||
<Property Name="RowGroup1" Hidden="true" />
|
||||
<Property Name="RowGroup2" Hidden="true" />
|
||||
<Property Name="RowIndex" Hidden="true" />
|
||||
<Method Name="RuleHUFMethod" Hidden="true" />
|
||||
<Property Name="StorageComputed_Collection" Hidden="true" />
|
||||
<Property Name="StorageOutRowsInRows_Collection" Hidden="true" />
|
||||
<Property Name="SumPriceBruttoDEV" Hidden="true" />
|
||||
<Property Name="SumPriceBruttoHUF" Hidden="true" />
|
||||
<Property Name="SumPriceNettoDEV" Hidden="true" />
|
||||
<Property Name="SumPriceNettoHUF" Hidden="true" />
|
||||
<Property Name="SumPriceVATDEV" Hidden="true" />
|
||||
<Property Name="SumPriceVATHUF" Hidden="true" />
|
||||
<Property Name="VAT" Hidden="true" />
|
||||
</Members>
|
||||
<TypeIdentifier />
|
||||
</Class>
|
||||
<Class Name="Nuvolar.Module.DeliveryNoteOutRows">
|
||||
<Position X="0.5" Y="0.75" Width="2.25" />
|
||||
<TypeIdentifier />
|
||||
<ShowAsAssociation>
|
||||
<Property Name="StorageOutRowsInRows" />
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="Nuvolar.Module.StorageOutRowsInRows">
|
||||
<Position X="4.25" Y="1.5" Width="2" />
|
||||
<TypeIdentifier />
|
||||
<ShowAsAssociation>
|
||||
<Property Name="StorageOutRows" />
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Font Name="Segoe UI" Size="9" />
|
||||
</ClassDiagram>
|
||||
@@ -0,0 +1,53 @@
|
||||
using DevExpress.Persistent.Base;
|
||||
using DevExpress.Xpo;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Nuvolar.Module.BusinessObjects
|
||||
{
|
||||
[DefaultClassOptions]
|
||||
[DevExpress.Persistent.Base.NavigationItemAttribute("Cost Planner")]
|
||||
[DevExpress.Persistent.Base.CreatableItemAttribute(false)]
|
||||
public partial class CostPlanner : DevExpress.Persistent.BaseImpl.BaseObject
|
||||
{
|
||||
private Nuvolar.Module.CustomersFrom _customersFrom;
|
||||
private System.String _shortName;
|
||||
public CostPlanner(DevExpress.Xpo.Session session)
|
||||
: base(session)
|
||||
{
|
||||
}
|
||||
public Nuvolar.Module.CustomersFrom CustomersFrom
|
||||
{
|
||||
get
|
||||
{
|
||||
return _customersFrom;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("CustomersFrom", ref _customersFrom, value);
|
||||
}
|
||||
}
|
||||
public System.String ShortName
|
||||
{
|
||||
get
|
||||
{
|
||||
return _shortName;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("ShortName", ref _shortName, value);
|
||||
}
|
||||
}
|
||||
[DevExpress.Xpo.AssociationAttribute("CostPlannerRows-CostPlanner")]
|
||||
[DevExpress.Xpo.AggregatedAttribute]
|
||||
public XPCollection<CostPlannerRows> CostPlannerRows
|
||||
{
|
||||
get
|
||||
{
|
||||
return GetCollection<Nuvolar.Module.BusinessObjects.CostPlannerRows>("CostPlannerRows");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Application>
|
||||
<BOModel>
|
||||
<Class Name="Nuvolar.Module.BusinessObjects.CostPlannerRows" IsDesigned="True" />
|
||||
</BOModel>
|
||||
<Views>
|
||||
<ListView Id="CostPlanner_CostPlannerRows_ListView" GroupSummary="Empty">
|
||||
<Columns>
|
||||
<ColumnInfo Id="CostPlanner" Index="-1" />
|
||||
<ColumnInfo Id="GroupName1" Width="137" />
|
||||
<ColumnInfo Id="GroupName2" Index="1" Width="143" />
|
||||
<ColumnInfo Id="GroupName3" Index="2" Width="143" />
|
||||
<ColumnInfo Id="GroupName4" Index="3" Width="143" />
|
||||
<ColumnInfo Id="AmountInHUF" Index="4" Width="143" />
|
||||
<ColumnInfo Id="AmountOutHUF" Index="5" Width="153" />
|
||||
</Columns>
|
||||
</ListView>
|
||||
</Views>
|
||||
</Application>
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Nuvolar.Module.BusinessObjects
|
||||
{
|
||||
public partial class CostPlannerRows
|
||||
{
|
||||
protected override void OnSaving()
|
||||
{
|
||||
base.OnSaving();
|
||||
}
|
||||
protected override void OnChanged(string propertyName, object oldValue, object newValue)
|
||||
{
|
||||
base.OnChanged(propertyName, oldValue, newValue);
|
||||
if (propertyName == "QTT"||propertyName== "PriceInHUF" || propertyName== "PriceOutHUF")
|
||||
{
|
||||
this.AmountInHUF = this.QTT * this.PriceInHUF;
|
||||
this.AmountOutHUF = this.QTT * this.PriceOutHUF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using DevExpress.ExpressApp.DC;
|
||||
using DevExpress.Persistent.Base;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
using DevExpress.Xpo;
|
||||
namespace Nuvolar.Module.BusinessObjects
|
||||
{
|
||||
[DefaultClassOptions]
|
||||
[DevExpress.Persistent.Base.NavigationItemAttribute(false)]
|
||||
[DevExpress.Persistent.Base.CreatableItemAttribute(false)]
|
||||
public partial class CostPlannerRows : DevExpress.Persistent.BaseImpl.BaseObject
|
||||
{
|
||||
private System.Double _priceOutHUF;
|
||||
private System.Double _priceInHUF;
|
||||
private Nuvolar.Module.Units _units;
|
||||
private System.Double _qTT;
|
||||
private System.DateTime _dateExecution;
|
||||
private System.Double _amountOutHUF;
|
||||
private System.Double _amountInHUF;
|
||||
private System.String _groupName4;
|
||||
private System.String _groupName3;
|
||||
private System.String _groupName2;
|
||||
private System.String _groupName1;
|
||||
private Nuvolar.Module.BusinessObjects.CostPlanner _costPlanner;
|
||||
public CostPlannerRows(DevExpress.Xpo.Session session)
|
||||
: base(session)
|
||||
{
|
||||
}
|
||||
[DevExpress.Xpo.AssociationAttribute("CostPlannerRows-CostPlanner")]
|
||||
public Nuvolar.Module.BusinessObjects.CostPlanner CostPlanner
|
||||
{
|
||||
get
|
||||
{
|
||||
return _costPlanner;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("CostPlanner", ref _costPlanner, value);
|
||||
}
|
||||
}
|
||||
public System.String GroupName1
|
||||
{
|
||||
get
|
||||
{
|
||||
return _groupName1;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("GroupName1", ref _groupName1, value);
|
||||
}
|
||||
}
|
||||
public System.String GroupName2
|
||||
{
|
||||
get
|
||||
{
|
||||
return _groupName2;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("GroupName2", ref _groupName2, value);
|
||||
}
|
||||
}
|
||||
public System.String GroupName3
|
||||
{
|
||||
get
|
||||
{
|
||||
return _groupName3;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("GroupName3", ref _groupName3, value);
|
||||
}
|
||||
}
|
||||
public System.String GroupName4
|
||||
{
|
||||
get
|
||||
{
|
||||
return _groupName4;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("GroupName4", ref _groupName4, value);
|
||||
}
|
||||
}
|
||||
public System.Double AmountInHUF
|
||||
{
|
||||
get
|
||||
{
|
||||
return _amountInHUF;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("AmountInHUF", ref _amountInHUF, value);
|
||||
}
|
||||
}
|
||||
public System.Double AmountOutHUF
|
||||
{
|
||||
get
|
||||
{
|
||||
return _amountOutHUF;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("AmountOutHUF", ref _amountOutHUF, value);
|
||||
}
|
||||
}
|
||||
public System.DateTime DateExecution
|
||||
{
|
||||
get
|
||||
{
|
||||
return _dateExecution;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("DateExecution", ref _dateExecution, value);
|
||||
}
|
||||
}
|
||||
public System.Double QTT
|
||||
{
|
||||
get
|
||||
{
|
||||
return _qTT;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("QTT", ref _qTT, value);
|
||||
}
|
||||
}
|
||||
public Nuvolar.Module.Units Units
|
||||
{
|
||||
get
|
||||
{
|
||||
return _units;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("Units", ref _units, value);
|
||||
}
|
||||
}
|
||||
public System.Double PriceInHUF
|
||||
{
|
||||
get
|
||||
{
|
||||
return _priceInHUF;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("PriceInHUF", ref _priceInHUF, value);
|
||||
}
|
||||
}
|
||||
public System.Double PriceOutHUF
|
||||
{
|
||||
get
|
||||
{
|
||||
return _priceOutHUF;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("PriceOutHUF", ref _priceOutHUF, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using DevExpress.ExpressApp.DC;
|
||||
using DevExpress.Persistent.Base;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
using DevExpress.Xpo;
|
||||
|
||||
namespace Nuvolar.Module.BusinessObjects
|
||||
{
|
||||
[DefaultClassOptions]
|
||||
[DevExpress.Persistent.Base.NavigationItemAttribute(false)]
|
||||
[DevExpress.Persistent.Base.CreatableItemAttribute(false)]
|
||||
public partial class CostPlannerRows : DevExpress.Persistent.BaseImpl.BaseObject
|
||||
{
|
||||
private System.Double _priceOutHUF;
|
||||
private System.Double _priceInHUF;
|
||||
private Nuvolar.Module.Units _units;
|
||||
private System.Double _qTT;
|
||||
private System.DateTime _dateExecution;
|
||||
private System.Double _amountOutHUF;
|
||||
private System.Double _amountInHUF;
|
||||
private System.String _groupName4;
|
||||
private System.String _groupName3;
|
||||
private System.String _groupName2;
|
||||
private System.String _groupName1;
|
||||
private Nuvolar.Module.BusinessObjects.CostPlanner _costPlanner;
|
||||
public CostPlannerRows(DevExpress.Xpo.Session session)
|
||||
: base(session)
|
||||
{
|
||||
}
|
||||
[DevExpress.Xpo.AssociationAttribute("CostPlannerRows-CostPlanner")]
|
||||
public Nuvolar.Module.BusinessObjects.CostPlanner CostPlanner
|
||||
{
|
||||
get
|
||||
{
|
||||
return _costPlanner;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("CostPlanner", ref _costPlanner, value);
|
||||
}
|
||||
}
|
||||
public System.String GroupName1
|
||||
{
|
||||
get
|
||||
{
|
||||
return _groupName1;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("GroupName1", ref _groupName1, value);
|
||||
}
|
||||
}
|
||||
public System.String GroupName2
|
||||
{
|
||||
get
|
||||
{
|
||||
return _groupName2;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("GroupName2", ref _groupName2, value);
|
||||
}
|
||||
}
|
||||
public System.String GroupName3
|
||||
{
|
||||
get
|
||||
{
|
||||
return _groupName3;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("GroupName3", ref _groupName3, value);
|
||||
}
|
||||
}
|
||||
public System.String GroupName4
|
||||
{
|
||||
get
|
||||
{
|
||||
return _groupName4;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("GroupName4", ref _groupName4, value);
|
||||
}
|
||||
}
|
||||
public System.Double AmountInHUF
|
||||
{
|
||||
get
|
||||
{
|
||||
return _amountInHUF;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("AmountInHUF", ref _amountInHUF, value);
|
||||
}
|
||||
}
|
||||
public System.Double AmountOutHUF
|
||||
{
|
||||
get
|
||||
{
|
||||
return _amountOutHUF;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("AmountOutHUF", ref _amountOutHUF, value);
|
||||
}
|
||||
}
|
||||
public System.DateTime DateExecution
|
||||
{
|
||||
get
|
||||
{
|
||||
return _dateExecution;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("DateExecution", ref _dateExecution, value);
|
||||
}
|
||||
}
|
||||
public System.Double QTT
|
||||
{
|
||||
get
|
||||
{
|
||||
return _qTT;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("QTT", ref _qTT, value);
|
||||
}
|
||||
}
|
||||
public Nuvolar.Module.Units Units
|
||||
{
|
||||
get
|
||||
{
|
||||
return _units;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("Units", ref _units, value);
|
||||
}
|
||||
}
|
||||
public System.Double PriceInHUF
|
||||
{
|
||||
get
|
||||
{
|
||||
return _priceInHUF;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("PriceInHUF", ref _priceInHUF, value);
|
||||
}
|
||||
}
|
||||
public System.Double PriceOutHUF
|
||||
{
|
||||
get
|
||||
{
|
||||
return _priceOutHUF;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetPropertyValue("PriceOutHUF", ref _priceOutHUF, value);
|
||||
}
|
||||
}
|
||||
protected override void OnChanged(string propertyName, object oldValue, object newValue)
|
||||
{
|
||||
base.OnChanged(propertyName, oldValue, newValue);
|
||||
if (propertyName == "QTT" || propertyName == "PriceInHUF" || propertyName == "PriceOutHUF")
|
||||
{
|
||||
this.AmountInHUF = this.QTT * this.PriceInHUF;
|
||||
this.AmountOutHUF = this.QTT * this.PriceOutHUF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.Persistent.Base;
|
||||
using System.Collections.Generic;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
using DevExpress.Persistent.Validation;
|
||||
namespace Nuvolar.Module
|
||||
{
|
||||
[DefaultClassOptions]
|
||||
[CreatableItem(false)]
|
||||
[NonPersistent]
|
||||
[NavigationItem("Reports")]
|
||||
[RuleCriteria("NAVInvoiceReport-OutputPath",DefaultContexts.Save,"CheckFilePath = true")]
|
||||
public class NAVInvoiceReport : BaseObject
|
||||
{ // Inherit from a different class to provide a custom primary key, concurrency and deletion behavior, etc. (http://documentation.devexpress.com/#Xaf/CustomDocument3146).
|
||||
public NAVInvoiceReport(Session session)
|
||||
: base(session)
|
||||
{
|
||||
}
|
||||
public override void AfterConstruction()
|
||||
{
|
||||
base.AfterConstruction();
|
||||
// Place your initialization code here (http://documentation.devexpress.com/#Xaf/CustomDocument2834).
|
||||
}
|
||||
private DateTime _fromDate;
|
||||
private DateTime _toDate;
|
||||
private String _documentNumberFrom;
|
||||
private String _documentNumberTo;
|
||||
private String _documentNumberBegin;
|
||||
private String _outputPath;
|
||||
//[XafDisplayName("My display name"), ToolTip("My hint message")]
|
||||
//[ModelDefault("EditMask", "(000)-00"), Index(0), VisibleInListView(false)]
|
||||
//[Persistent("DatabaseColumnName"), RuleRequiredField(DefaultContexts.Save)]
|
||||
[RuleRequiredField("NAVInvoiceReport-FromDate", DefaultContexts.Save)]
|
||||
public DateTime FromDate
|
||||
{
|
||||
get { return _fromDate; }
|
||||
set { SetPropertyValue("FromDate", ref _fromDate, value); }
|
||||
}
|
||||
[RuleRequiredField("NAVInvoiceReport-ToDate", DefaultContexts.Save)]
|
||||
public DateTime ToDate
|
||||
{
|
||||
get { return _toDate; }
|
||||
set { SetPropertyValue("ToDate", ref _toDate, value); }
|
||||
}
|
||||
public String DocumentNumberFrom
|
||||
{
|
||||
get { return _documentNumberFrom; }
|
||||
set { SetPropertyValue("DocumentNumberFrom", ref _documentNumberFrom, value); }
|
||||
}
|
||||
public String DocumentNumberTo
|
||||
{
|
||||
get { return _documentNumberTo; }
|
||||
set { SetPropertyValue("DocumentNumberTo", ref _documentNumberTo, value); }
|
||||
}
|
||||
public String DocumentNumberBegin
|
||||
{
|
||||
get { return _documentNumberBegin; }
|
||||
set { SetPropertyValue("DocumentNumberBegin", ref _documentNumberBegin, value); }
|
||||
}
|
||||
[Size(900)]
|
||||
|
||||
public String OutputPath
|
||||
{
|
||||
get { return _outputPath; }
|
||||
set { SetPropertyValue("OutputPath", ref _outputPath, value); }
|
||||
}
|
||||
private Boolean CheckFilePath
|
||||
{
|
||||
get
|
||||
{
|
||||
if (System.IO.Directory.Exists(OutputPath))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
//[Action(Caption = "My UI Action", ConfirmationMessage = "Are you sure?", ImageName = "Attention", AutoCommit = true)]
|
||||
//public void ActionMethod() {
|
||||
// // Trigger a custom business logic for the current record in the UI (http://documentation.devexpress.com/#Xaf/CustomDocument2619).
|
||||
// this.PersistentProperty = "Paid";
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.Persistent.Base;
|
||||
namespace Nuvolar.Module.BusinessObjects
|
||||
{
|
||||
[DefaultClassOptions]
|
||||
[NavigationItem(false)]
|
||||
[Persistent("vv_PartnerConnectionInfoAdvance")]
|
||||
public class PCIGroupAdvance : XPLiteObject
|
||||
{
|
||||
public PCIGroupAdvance(Session session)
|
||||
: base(session)
|
||||
{
|
||||
}
|
||||
[Key(true), Persistent("Oid")]
|
||||
public Guid Oid { get; set; }
|
||||
[Persistent("CustomersFrom")]
|
||||
public CustomersFrom CustomersFrom { get; set; }
|
||||
[Persistent("Customer")]
|
||||
public Customers Customers { get; set; }
|
||||
[Persistent("PartnerType")]
|
||||
public ePartnerType PartnerType { get; set; }
|
||||
[Persistent("AmountHUF")]
|
||||
public double AmountHUF { get; set; }
|
||||
[Persistent("AmountDEV")]
|
||||
public double AmountDEV { get; set; }
|
||||
[Persistent("ConnectInfoAdvanced")]
|
||||
public string ConnectInfoAdvanced { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.ExpressApp;
|
||||
using System.ComponentModel;
|
||||
using DevExpress.ExpressApp.DC;
|
||||
using DevExpress.Data.Filtering;
|
||||
using DevExpress.Persistent.Base;
|
||||
using System.Collections.Generic;
|
||||
using DevExpress.ExpressApp.Model;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
using DevExpress.Persistent.Validation;
|
||||
|
||||
namespace Nuvolar.Module.BusinessObjects.Popup
|
||||
{
|
||||
[DefaultClassOptions]
|
||||
[NonPersistent]
|
||||
[NavigationItem(false)]
|
||||
[CreatableItem(false)]
|
||||
public class OrderInMovePopup : BaseObject
|
||||
{
|
||||
public OrderInMovePopup(Session session): base(session) {}
|
||||
private OrderInHeader _OrderInHeader;
|
||||
private OrderInHeader _OrderInHeaderTo;
|
||||
[Browsable(false)]
|
||||
public OrderInHeader OrderInHeader {get{return _OrderInHeader; } set { SetPropertyValue("OrderInHeader", ref _OrderInHeader, value); }}
|
||||
[DataSourceCriteria("CustomersFrom='@This.OrderInHeader.CustomersFrom' And IsEditable = True")]
|
||||
public OrderInHeader OrderInHeaderTo { get { return _OrderInHeaderTo; } set { SetPropertyValue("OrderInHeaderTo", ref _OrderInHeaderTo, value); } }
|
||||
public XPCollection<StorageOutRowsInRows> StorageOutRowsInRows { get { return new XPCollection<StorageOutRowsInRows>(Session,CriteriaOperator.Parse("StorageOutRows.OrderInRows.OrderInHeader=? and StorageOutRows.QTT<>0 and DividedOriginal in (0,1)", OrderInHeader)); } }
|
||||
|
||||
public override void AfterConstruction()
|
||||
{
|
||||
base.AfterConstruction();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.Persistent.Base;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
|
||||
namespace Nuvolar.Module.BusinessObjects.Popup
|
||||
{
|
||||
[DefaultClassOptions,NonPersistent,CreatableItem(false),NavigationItem(false)]
|
||||
public class StorageSelectPopup : BaseObject
|
||||
{
|
||||
public StorageSelectPopup(Session session)
|
||||
: base(session)
|
||||
{
|
||||
}
|
||||
private Storage _Storage;
|
||||
private StorageMoveType _StorageMoveType;
|
||||
public override void AfterConstruction()
|
||||
{
|
||||
base.AfterConstruction();
|
||||
|
||||
}
|
||||
public Storage Storage { get { return _Storage; } set { SetPropertyValue("Storage", ref _Storage, value); } }
|
||||
[DataSourceCriteria("Storage='@This.Storage' and MoveDirection=1 and MoveType=1")]
|
||||
public StorageMoveType StorageMoveType { get { return _StorageMoveType; } set { SetPropertyValue("StorageMoveType", ref _StorageMoveType, value); } }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
Folder Description
|
||||
|
||||
The "BusinessObjects" project folder is intended for storing the business objects
|
||||
code. In XAF, a business object can be implemented as a base persistent class
|
||||
descendant and as Domain Component interfaces.
|
||||
|
||||
|
||||
Relevant Documentation
|
||||
|
||||
Business Model Design
|
||||
http://help.devexpress.com/#Xaf/CustomDocument2600
|
||||
|
||||
Domain Components
|
||||
http://help.devexpress.com/#Xaf/CustomDocument3261
|
||||
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.Persistent.Base;
|
||||
using System.Collections.Generic;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
|
||||
namespace Nuvolar.Module.BusinessObjects
|
||||
{
|
||||
[DefaultClassOptions]
|
||||
[NonPersistent]
|
||||
[CreatableItem(false)]
|
||||
[NavigationItem(false)]
|
||||
//[ImageName("BO_Contact")]
|
||||
//[DefaultProperty("DisplayMemberNameForLookupEditorsOfThisType")]
|
||||
//[DefaultListViewOptions(MasterDetailMode.ListViewOnly, false, NewItemRowPosition.None)]
|
||||
//[Persistent("DatabaseTableName")]
|
||||
// Specify more UI options using a declarative approach (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112701.aspx).
|
||||
public class StoragePDACollectionRowsH : BaseObject
|
||||
{ // Inherit from a different class to provide a custom primary key, concurrency and deletion behavior, etc. (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument113146.aspx).
|
||||
public StoragePDACollectionRowsH(Session session)
|
||||
: base(session)
|
||||
{
|
||||
}
|
||||
public override void AfterConstruction()
|
||||
{
|
||||
base.AfterConstruction();
|
||||
// Place your initialization code here (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112834.aspx).
|
||||
}
|
||||
private double _QTT_Original; //Eredeti, még osztatlan mennyiség
|
||||
private double _QTT_Remaining; // Mennyit lehet MAX leosztani
|
||||
private double _QTT_Divided; // Mennyit van már leosztva
|
||||
private double _QTT_Will;//Szándék, amit most akarok leosztani
|
||||
|
||||
|
||||
//[XafDisplayName("My display name"), ToolTip("My hint message")]
|
||||
//[ModelDefault("EditMask", "(000)-00"), Index(0), VisibleInListView(false)]
|
||||
//[Persistent("DatabaseColumnName"), RuleRequiredField(DefaultContexts.Save)]
|
||||
public double QTT_Original
|
||||
{
|
||||
get { return _QTT_Original; }
|
||||
set { SetPropertyValue("QTT_Original", ref _QTT_Original, value); }
|
||||
}
|
||||
public double QTT_Remaining
|
||||
{
|
||||
get { return _QTT_Remaining; }
|
||||
set { SetPropertyValue("QTT_Remaining", ref _QTT_Remaining, value); }
|
||||
}
|
||||
public double QTT_Divided
|
||||
{
|
||||
get { return _QTT_Divided; }
|
||||
set { SetPropertyValue("QTT_Divided", ref _QTT_Divided, value); }
|
||||
}
|
||||
public double QTT_Will
|
||||
{
|
||||
get { return _QTT_Will; }
|
||||
set { SetPropertyValue("QTT_Will", ref _QTT_Will, value); }
|
||||
}
|
||||
|
||||
//[Action(Caption = "My UI Action", ConfirmationMessage = "Are you sure?", ImageName = "Attention", AutoCommit = true)]
|
||||
//public void ActionMethod() {
|
||||
// // Trigger a custom business logic for the current record in the UI (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112619.aspx).
|
||||
// this.PersistentProperty = "Paid";
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.ExpressApp;
|
||||
using System.ComponentModel;
|
||||
using DevExpress.ExpressApp.DC;
|
||||
using DevExpress.Data.Filtering;
|
||||
using DevExpress.Persistent.Base;
|
||||
using System.Collections.Generic;
|
||||
using DevExpress.ExpressApp.Model;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
using DevExpress.Persistent.Validation;
|
||||
|
||||
namespace Nuvolar.Module.BusinessObjects.nopCommerce
|
||||
{
|
||||
[DefaultClassOptions]
|
||||
[NavigationItem(false),CreatableItem(false)]
|
||||
//[ImageName("BO_Contact")]
|
||||
//[DefaultProperty("DisplayMemberNameForLookupEditorsOfThisType")]
|
||||
//[DefaultListViewOptions(MasterDetailMode.ListViewOnly, false, NewItemRowPosition.None)]
|
||||
//[Persistent("DatabaseTableName")]
|
||||
// Specify more UI options using a declarative approach (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112701.aspx).
|
||||
public class nopCParameters : BaseObject
|
||||
{ // Inherit from a different class to provide a custom primary key, concurrency and deletion behavior, etc. (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument113146.aspx).
|
||||
public nopCParameters(Session session)
|
||||
: base(session)
|
||||
{
|
||||
}
|
||||
public override void AfterConstruction()
|
||||
{
|
||||
base.AfterConstruction();
|
||||
// Place your initialization code here (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112834.aspx).
|
||||
}
|
||||
private string _SQLServer;
|
||||
private string _SQLPort;
|
||||
private string _SQLUserName;
|
||||
private string _SQLPassword;
|
||||
//[XafDisplayName("My display name"), ToolTip("My hint message")]
|
||||
//[ModelDefault("EditMask", "(000)-00"), Index(0), VisibleInListView(false)]
|
||||
//[Persistent("DatabaseColumnName"), RuleRequiredField(DefaultContexts.Save)]
|
||||
public string SQLServer
|
||||
{
|
||||
get { return _SQLServer; }
|
||||
set { SetPropertyValue("SQLServer", ref _SQLServer, value); }
|
||||
}
|
||||
public string SQLPort
|
||||
{
|
||||
get { return _SQLPort; }
|
||||
set { SetPropertyValue("SQLPort", ref _SQLPort, value); }
|
||||
}
|
||||
public string SQLUserName
|
||||
{
|
||||
get { return _SQLUserName; }
|
||||
set { SetPropertyValue("SQLUserName", ref _SQLUserName, value); }
|
||||
}
|
||||
public string SQLPassword
|
||||
{
|
||||
get { return _SQLPassword; }
|
||||
set { SetPropertyValue("SQLPassword", ref _SQLPassword, value); }
|
||||
}
|
||||
//[Action(Caption = "My UI Action", ConfirmationMessage = "Are you sure?", ImageName = "Attention", AutoCommit = true)]
|
||||
//public void ActionMethod() {
|
||||
// // Trigger a custom business logic for the current record in the UI (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112619.aspx).
|
||||
// this.PersistentProperty = "Paid";
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,682 @@
|
||||
1;BEFEKTETETT ESZKÖZÖK
|
||||
11;IMMATERIÁLIS JAVAK
|
||||
111;Alapítás-átszervezés aktivált értéke
|
||||
112;Kísérleti fejlesztés aktivált értéke
|
||||
113;Vagyoni értékű jogok
|
||||
114;Szellemi termékek
|
||||
115;Üzleti vagy cégérték
|
||||
117;Immateriális javak értékhelyesbítése
|
||||
118;Immateriális javak terven felüli értékcsökkenése és annak visszaírása
|
||||
119;Immateriális javak terv szerinti értékcsökkenése
|
||||
1191;Alapítás-átszervezés aktivált értékének értékcsökkenése
|
||||
1192;Kísérleti fejlesztés aktivált értékének értékcsökkenése
|
||||
1193;Vagyoni értékű jogok értékcsökkenése
|
||||
1194;Szellemi termékek értékcsökkenése
|
||||
12;INGATLANOK ÉS KAPCSOLÓDÓ VAGYONI ÉRTÉKŰ JOGOK
|
||||
121;Földterület
|
||||
122;Telek, telkesítés
|
||||
123;Épületek, épületrészek, tulajdoni hányadok
|
||||
124;Egyéb építmények
|
||||
125;Üzemkörön kívüli ingatlanok, épületek
|
||||
126;Ingatlanokhoz kapcsolódó vagyoni értékű jogok
|
||||
127;Ingatlanok értékhelyesbítése
|
||||
128;Ingatlanok terven felüli értékcsökkenése és annak visszaírása
|
||||
129;Ingatlanok terv szerinti értékcsökkenése
|
||||
13;MŰSZAKI BERENDEZÉSEK, GÉPEK, JÁRMŰVEK
|
||||
131;Termelő gépek, berendezések, szerszámok, gyártóeszközök
|
||||
132;Termelésben közvetlenül részt vevő járművek
|
||||
137;Műszaki berendezések, gépek, járművek értékhelyesbítése
|
||||
138;Műszaki berend., gépek, járművek terv. f. értékcsökk. és visszaírása
|
||||
139;Műszaki berendezések, gépek, járművek terv szerinti értékcsökkenése
|
||||
14;EGYÉB BERENDEZÉSEK, FELSZERELÉSEK, JÁRMŰVEK
|
||||
141;Üzemi (üzleti) gépek, berendezések, felszerelések
|
||||
142;Egyéb járművek
|
||||
143;Irodai, igazgatási berendezések és felszerelések
|
||||
144;Üzemkörön kívüli berendezések, felszerelések, járművek
|
||||
147;Egyéb berendezések, felszerelések, járművek értékhelyesbítése
|
||||
148;Egyéb berend., felsz., járművek terv. f. értékcsökk. és visszaírása
|
||||
149;Egyéb berendezések, felszerelések, járművek terv szerinti értékcsökk.
|
||||
15;TENYÉSZÁLLATOK
|
||||
151;Tenyészállatok
|
||||
152;Igásállatok
|
||||
153;Egyéb állatok
|
||||
157;Tenyészállatok értékhelyesbítése
|
||||
158;Tenyészállatok terven felüli értékcsökkenése és annak visszaírása
|
||||
159;Tenyészállatok terv szerinti értékcsökkenése
|
||||
16;BERUHÁZÁSOK, FELÚJÍTÁSOK
|
||||
161;Befejezetlen beruházások
|
||||
162;Felújítások
|
||||
168;Beruházások terven felüli értékcsökkenése
|
||||
17;TULAJDONI RÉSZESEDÉST JELENTŐ BEFEKTETÉSEK (RÉSZESEDÉSEK)
|
||||
171;Tartós részesedés kapcsolt vállalkozásban
|
||||
172;Egyéb tartós részesedés
|
||||
177;Részesedések értékhelyesbítése
|
||||
179;Részesedések értékvesztése és annak visszaírása
|
||||
1791;Tartós részesedés értékvesztése és visszaírása kapcsolt vállalkozásban
|
||||
1792;Egyéb tartós részesedés értékvesztése és visszaírása
|
||||
18;HITELVISZONYT MEGTESTESÍTŐ ÉRTÉKPAPÍROK
|
||||
181;Államkötvények
|
||||
182;Kapcsolt vállalkozások értékpapírjai
|
||||
183;Egyéb vállalkozások értékpapírjai
|
||||
184;Tartós diszkontértékpapírok
|
||||
189;Értékpapírok értékvesztése és annak visszaírása
|
||||
19;TARTÓSAN ADOTT KÖLCSÖNÖK
|
||||
191;Tartósan adott kölcsönök kapcsolt vállalkozásban
|
||||
192;Tartósan adott kölcsönök egyéb részesedési viszonyban álló vállalk.
|
||||
193;Egyéb tartósan adott kölcsönök
|
||||
1931;Pénzügyi lízing miatti tartós követelések
|
||||
195;Tartós bankbetétek kapcsolt vállalkozásban
|
||||
196;Tartós bankbetétek egyéb részesedési viszonyban álló vállalkozásban
|
||||
197;Egyéb tartós bankbetétek
|
||||
198;Pénzügyi lízing miatti tartós követelés
|
||||
199;Tartósan adott kölcsönök, bankbetétek értékvesztése és visszaírása
|
||||
1991;Tartósan adott kölcsönök értékvesztése és visszaírása kapcsoltváll-ban
|
||||
1992;Tart. adott kölcs-k év-e és visszaí-a egyéb rész-i visz-ban álló váll.
|
||||
1993;Egyéb tartósan adott kölcsönök értékvesztése és visszaírása
|
||||
1995;Tartós bankbet-k év-e és visszaí-a kapcsolt vállalkozásban
|
||||
1996;Tartós bankbetétek év-e és visszaí-a egyéb rész-i visz-ban álló v-ban
|
||||
1997;Egyéb tartós bankbetétek értékvesztése és visszaírása
|
||||
2;KÉSZLETEK
|
||||
21;Nyers- és alapanyagok
|
||||
211;Alapanyagok
|
||||
22;Anyagok
|
||||
221;Segédanyagok
|
||||
222;Üzem- és fűtőanyagok
|
||||
223;Fenntartási anyagok
|
||||
224;Építési anyagok
|
||||
225;Egy éven belül elhasználódó anyagi eszközök
|
||||
226;Tárgyi eszközök közül átsorolt anyagok
|
||||
227;Egyéb anyagok
|
||||
228;Anyagok árkülönbözete
|
||||
229;Anyagok értékvesztése és annak visszaírása
|
||||
23;BEFEJEZETLEN TERMELÉS ÉS FÉLKÉSZ TERMÉKEK
|
||||
231;Befejezetlen termelés
|
||||
235;Félkész termékek
|
||||
238;Félkész termékek készletérték-különbözete
|
||||
239;Befejezetlen termelés, félkész termékek értékvesztése és visszaírása
|
||||
24;NÖVENDÉK, HÍZÓ- ÉS EGYÉB ÁLLATOK
|
||||
241;Növendék állatok
|
||||
242;Hízóállatok
|
||||
243;Egyéb állatok
|
||||
246;Bérbe vett állatok
|
||||
248;Állatok készletérték-különbözete
|
||||
249;Állatok értékvesztése és annak visszaírása
|
||||
25;KÉSZTERMÉKEK
|
||||
251;Késztermékek
|
||||
258;Késztermékek készletérték-különbözete
|
||||
259;Késztermékek értékvesztése és annak visszaírása
|
||||
26;KERESKEDELMI ÁRUK
|
||||
261;Áruk beszerzési áron
|
||||
262;Áruk elszámolóáron
|
||||
263;Áruk árkülönbözete
|
||||
264;Áruk eladási áron
|
||||
265;Áruk árrése
|
||||
266;Idegen helyen tárolt, bizományba átadott áruk
|
||||
267;Tárgyi eszközök közül átsorolt áruk
|
||||
268;Belső (egységek, tevékenységek közötti) átadás-átvétel ütközőszámla
|
||||
269;Kereskedelmi áruk értékvesztése és annak visszaírása
|
||||
27;KÖZVETÍTETT SZOLGÁLTATÁSOK
|
||||
271;Közvetített szolgáltatások
|
||||
279;Közvetített szolgáltatások értékvesztése és annak visszaírása
|
||||
28;BETÉTDÍJAS GÖNGYÖLEGEK
|
||||
281;Betétdíjas göngyölegek
|
||||
288;Betétdíjas göngyölegek árkülönbözete
|
||||
289;Betétdíjas göngyölegek értékvesztése és annak visszaírása
|
||||
3;KÖVETELÉSEK, PÉNZÜGYI ESZKÖZÖK ÉS AKTÍV IDŐBELI ELHATÁROLÁSOK
|
||||
31;KÖVETELÉSEK ÁRUSZÁLLÍTÁSBÓL ÉS SZOLGÁLTATÁSBÓL (VEVŐK)
|
||||
311;Belföldi követelések (forintban)
|
||||
312;Belföldi követelések (devizában)
|
||||
315;Belföldi követelések értékvesztése és annak visszaírása
|
||||
316;Külföldi követelések (forintban)
|
||||
317;Külföldi követelések (devizában)
|
||||
319;Külföldi követelések értékvesztése és annak visszaírása
|
||||
32;KÖVETELÉSEK KAPCSOLT VÁLLALKOZÁSSAL SZEMBEN
|
||||
321;Követelések az anyavállalattal szemben
|
||||
322;Követelések a leányvállalattal szemben
|
||||
323;Követelések a közös vezetésű vállalkozással szemben
|
||||
324;Követelések a társult vállalkozással szemben
|
||||
325;Jegyzett, de még be nem fizetett tőke az anyavállalattól
|
||||
326;Jegyzett, de még be nem fizetett tőke a leányvállalattól
|
||||
327;Jegyzett, de még be nem fizetett tőke a közös vezetésű vállalkozástól
|
||||
328;Jegyzett, de még be nem fizetett tőke a társult vállalkozástól
|
||||
329;Kapcsolt vállalk. szembeni követelések értékvesztése és visszaírása
|
||||
33;KÖVETELÉSEK EGYÉB RÉSZESEDÉSI VISZONYBAN LÉVŐ VÁLLALKOZÁSSAL SZEMBEN
|
||||
331;Követelések egyéb részesedési viszonyban lévő vállalkozással szemben
|
||||
332;Jegyzett, be nem fiz. tőke az egyéb részesedési visz. vállalkozástól
|
||||
339;Egyéb rész. visz. lévő vállalk. szemben köv. értékveszt., visszaírása
|
||||
34;VÁLTÓKÖVETELÉSEK
|
||||
341;Belföldi váltókövetelések
|
||||
345;Belföldi váltókövetelések értékvesztése és annak visszaírása
|
||||
346;Külföldi váltókövetelések
|
||||
349;Külföldi váltókövetelések értékvesztése és annak visszaírása
|
||||
35;ADOTT ELŐLEGEK
|
||||
351;Immateriális javakra adott előlegek
|
||||
352;Beruházásokra adott előlegek
|
||||
353;Készletekre adott előlegek
|
||||
358;Jegyzett, be nem fiz. tőke részesedési visz. nem lévő vállalkozástól
|
||||
359;Adott előlegek értékvesztése és visszaírása
|
||||
3591;Immat.javakra adott előlegek értékvesztése és visszaírása
|
||||
3592;Beruházásra adott előleg értékvsztése és visszaírása
|
||||
3593;Készletekre adott előlegek értékvesztése és visszaírása
|
||||
36;EGYÉB KÖVETELÉSEK
|
||||
361;Munkavállalókkal szembeni követelések
|
||||
3611;Munkavállalóknak folyósított előlegek
|
||||
3612;Előírt tartozások
|
||||
3613;Egyéb elszámolások a munkavállalókkal
|
||||
362;Költségvetési kiutalási igények
|
||||
3621;Fogyasztói árkiegészítés
|
||||
3622;Termelési árkiegészítés
|
||||
3623;Importtámogatás
|
||||
3624;Exporttámogatás
|
||||
3625;Mezőgazdasági és élelmiszer-ipari exporttámogatás
|
||||
3626;Dotáció
|
||||
3627;Reorganizációs támogatás
|
||||
3628;Meliorációs és öntözésfejlesztési beruházási támogatás
|
||||
3629;Egyéb támogatás
|
||||
363;Költségvetési kiutalási igények teljesítése
|
||||
3631;Fogyasztói árkiegészítés teljesítése
|
||||
3632;Termelési árkiegészítés teljesítése
|
||||
3633;Importtámogatás teljesítése
|
||||
3634;Exporttámogatás teljesítése
|
||||
3635;Mezőgazdaásgi és élelmiszer-ipari exporttámogatás teljesítése
|
||||
3636;Dotáció teljesítése
|
||||
3637;Reorganizációs támogatás teljesítése
|
||||
3638;Meliorációs és öntözésfejlesztési beruházási támogatás teljesítése
|
||||
3639;Egyéb támogatás teljesítése
|
||||
364;Rövid lejáratú kölcsönadott pénzeszközök
|
||||
3641;Rövid lejáratú kölcsönök
|
||||
3642;Tartósan adott kölcsönökből átsorolt követelések
|
||||
365;Vásárolt és kapott követelések
|
||||
3651;Vásárolt belföldi követelések
|
||||
3652;Vásárolt külföldi útján átvett követelések
|
||||
3653;Követelés fejében, csere követelések
|
||||
3654;Nem pénzbeli hozzájárulásként kapott (átvett) követelések
|
||||
3655;Térítés nélkül átvett követelések
|
||||
3658;Egyéb címen kapott követelések
|
||||
366;Részesedésekkel, értékpapírokkal kapcsolatos követelések
|
||||
367;Határidős, opciós és swapügyletekkel kapcsolatos követelések
|
||||
368;Különféle egyéb követelések
|
||||
369;Egyéb követelések értékvesztése és annak visszaírása
|
||||
37;ÉRTÉKPAPÍROK
|
||||
371;Részesedés kapcsolt vállalkozásban
|
||||
3711;Részesedés anyavállalatban
|
||||
3712;Részesedés leányvállalatban
|
||||
3713;Részesedés közös vezetésű vállalkozásban
|
||||
3714;Részesedés társult vállalkozásban
|
||||
3719;Kapcsolt vállalk. lévő részesedések értékvesztése és annak visszaírása
|
||||
372;Egyéb részesedés
|
||||
3721;Eladásra vásárolt egyéb részesedések
|
||||
3729;Egyéb részesedések értékvesztése és annak visszaírása
|
||||
373;Saját részvények, saját üzletrészek
|
||||
3731;Visszavásárolt saját részvények, saját üzletrészek
|
||||
3739;Saját részvények, saját üzletrészek értékvesztése
|
||||
374;Forgatási célú hitelviszonyt megtestesítő értékpapírok
|
||||
3741;Eladásra vásárolt hitelviszonyt megtestesítő értékpapírok
|
||||
3742;Eladásra vásárolt diszkontértékpapírok
|
||||
3749;Forgatási célú hitelvisz. megtest. értékp. értékveszt. és visszaírása
|
||||
38;PÉNZESZKÖZÖK
|
||||
381;Pénztár
|
||||
3811;Pénztárszámla
|
||||
3812;Elektronikus pénzeszközök
|
||||
382;Valutapénztár
|
||||
3821;Valutapénztár-számla
|
||||
3829;Valutaárfolyam-különbözeti számla
|
||||
383;Csekkek
|
||||
384;Elszámolási betétszámla
|
||||
385;Elkülönített betétszámlák
|
||||
3851;Kamatozó betétszámlák
|
||||
3852;Elkülönített pénzeszközök kötvénykibocsátásból
|
||||
3853;Fejlesztési célra elkülönített pénzeszközök
|
||||
3854;Egyéb célra elkülönített pénzeszközök
|
||||
3855;Lakásépítési betétszámla
|
||||
3856;Elkülönített lakásépítési célú pénzeszközök
|
||||
3857;Lakásépítés úton lévő pénzeszközei
|
||||
386;Deviza-betétszámla
|
||||
3861;Deviza-betétszámla
|
||||
3862;Külföldön vezetett deviza-betétszámla
|
||||
3863;Deviza-törzsbetétszámla
|
||||
3868;Egyéb deviza-betétszámla
|
||||
3869;Devizabetétárfolyam-különbözeti számla
|
||||
389;Átvezetési számla
|
||||
39;AKTÍV IDŐBELI ELHATÁROLÁSOK
|
||||
391;Bevételek aktív időbeli elhatárolása
|
||||
3911;Diszkontértékpapírok időarányos kamatának elhatárolása
|
||||
3912;Értékpapír besz. kapcs. különbözetből az időarányos árfolyamny. elhat.
|
||||
3913;Árbevétel, egyéb kamatbevétel, egyéb bevétel elhatárolása
|
||||
392;Költségek, ráfordítások aktív időbeli elhatárolása
|
||||
3921;Értékpapír, részesedés besz. kapcs. biz. díj, vételi opció díj elhat.
|
||||
3922;Többletkötelezettségek elhatárolása
|
||||
3923;Költségek, egyéb fizetett kamatok, egyéb ráfordítások elhatárolása
|
||||
393;Halasztott ráfordítások
|
||||
3931;Tartozásátvállalások miatti ráfordítások elhatárolása
|
||||
3932;Devizakötelezettségek árfolyamveszteségének elhatárolása
|
||||
399;A követelésjellegű aktív időbeli elhat. értékveszt. és visszaírása
|
||||
3991;Bevételek aktív időbeli elhat-nak értékvesztése
|
||||
3992;Ktg-ek, ráf-k aktív időbeli elhatárolásának értékvesztése
|
||||
3993;Halasztott ráfordítások értékvesztése
|
||||
4;FORRÁSOK
|
||||
41;SAJÁT TŐKE
|
||||
411;Jegyzett tőke
|
||||
412;Tőketartalék
|
||||
413;Eredménytartalék
|
||||
414;Lekötött tartalék
|
||||
4141;Lekötött tartalék tőketartalékból
|
||||
4142;Lekötött tartalék eredménytartalékból
|
||||
4143;Lekötött tartalék pótbefizetésből
|
||||
417;Értékelési tartalék
|
||||
419;Mérleg szerinti eredmény
|
||||
42;CÉLTARTALÉKOK
|
||||
421;Céltartalék a várható kötelezettségekre
|
||||
422;Céltartalék a jövőbeni költségekre
|
||||
424;Árfolyamveszteség időbeli elhatárolása alapján képzett céltartalék
|
||||
429;Egyéb céltartalék
|
||||
43;HÁTRASOROLT KÖTELEZETTSÉGEK
|
||||
431;Hátrasorolt kötelezettségek kapcsolt vállalkozással szemben
|
||||
4311;Hátrasorolt kötelezettségek anyavállalattal szemben
|
||||
4312;Hátrasorolt kötelezettségek leányvállalattal szemben
|
||||
4313;Hátrasorolt kötelezettségek közös vezetésű vállalkozással szemben
|
||||
4314;Hátrasorolt kötelezettségek társult vállalkozással szemben
|
||||
432;Hátrasorolt kötelezetts. egyéb részes. viszonyban lévő vállalk.szemb.
|
||||
433;Hátrasorolt kötelezettségek egyéb gazdálkodóval szemben
|
||||
44;HOSSZÚ LEJÁRATÚ KÖTELEZETTSÉGEK
|
||||
441;Hosszú lejáratra kapott kölcsönök
|
||||
442;Átváltoztatható kötvények
|
||||
443;Tartozások kötvénykibocsátásból
|
||||
4431;Tartozások kötvénykibocsátásból forintban
|
||||
4432;Tartozások kötvénykibocsátásból devizában
|
||||
444;Beruházási és fejlesztési hitelek
|
||||
4441;Beruházási és fejlesztési hitelek forintban
|
||||
4442;Beruházási és fejlesztési hitelek devizában
|
||||
445;Egyéb hosszú lejáratú hitelek
|
||||
4451;Egyéb hosszú lejáratú hitelek forintban
|
||||
4452;Egyéb hosszú lejáratú hitelek devizában
|
||||
446;Tartós kötelezettségek kapcsolt vállalkozással szemben
|
||||
4461;Tartós kötelezettségek anyavállalattal szemben
|
||||
4462;Tartós kötelezettségek leányvállalattal szemben
|
||||
4463;Tartós kötelezettségek közös vezetésű vállalkozással szemben
|
||||
4464;Tartós kötelezettségek társult vállalkozással szemben
|
||||
447;Tartós kötelezettség egyéb részes. viszonyban lévő vállalk. szemben
|
||||
448;Pénzügyi lízing miatti kötelezettségek
|
||||
449;Egyéb hosszú lejáratú kötelezettségek
|
||||
4491;Kincstári vagyon részét képező eszközök kezelésbevét. kapcs. kötel.
|
||||
4492;Alapítókkal szemben hosszú lejáratú kötelezettségek
|
||||
4499;Hosszú lejáratú egyéb kötelezettségek
|
||||
45;RÖVID LEJÁRATÚ KÖTELEZETTSÉGEK
|
||||
451;Rövid lejáratú kölcsönök
|
||||
4511;Rövid lejáratú átváltoztatható kötvények
|
||||
4512;Egyéb rövid lejáratú kölcsönök
|
||||
452;Rövid lejáratú hitelek
|
||||
4521;Rövid lejáratú hitelek forintban
|
||||
4522;Rövid lejáratú hitelek devizában
|
||||
453;Vevőktől kapott előlegek
|
||||
454;Szállítók
|
||||
4541;Belföldi anyag- és áruszállítók
|
||||
4542;Külföldi anyag- és áruszállítók
|
||||
4543;Belföldi szolgáltatók
|
||||
4544;Külföldi szolgáltatók
|
||||
4549;Nem számlázott szállítások, szolgáltatások
|
||||
455;Beruházási szállítók
|
||||
4551;Belföldi beruházási szállítók
|
||||
4552;Külföldi beruházási szállítók
|
||||
4559;Nem számlázott beruházási szállítók
|
||||
456;Faktoringtartozások
|
||||
457;Váltótartozások
|
||||
458;Rövid lejáratú kötelezettségek kapcsolt vállalkozással szemben
|
||||
4581;Rövid lejáratú kötelezettségek anyavállalattal szemben
|
||||
4582;Rövid lejáratú kötelezettségek leányvállalattal szemben
|
||||
4583;Rövid lejáratú kötelezettségek közös vezetésű vállalkozással szemben
|
||||
4584;Rövid lejáratú kötelezettségek társult vállalkozással szemben
|
||||
459;Rövid lejáratú kötelez. egyéb részes. visz. lévő vállalk. szemben
|
||||
461;Társasági adó elszámolása
|
||||
462;Személyi jövedelemadó elszámolása
|
||||
463;Költségvetési befizetési kötelezettségek
|
||||
46310;Egészségügyi hozzájárulás
|
||||
46311;Külön fel nem sorolt befizetési kötelezettségek
|
||||
4632;Külker. áruforg. és különleges természeti tényezőkkel kapcs. árkül.
|
||||
4633;Kül. helyzet, természeti, termelési, keresk. szárm. jöv. befiz. köt.
|
||||
4634;Fogyasztási adó
|
||||
4635;Rehabilitációs foglalkoztatási hozzájárulás
|
||||
4636;Sertésállomány-mentesítési hozzájárulás
|
||||
4637;Jövedéki adó
|
||||
4638;Munkaadói járulék
|
||||
4639;Munkavállalói járulék
|
||||
464;Költségvetési befizetési kötelezettségek teljesítése
|
||||
46410;Egészségügyi hozzájárulás teljesítése
|
||||
46411;Külön fel nem sorolt befizetési kötelezettségek teljesítése
|
||||
4642;Külker. áruforg., különleges term. tényezőkkel kapcs. árkül. telj.
|
||||
4643;Kül. Helyzet, természeti, termelési, keresk. szárm. jöv. befiz. köt.
|
||||
4644;Fogyasztási adó teljesítése
|
||||
4645;Rehabilitációs foglalkoztatási hozzájárulás teljesítése
|
||||
4646;Sertésállomány-mentesítési hozzájárulás teljesítése
|
||||
4647;Jövedéki adó teljesítése
|
||||
4648;Munkaadói járulék teljesítése
|
||||
4649;Munkavállalói járulék teljesítése
|
||||
465;Vám- és pénzügyőrség elszámolási számla
|
||||
4651;Vámköltségek és egyéb vámterhek elszámolási számla
|
||||
4652;Importbeszerzés után fizetendő általánosforgalmiadó-elszámolási számla
|
||||
4653;Vám- és pénzügyőrséggel kapcsolatos egyéb elszámolások
|
||||
466;Előzetesen felszámított általános forgalmi adó
|
||||
467;Fizetendő általános forgalmi adó
|
||||
468;Általánosforgalmiadó-elszámolási számla
|
||||
469;Helyi adók elszámolási számla
|
||||
4691;Építményadó-elszámolási számla
|
||||
4692;Telekadó-elszámolási számla
|
||||
4693;Kommunálisadó-elszámolási számla
|
||||
4694;Idegenforgalmiadó-elszámolási számla
|
||||
4695;Helyi iparűzésiadó-elszámolási számla
|
||||
4696;Gépjárműadó-elszámolási számla
|
||||
4697;Külföldi gépjárműadó-elszámolási számla
|
||||
4699;Egyéb helyiadó-elszámolási számla
|
||||
471;Jövedelemelszámolási számla
|
||||
4711;Keresetelszámolási számla
|
||||
4712;Társadalombiztosítási ellátás
|
||||
4713;Egyéb kifizetések elszámolása
|
||||
472;Fel nem vett járandóságok
|
||||
473;Társadalombiztosítási kötelezettség
|
||||
474;Elkülönített alapokkal kapcsolatos fizetési kötelezettségek
|
||||
4742;Szakképzési hozzájárulás
|
||||
4743;Elszámolásra kapott pénzeszközök
|
||||
4744;Környezetvédelmi termékdíj-fizetési kötelezettség
|
||||
4749;Egyéb befizetések az elkülönített alapokba
|
||||
475;Vagyonkezelő szervezetekkel szembeni kötelezettségek
|
||||
476;Rövid lejáratú egyéb kötelezettségek munkavállalókkal, tagokkal szemb.
|
||||
477;Határidős, opciós és swapügyletekkel kapcsolatos kötelezettségek
|
||||
478;Részesedésekkel, értékpapírokkal kapcsolatos kötelezettségek
|
||||
479;Különféle rövid lejáratú egyéb kötelezettségek
|
||||
4791;Átvállalt kötelezettségek
|
||||
4792;Alapítókkal szembeni rövid lejáratú kötelezettségek
|
||||
4793;Beszerzési árba beletartozó előírt egyéb kötelezettségek
|
||||
4799;Rövid lejáratú különféle egyéb kötelezettségek
|
||||
48;PASSZÍV IDŐBELI ELHATÁROLÁSOK
|
||||
481;Bevételek passzív időbeli elhatárolása
|
||||
4811;Befolyt, elszámolt bevételek elhatárolása
|
||||
4812;Költségek ellentételezésére kapott támogatások elhatárolása
|
||||
4813;Devizaeszk., devizaköt. mérleg-ford.nap értékel. árfolyamnyer. elhat.
|
||||
482;Költségek, ráfordítások passzív időbeli elhatárolása
|
||||
4821;Mérlegfordulónap előtti időszakot terhelő költségek, ráford. elhat.
|
||||
4822;Értékpapír besz. kapcs. különbözetből időarányos árfolyamnyer. elhat.
|
||||
4823;Fizetendő kamatok elhatárolása
|
||||
483;Halasztott bevételek
|
||||
4831;Elengedett kötelezettségek miatti elhatárolás
|
||||
4832;Fejlesztési célra kapott támogatások elhatárolása
|
||||
4833;Térítés nélkül átvett (ajándékba kapott, fellelt) eszk. érték elhat.
|
||||
4834;Negatív üzleti vagy cégérték elhatárolása
|
||||
49;ÉVI MÉRLEGSZÁMLÁK
|
||||
491;Nyitómérlegszámla
|
||||
492;Zárómérlegszámla
|
||||
493;Adózott eredményelszámolása
|
||||
5;KÖLTSÉGNEMEK
|
||||
51;ANYAGKÖLTSÉG
|
||||
511;Vásárolt anyagok költségei
|
||||
512;Egy éven belül elhasználódó anyagi eszközök költségei
|
||||
513;Egyéb anyagköltség
|
||||
519;Anyagköltség-megtérülés
|
||||
52;IGÉNYBE VETT SZOLGÁLTATÁSOK KÖLTSÉGEI
|
||||
521;Szállítás-rakodás, raktározás költségei
|
||||
522;Bérleti díjak
|
||||
523;Karbantartási költségek
|
||||
524;Hirdetés-, reklám-, propagandaköltségek
|
||||
525;Oktatás és továbbképzés költségei
|
||||
526;Utazási és kiküldetési költségek (napidíj nélkül)
|
||||
527;Könyvviteli szolgáltatás költségei
|
||||
528;Bérmunka költségei
|
||||
529;Egyéb igénybe vett szolgáltatások költségei
|
||||
53;EGYÉB SZOLGÁLTATÁSOK KÖLTSÉGEI
|
||||
531;Hatósági igazgatási, szolgáltatási díjak, illetékek
|
||||
532;Pénzügyi, befektetési szolgáltatási díjak
|
||||
533;Biztosítási díj
|
||||
534;Költségként elszámolandó adók, járulékok, termékdíj
|
||||
539;Különféle egyéb költségek
|
||||
54;BÉRKÖLTSÉG
|
||||
541;Bérköltség
|
||||
55;SZEMÉLYI JELLEGŰ EGYÉB KIFIZETÉSEK
|
||||
551;Munkavállalóknak, tagoknak fizetett személyi jellegű kifizetések
|
||||
552;Jóléti és kulturális költségek
|
||||
559;Egyéb személyi jellegű kifizetések
|
||||
56;BÉRJÁRULÉKOK
|
||||
561;Nyugdíj-biztosítási és egészségbiztosítási járulék
|
||||
562;Egészségügyi hozzájárulás
|
||||
563;Munkaadói járulék
|
||||
564;Szakképzési hozzájárulás
|
||||
569;Egyéb bérjárulék
|
||||
57;ÉRTÉKCSÖKKENÉSI LEÍRÁS
|
||||
571;Terv szerinti értékcsökkenési leírás
|
||||
572;Használatbavételkor egy összegben elszámolt értékcsökkenési leírás
|
||||
58;AKTIVÁLT SAJÁT TELJESÍTMÉNYEK ÉRTÉKE
|
||||
581;Saját termelésű készletek állományváltozása
|
||||
582;Saját előállítású eszközök aktivált értéke
|
||||
59;KÖLTSÉGNEM-ÁTVEZETÉSI SZÁMLA
|
||||
6;KÖLTSÉGHELYEK, ÁLTALÁNOS KÖLTSÉGEK
|
||||
61;JAVÍTÓ-KARBANTARTÓ ÜZEMEK KÖLTSÉGEI
|
||||
62;SZOLGÁLTATÁST VÉGZŐ ÜZEMEK (EGYSÉGEK) KÖLTSÉGEI
|
||||
63;GÉPKÖLTSÉG
|
||||
64;ÜZEMI IRÁNYÍTÁS ÁLTALÁNOS KÖLTSÉGEI
|
||||
66;KÖZPONTI IRÁNYÍTÁS ÁLTALÁNOS KÖLTSÉGEI
|
||||
67;ÉRTÉKESÍTÉSI, FORGALMAZÁSI KÖLTSÉGEK
|
||||
68;ELKÜLÖNÍTETT EGYÉB ÁLTALÁNOS KÖLTSÉGEK
|
||||
681;Alapítás-átszervezés költségei
|
||||
682;Alap- és alkalmazott kutatás saját költségei
|
||||
683;Vállalkozásba adott alap- és alkalmazott kutatás költségei
|
||||
684;Kísérleti fejlesztés saját költségei
|
||||
685;Vállalkozásba adott kísérleti fejlesztés költségei
|
||||
686;Kutatás, kísérleti fejlesztés általános és közvetett költségei
|
||||
687;Kutatás, kísérleti fejlesztés elszámolt értékcsökkenése
|
||||
688;Garanciális javítási költségek
|
||||
689;Egyéb elkülönített költségek
|
||||
69;KÖLTSÉGHELYEK KÖLTSÉGEINEK ÁTVEZETÉSE
|
||||
691;Költséghelyek költségeinek átvezetése
|
||||
7;TEVÉKENYSÉGEK KÖLTSÉGEI
|
||||
75;SZOLGÁLTATÁS KÖLTSÉGEI
|
||||
76;KÖLTSÉGHELYEK TERMELÉSI KÖLTSÉGEI
|
||||
77;FORGALOMBA HOZATAL KÖLTSÉGEI
|
||||
79;TEVÉKENYSÉGEK KÖLTSÉGEINEK ELSZÁMOLÁSA
|
||||
791;Saját termelésű készletek elszámolása
|
||||
792;Saját előállítású eszközök elszámolása
|
||||
793;Értékesített saját termelésű készletek elszámolása
|
||||
794;Saját termelésű készletek felhasználásának elszámolása
|
||||
795;Közvetlenül értékesítésként elszámolt tev. közv. ktg. elszámolása
|
||||
8;ÉRTÉKESÍTÉS ELSZÁMOLT ÖNKÖLTSÉGE ÉS RÁFORDÍTÁSOK
|
||||
81;ANYAGJELLEGŰ RÁFORDÍTÁSOK
|
||||
811;Anyagköltség
|
||||
812;Igénybe vett szolgáltatások értéke
|
||||
813;Egyéb szolgáltatások értéke
|
||||
814;Eladott áruk beszerzési értéke
|
||||
815;Eladott (közvetített) szolgáltatások értéke
|
||||
82;SZEMÉLYI JELLEGŰ RÁFORDÍTÁSOK
|
||||
821;Bérköltség
|
||||
822;Személyi jellegű egyéb kifizetések
|
||||
823;Bérjárulékok
|
||||
83;ÉRTÉKCSÖKKENÉSI LEÍRÁS
|
||||
85;ÉRTÉKESÍTÉS KÖZVETETT KÖLTSÉGEI
|
||||
851;Értékesítési, forgalmazási költségek
|
||||
852;Igazgatási költségek
|
||||
853;Egyéb általános költségek
|
||||
86;EGYÉB RÁFORDÍTÁSOK
|
||||
861;Értékesített immateriális javak, tárgyi eszközök könyv szerinti értéke
|
||||
862;Értékesített, átruházott (engedményezett) követelések könyv sz. értéke
|
||||
863;Mérlegfordulónap előtt beköv. események üzleti évhez kapcs. ráford.
|
||||
8631;Káreseménnyel kapcsolatos fizetések, fizetendő összegek
|
||||
8632;Bírságok, kötbérek, fekbérek, késedelmi kamatok, kártérítések
|
||||
8633;Külföldön, külföldi telephelyen fizetett, fizetendő nyereségadó
|
||||
8634;Költségek (ráfordítások) ellentételezésére adott támogatás, juttatás
|
||||
8635;Termékpálya-szabályozáshoz kapcsolódó fizetések
|
||||
864;Utólag adott – közvetve kapcsolódó – pénzügyileg rendezett engedmény
|
||||
865;Céltartalék képzése
|
||||
8651;Céltartalékképzés a várható kötelezettségekre
|
||||
8652;Céltartalékképzés a jövőbeni költségekre
|
||||
8653;Céltartalékképzés egyéb címen
|
||||
866;Értékvesztés, terven felüli értékcsökkenés
|
||||
8661;Készletek elszámolt értékvesztése
|
||||
8662;Követelések elszámolt értékvesztése
|
||||
8663;Immateriális javak elszámolt terven felüli értékcsökkenése
|
||||
8664;Tárgyi eszközök elszámolt terven felüli értékcsökkenése
|
||||
867;Adók, illetékek, hozzájárulások
|
||||
8671;Költségvetéssel elszámolt adók, illetékek, hozzájárulások
|
||||
8672;Önkormányzatokkal elszámolt adók, illetékek, hozzájárulások
|
||||
8673;Elkülönített alapokkal elszámolt adók, illetékek, hozzájárulások
|
||||
8674;Ráfordításként elszámolt fogyasztási adó, jövedéki adó
|
||||
869;Különféle egyéb ráfordítások
|
||||
8691;Behajthatatlan követelés leírt összege
|
||||
8692;Hiányzó, kivez. immat. javak, tárgyi eszk. könyv szerinti értéke
|
||||
8693;Hiányzó, kivez. immat. javak, tárgyi eszk. könyv szerinti értéke
|
||||
8694;Kereskedelmi áruk veszteségjellegű leltárértékelési különbözete
|
||||
87;PÉNZÜGYI MŰVELETEK RÁFORDÍTÁSAI
|
||||
871;Befektetett pénzügyi eszközök árfolyamvesztesége
|
||||
8711;Kapcsolt vállalk. eladott (beváltott) értékpapírok árfolyamvesztesége
|
||||
8712;Egyéb eladott (beváltott) értékpapírok árfolyamvesztesége
|
||||
8713;Kapcsolt vállalkozásnak értékesített részesedés árfolyamvesztesége
|
||||
8714;Egyéb értékesített részesedés árfolyamvesztesége
|
||||
872;Fizetendő kamatok és kamatjellegű ráfordítások
|
||||
8721;Kölcsönök, hitelek kapcsolt vállalkozásnak fizetendő kamata
|
||||
8722;Kölcsönök, hitelek egyéb fizetendő kamata
|
||||
8723;Értékpapírok után kapcsolt vállalkozásnak fizetendő kamat
|
||||
8724;Értékpapírok után egyéb fizetendő kamat
|
||||
8725;Hátrasorolt kötelezettségek után kapcsolt vállalk. fizetendő kamat
|
||||
8726;Hátrasorolt kötelezettségek után egyéb fizetendő kamat
|
||||
8727;Befektetési jegyek eladásakor, beváltásakor realizált veszteség
|
||||
873;Fizetendő kamatok és kamatjellegű ráfordítások
|
||||
8731;Kapcsolt vállalkozásnál valódi penziós ügyletek kamatráfordítása
|
||||
8732;Egyéb valódi penziós ügyletek kamatráfordítása
|
||||
8733;Kapcsolt vállalkozásnál kamatfedezeti ügyletek vesztesége
|
||||
8734;Egyéb kamatfedezeti ügyletek vesztesége
|
||||
874;Részesedések, értékpapírok, bankbetétek értékvesztése
|
||||
8741;Tulajdoni részesedést jelentő befektetések értékvesztése
|
||||
8742;Hitelviszonyt megtestesítő értékpapírok értékvesztése
|
||||
8743;Tartós bankbetétek értékvesztése
|
||||
8746;Tulajdoni részesedést jelentő befektetések visszaírt értékvesztése
|
||||
8747;Hitelviszonyt megtestesítő értékpapírok visszaírt értékvesztése
|
||||
8748;Tartós bankbetétek visszaírt értékvesztése
|
||||
875;Forgóeszközök között kimutatott
|
||||
8751;Tulajdoni részesedést jelentő befektetés értékesítés árfolyamveszt.
|
||||
8752;Hitelviszonyt megtest. értékp. értékesítés, bevált. árfolyamveszt.
|
||||
8753;Diszkontértékpapír értékesítésének, beváltásának árfolyamvesztesége
|
||||
8754;Hitelviszonyt megtest. értékp. törlesztésekor real. árfolyamveszt.
|
||||
876;Átváltáskori, értékeléskori árfolyamveszteség
|
||||
8761;Deviza- és valutkészletek forintra átváltásának árfolyamvesztesége
|
||||
8762;Külf. pénzértékre szóló eszk., kötel. pénzügy. rend. árf. veszt.
|
||||
8763;Külf. pénzértékre szóló eszk., kötel. mérleg-fordulónapi árf. veszt.
|
||||
877;Egyéb árfolyamveszteségek, opciós díjak
|
||||
8771;Névérték f. vás. értékp. bek. érték és névérték különb. elhat. veszt.
|
||||
8772;Nem fedezeti célú elszámolási ügyletek elszámolt vesztesége
|
||||
8773;Nem kamatfedezeti célú, egyéb fedezeti ügyletek elszámolt vesztesége
|
||||
8774;Vásárolt eladási opcióért fizetett opciós díj
|
||||
8775;Le nem hívott vételi opcióért fizetett opciós díj
|
||||
8776;Bekerül. értékben figyelembe nem vett lehívott vételi opció opciós díj
|
||||
878;Vásárolt követelésekkel kapcsolatos ráfordítások
|
||||
8781;Behajthatatlan vásárolt követelés leírt összege
|
||||
8782;Vásárolt követelés be nem folyt összege
|
||||
8783;Vásárolt követelés értékesítésének vesztesége
|
||||
879;Egyéb pénzügyi ráfordítások
|
||||
8791;Pénzügyi rendezéshez kapcsolódó adott árengedmény
|
||||
8792;Közös üzemeltetés megtérítendő közös költsége
|
||||
8793;Közös üzemeltetés átadott nyeresége
|
||||
8794;Egyesülés működési költségeinek megtérített összege
|
||||
88;RENDKÍVÜLI RÁFORDÍTÁSOK
|
||||
881;Társaságba bevitt eszközök nyilvántartás szerinti értéke
|
||||
882;Jogelőd gazdasági társaságban lévő megszűnt részesedés nyilv. értéke
|
||||
883;Megszűnt részes. ellenében kapott eszk., átvett köt. értékkülönb.
|
||||
884;Tőkekiv. történő tőkeleszállítás bevont részes. nyilv. szerinti értéke
|
||||
885;Átalakul. az átalakult társaságban lévő megszűnt részes. nyilv. érték
|
||||
886;Beolvad. a jogelőd gazd. társ. lévő megszűnt részes. nyilv. érték
|
||||
887;Visszavásárolt saját részvény, saját üzletrész bevon. a nyilv. érték
|
||||
888;Tartozásátvállalás szerződés szerinti összege
|
||||
889;Egyéb vagyoncsökkenéssel járó rendkívüli ráfordítások
|
||||
8891;Térítés nélkül átadott eszközök nyilvántartás szerinti értéke
|
||||
8892;Térítés nélkül nyújtott szolgáltatások bekerülési értéke
|
||||
8893;Elengedett követelés könyv szerinti értéke
|
||||
8894;Véglegesen fejlesztési célra adott támogatás
|
||||
8895;Véglegesen nem fejlesztési célra átadott pénzeszközök
|
||||
89;NYERESÉGET TERHELŐ ADÓK
|
||||
891;Társasági adó
|
||||
9;ÉRTÉKESÍTÉS ÁRBEVÉTELE ÉS BEVÉTELEK
|
||||
91;BELFÖLDI ÉRTÉKESÍTÉS ÁRBEVÉTELE
|
||||
93;EXPORTÉRTÉKESÍTÉS ÁRBEVÉTELE
|
||||
949;Export árbevételt csökkentő külföldi szállítási-rakodási költség
|
||||
96;EGYÉB BEVÉTELEK
|
||||
961;Értékesített immateriális javak, tárgyi eszközök bevétele
|
||||
962;Értékesített, átruházott (engedményezett) követelések elismert értéke
|
||||
963;A mérlegkészítés időpontjáig pénzügyileg rendezett egyéb bevételek
|
||||
9631;Káreseményekkel kapcsolatosan kapott bevételek
|
||||
9632;Kapott bírságok, kötbérek, fekbérek, késedelmi kamatok, kártérítések
|
||||
9633;Behajthatatlannak minősített és leírt követelésekre kapott összegek
|
||||
9634;Költségek, ráfordítások ellentételezésére kapott támogatás, juttatás
|
||||
9635;Termékpálya-szabályozáshoz kapcsolódóan kapott összegek
|
||||
964;Utólag kapott – közvetve kapcsolódó – pénzügyileg rendezett engedmény
|
||||
965;Céltartalék felhasználása (csökkenése, megszűnése)
|
||||
9651;Várható kötelezettségekre képzett céltartalék felhasználása
|
||||
9652;Jövőbeni költségekre képzett céltartalék felhasználása
|
||||
9653;Egyéb címen képzett céltartalék felhasználása
|
||||
966;Visszaírt értékvesztés, terven felüli értékcsökkenés
|
||||
9661;Készletek visszaírt értékvesztése
|
||||
9662;Követelések visszaírt értékvesztése
|
||||
9663;Immateriális javak visszaírt terven felüli értékcsökkenése
|
||||
9664;Tárgyi eszközök visszaírt terven felüli értékcsökkenése
|
||||
967;Visszafizetési kötelezettség nélkül kapott támogatás, juttatás
|
||||
9671;Költségvetésből kapott támogatás, juttatás
|
||||
9672;Önkormányzattól kapott támogatás, juttatás
|
||||
9673;Elkülönített alapoktól kapott támogatás, juttatás
|
||||
968;Biztosító által visszaigazolt kártérítés összege
|
||||
969;Különféle egyéb bevételek
|
||||
9694;Kereskedelmi áruk nyereségjellegű leltárértékelési különbözete
|
||||
9695;Negatív üzleti vagy cégértékből az üzleti évben leírt összeg
|
||||
97;PÉNZÜGYI MŰVELETEK BEVÉTELEI
|
||||
971;Kapott (járó) osztalék és részesedés
|
||||
9711;Kapcsolt vállalkozástól kapott (járó) osztalék és részesedés
|
||||
9712;Egyéb kapott (járó) osztalék és részesedés
|
||||
972;Részesedések értékesítésének árfolyamnyeresége
|
||||
9721;Kapcsolt vállalkozásnak értékesített részesedés árfolyamnyeresége
|
||||
9722;Egyéb értékesített részesedés árfolyamnyeresége
|
||||
973;Befektetett pénzügyi eszközök kamatai, árfolyamnyeresége
|
||||
9731;Tartósan adott kölcsön (bankbetét) kapott (járó) kamata
|
||||
9732;Kamatozó értékpapír kapott (járó) kamata
|
||||
9733;Kamatozó értékpapír értékesítésekor az eladási árban lévő kamat
|
||||
9734;Kamatozó értékpapír vételárában lévő kamat (csökkentő tétel)
|
||||
9735;Befekt. jegyek kapott hozama, eladásakor, bevált. realizált nyereség
|
||||
9736;Lízingdíjban lévő kapott (járó) kamat
|
||||
9737;Diszkontértékpapírnál időarányosan elszámolt összeg
|
||||
9738;Eladott (beváltott) értékpapír árfolyamnyeresége
|
||||
974;Egyéb kapott (járó) kamatok és kamatjellegű bevételek
|
||||
9741;Forgóeszk. között kimutatott kölcsön, váltókövetel., pénzeszköz kamata
|
||||
9742;Forgóeszközök között kimutatott kamatozó értékpapír kamata
|
||||
9743;Kamatozó értékpapír vételárában lévő kamat (csökkentő tétel)
|
||||
9744;Forgóeszk. között kimutatott diszkontértékp. időarányos elszám. össz.
|
||||
9745;Forgóeszk. között kimut. értékp. értékesít. az eladási árban kamat
|
||||
9746;Valódi penziós ügyletek kamatbevétele
|
||||
9747;Kamatfedzeti ügyletek nyeresége
|
||||
975;Pénzügyi műveletek egyéb bevételei
|
||||
9751;Tulajdoni részesedést jelentő befektetés értékesítésének árfolyamnyer.
|
||||
9752;Hitelviszonyt megtestesítő értékpapír értékesít., bevált. árfolyamny.
|
||||
9753;Diszkontértékpapír értékesítésének, beváltásának árfolyamnyeresége
|
||||
9754;Hitelviszonyt megtestesítő értékpapír törleszt. realizált árfolyamny.
|
||||
976;Átváltási, értékeléskori árfolyamnyereség
|
||||
9761;Deviza- és valutakészletek forintra átváltásának árfolyamnyeresége
|
||||
9762;Külföldi pénzértékre szóló eszközök és kötelez. pü. rend. árfolyamny.
|
||||
9763;Külf. pénzért. szóló eszk., köt. mérleg-fordulónapi összev. árf.nyer.
|
||||
977;Egyéb árfolyamnyereségek, opciós díjbevételek
|
||||
9771;Névért. alatt vás. értékp. bek. érték és névérték között elhat. nyer.
|
||||
9772;Nem fedezeti célú elszámolási ügyletek elszámolt nyeresége
|
||||
9773;Nem kamatfedezeti célú, egyéb fedezeti ügyletek elszámolt nyeresége
|
||||
9774;Kiírt opcióért kapott opciós díj
|
||||
978;Vásárolt követelésekkel kapcsolatos bevételek
|
||||
9781;Könyv szerinti értéket meghaladó összegben befolyt bevétel
|
||||
9782;Vásárolt követelés értékesítésének nyeresége
|
||||
979;Egyéb pénzügyi bevételek
|
||||
9791;Pénzügyi rendezéshez kapcsolódó kapott árengedmény
|
||||
9792;Közös üzemeltetés költségeinek átterhelt összege
|
||||
9793;Közös üzemeltetés átvett nyeresége
|
||||
9794;Egyesülés működési költségeinek átterhelt összege
|
||||
98;RENDKÍVÜLI BEVÉTELEK
|
||||
981;Társaságba bevitt eszközök létesítő okiratban meghatározott értéke
|
||||
983;Megszűnt részes. ellenében kapott eszk., átvett köt. értékkülönbözete
|
||||
984;Tőkekiv. tőkeleszáll. bev. részes. névérték fejében átvett eszk. érték
|
||||
985;Átalakuláskor a megszűnt részes. jutó-végl.vm.sz.- saját tőke összege
|
||||
986;Beolvadáskor a megszűnt részes. jutó –végl.vm.sz.– saját tőke összege
|
||||
987;Visszavásárolt saját részvény, saját üzletrész bevonásakor a névérték
|
||||
988;Tartozásátvállalás során –ellentételezés nélkül– átváll. köt. összege
|
||||
989;Egyéb vagyonnövekedéssel járó rendkívüli bevételek
|
||||
9891;Térítés nélkül átvett eszközök forgalmi, piaci értéke
|
||||
9892;Ajándékként, hagyatékként kapott, fellelt eszközök piaci értéke
|
||||
9893;Hitelező által elengedett kötelezettség értéke
|
||||
9894;Véglegesen fejlesztési célra kapott támogatás
|
||||
9895;Véglegesen átvett (kapott) nem fejlesztési célú pénzeszközök
|
||||
9896;Elévült kötelezettség összege
|
||||
|
@@ -0,0 +1,242 @@
|
||||
PF;Francia Polinézia;FRENCH POLYNESIA
|
||||
LC;Saint Lucia;SAINT LUCIA
|
||||
GD;Grenada;GRENADA
|
||||
MX;Mexikó;MEXICO
|
||||
NL;Hollandia;NETHERLANDS
|
||||
TC;Turks- és Caicos-szigetek;TURKS AND CAICOS ISLANDS
|
||||
IN;India;INDIA
|
||||
IR;Irán;IRAN (ISLAMIC REPUBLIC OF)
|
||||
TV;Tuvalu;TUVALU
|
||||
FJ;Fidzsi-szigetek;FIJI
|
||||
ES;Spanyolország;SPAIN
|
||||
MH;Marshall-szigetek;MARSHALL ISLANDS
|
||||
RS;Szerbia;SERBIA
|
||||
KR;Korea;KOREA, REPUBLIC OF
|
||||
WF;Wallis és Futuna;WALLIS AND FUTUNA ISLANDS
|
||||
CN;Kína;CHINA
|
||||
KZ;Kazahsztán;KAZAKHSTAN
|
||||
CK;Cook-szigetek;COOK ISLANDS
|
||||
TD;Csád;CHAD
|
||||
KP;Észak-Korea;KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF
|
||||
CZ;Cseh Köztársaság;CZECH REPUBLIC
|
||||
KE;Kenya;KENYA
|
||||
MP;Észak-Mariana-szigetek;NORTHERN MARIANA ISLANDS
|
||||
UA;Ukrajna;UKRAINE
|
||||
ME;Montenegro;MONTENEGRO
|
||||
TG;Togo;TOGO
|
||||
NO;Norvégia;NORWAY
|
||||
TP;Timor-Leste (Kelet-Timor);EAST TIMOR
|
||||
EC;Ecuador;ECUADOR
|
||||
GT;Guatemala;GUATEMALA
|
||||
RO;Románia;ROMANIA
|
||||
ST;Sao Tome és Príncipe;SAO TOME AND PRINCIPE
|
||||
MC;Monaco;MONACO
|
||||
CD;Kongói Demokratikus Köztársaság;CONGO, Democratic Republic of (was Zaire)
|
||||
MW;Malawi;MALAWI
|
||||
TT;Trinidad és Tobago;TRINIDAD AND TOBAGO
|
||||
SV;El Salvador;EL SALVADOR
|
||||
AR;Argentína;ARGENTINA
|
||||
ZA;Dél-Afrika;SOUTH AFRICA
|
||||
KG;Kirgizisztán;KYRGYZSTAN
|
||||
TK;Tokelau;TOKELAU
|
||||
HR;Horvátország;CROATIA (local name: Hrvatska)
|
||||
GW;Bissau-Guinea;GUINEA-BISSAU
|
||||
LV;Lettország;LATVIA
|
||||
LT;Litvánia;LITHUANIA
|
||||
ET;Etiópia;ETHIOPIA
|
||||
LS;Lesotho;LESOTHO
|
||||
FK;Falkland-szigetek (Malvin-szigetek);FALKLAND ISLANDS (MALVINAS)
|
||||
IM;Man-sziget;MAN
|
||||
CH;Svájc;SWITZERLAND
|
||||
LU;Luxemburg;LUXEMBOURG
|
||||
EE;Észtország;ESTONIA
|
||||
HK;Hongkong (k. k. t.);HONG KONG
|
||||
NG;Nigéria;NIGERIA
|
||||
AI;Anguilla;ANGUILLA
|
||||
PT;Portugália;PORTUGAL
|
||||
CU;Kuba;CUBA
|
||||
PL;Lengyelország;POLAND
|
||||
SY;Szíria;SYRIAN ARAB REPUBLIC
|
||||
MQ;Martinique;MARTINIQUE
|
||||
VC;Saint Vincent és a Grenadine-szigetek;SAINT VINCENT AND THE GRENADINES
|
||||
BO;Bolívia;BOLIVIA
|
||||
GE;Grúzia;GEORGIA
|
||||
IQ;Irak;IRAQ
|
||||
BE;Belgium;BELGIUM
|
||||
DM;Dominika;DOMINICA
|
||||
BH;Bahrein;BAHRAIN
|
||||
DE;Németország;GERMANY
|
||||
YT;Mayotte;MAYOTTE
|
||||
KI;Kiribati;KIRIBATI
|
||||
KW;Kuvait;KUWAIT
|
||||
GG;Guernsey;GUERNSEY
|
||||
NZ;Új-Zéland;NEW ZEALAND
|
||||
TR;Törökország;TURKEY
|
||||
AT;Ausztria;AUSTRIA
|
||||
PM;Saint Pierre és Miquelon;SAINT PIERRE AND MIQUELON
|
||||
VU;Vanuatu;VANUATU
|
||||
EG;Egyiptom;EGYPT
|
||||
FM;Mikronézia;MICRONESIA, FEDERATED STATES OF
|
||||
GH;Ghána;GHANA
|
||||
HT;Haiti;HAITI
|
||||
GA;Gabon;GABON
|
||||
GM;Gambia;GAMBIA
|
||||
BS;Bahama-szigetek;BAHAMAS
|
||||
GP;Guadeloupe;GUADELOUPE
|
||||
LB;Libanon;LEBANON
|
||||
BD;Banglades;BANGLADESH
|
||||
UG;Uganda;UGANDA
|
||||
KM;Comore-szigetek;COMOROS
|
||||
MR;Mauritánia;MAURITANIA
|
||||
YE;Jemen;YEMEN
|
||||
PS;Palesztina;PALESTINIAN TERRITORY, Occupied
|
||||
TH;Thaiföld;THAILAND
|
||||
SO;Szomália;SOMALIA
|
||||
LA;Laosz;LAO PEOPLE'S DEMOCRATIC REPUBLIC
|
||||
ID;Indonézia;INDONESIA
|
||||
MG;Madagaszkár;MADAGASCAR
|
||||
US;Egyesült Államok;UNITED STATES
|
||||
PG;Pápua Új-Guinea;PAPUA NEW GUINEA
|
||||
GL;Grönland;GREENLAND
|
||||
AQ;Antarktisz;ANTARCTICA
|
||||
DZ;Algéria;ALGERIA
|
||||
AE;Egyesült Arab Emírségek;UNITED ARAB EMIRATES
|
||||
BM;Bermuda;BERMUDA
|
||||
SI;Szlovénia;SLOVENIA
|
||||
MA;Marokkó;MOROCCO
|
||||
VE;Venezuela;VENEZUELA
|
||||
SG;Szingapúr;SINGAPORE
|
||||
UZ;Üzbegisztán;UZBEKISTAN
|
||||
PN;Pitcairn-szigetek;PITCAIRN
|
||||
AL;Albánia;ALBANIA
|
||||
ML;Mali;MALI
|
||||
GR;Görögország;GREECE
|
||||
FR;Franciaország;FRANCE
|
||||
DK;Dánia;DENMARK
|
||||
GQ;Egyenlítői Guinea;EQUATORIAL GUINEA
|
||||
GB;Nagy- Britannia;GREAT BRITAIN
|
||||
RE;Réunion;REUNION
|
||||
SZ;Szváziföld;SWAZILAND
|
||||
SD;Szudán;SUDAN
|
||||
KY;Kajmán-szigetek;CAYMAN ISLANDS
|
||||
CF;Közép-afrikai Köztársaság;CENTRAL AFRICAN REPUBLIC
|
||||
MV;Maldív-szigetek;MALDIVES
|
||||
SL;Sierra Leone;SIERRA LEONE
|
||||
RU;Oroszország;RUSSIAN FEDERATION
|
||||
BB;Barbados;BARBADOS
|
||||
AD;Andorra;ANDORRA
|
||||
RW;Ruanda;RWANDA
|
||||
GY;Guyana;GUYANA
|
||||
ZM;Zambia;ZAMBIA
|
||||
SE;Svédország;SWEDEN
|
||||
DJ;Dzsibuti;DJIBOUTI
|
||||
GN;Guinea;GUINEA
|
||||
SM;San Marino;SAN MARINO
|
||||
DO;Dominikai Köztársaság;DOMINICAN REPUBLIC
|
||||
BI;Burundi;BURUNDI
|
||||
MT;Málta;MALTA
|
||||
UY;Uruguay;URUGUAY
|
||||
VA;Vatikáni városállam;VATICAN CITY STATE (HOLY SEE)
|
||||
MZ;Mozambik;MOZAMBIQUE
|
||||
SA;Szaúd-Arábia;SAUDI ARABIA
|
||||
KH;Kambodzsa;CAMBODIA
|
||||
NA;Namíbia;NAMIBIA
|
||||
SC;Seychelle-szigetek;SEYCHELLES
|
||||
CG;Kongó;CONGO, Republic of
|
||||
CC;Kókusz-szigetek (Keeling-szigetek);COCOS (KEELING) ISLANDS
|
||||
BY;Belarusz;BELARUS
|
||||
NI;Nicaragua;NICARAGUA
|
||||
JM;Jamaica;JAMAICA
|
||||
SN;Szenegál;SENEGAL
|
||||
AW;Aruba;ARUBA
|
||||
VG;Brit Virgin-szigetek;VIRGIN ISLANDS (BRITISH)
|
||||
PE;Peru;PERU
|
||||
AN;Holland Antillák;NETHERLANDS ANTILLES
|
||||
WS;Szamoa;SAMOA
|
||||
AM;Örményország;ARMENIA
|
||||
NE;Niger;NIGER
|
||||
FI;Finnország;FINLAND
|
||||
BF;Burkina Faso;BURKINA FASO
|
||||
BA;Bosznia-Hercegovina;BOSNIA AND HERZEGOWINA
|
||||
TW;Tajvan;TAIWAN
|
||||
TO;Tonga;TONGA
|
||||
PA;Panama;PANAMA
|
||||
FO;Feröer-szigetek;FAROE ISLANDS
|
||||
TF;Francia déli területek és déli sarkvidék;FRENCH SOUTHERN TERRITORIES
|
||||
NR;Nauru;NAURU
|
||||
AG;Antigua és Barbuda;ANTIGUA AND BARBUDA
|
||||
CL;Chile;CHILE
|
||||
TN;Tunézia;TUNISIA
|
||||
SK;Szlovákia;SLOVAKIA
|
||||
MO;Makaó (különleges közigazgatási terület);MACAU
|
||||
JE;Jersey;JERSEY
|
||||
MM;Myanmar;MYANMAR
|
||||
HU;Magyarország;HUNGARY
|
||||
IS;Izland;ICELAND
|
||||
AS;Amerikai Szamoa;AMERICAN SAMOA
|
||||
PH;Fülöp-szigetek;PHILIPPINES
|
||||
MS;Montserrat;MONTSERRAT
|
||||
NP;Nepál;NEPAL
|
||||
LR;Libéria;LIBERIA
|
||||
BZ;Belize;BELIZE
|
||||
IO;Brit Indiai-óceáni terület;BRITISH INDIAN OCEAN TERRITORY
|
||||
QA;Katar;QATAR
|
||||
ZW;Zimbabwe;ZIMBABWE
|
||||
CA;Kanada;CANADA
|
||||
CY;Ciprus;CYPRUS
|
||||
BV;Bouvet-sziget;BOUVET ISLAND
|
||||
MY;Malajzia;MALAYSIA
|
||||
VI;Virgin-szigetek,USA;VIRGIN ISLANDS (U.S.)
|
||||
UM;Egyesült Államok külső szigetei;UNITED STATES MINOR OUTLYING ISLANDS
|
||||
OM;Omán;OMAN
|
||||
CR;Costa Rica;COSTA RICA
|
||||
AF;Afganisztán;AFGHANISTAN
|
||||
GI;Gibraltár;GIBRALTAR
|
||||
IL;Izrael;ISRAEL
|
||||
GS;Dél-Georgia és a Dél-Sandwich-szigetek;SOUTH GEORGIA AND SOUTH SANDWICH ISLAND
|
||||
BJ;Benin;BENIN
|
||||
CX;Karácsony-sziget;CHRISTMAS ISLAND
|
||||
TM;Türkmenisztán;TURKMENISTAN
|
||||
SH;Szent Ilona;SAINT HELENA
|
||||
CO;Kolumbia;COLOMBIA
|
||||
NU;Niue;NIUE
|
||||
JO;Jordánia;JORDAN
|
||||
LK;Srí Lanka;SRI LANKA
|
||||
PY;Paraguay;PARAGUAY
|
||||
SR;Suriname;SURINAME
|
||||
NC;Új-Kaledónia;NEW CALEDONIA
|
||||
PK;Pakisztán;PAKISTAN
|
||||
BT;Bhután;BHUTAN
|
||||
GF;Francia Guyana;FRENCH GUIANA
|
||||
BR;Brazília;BRAZIL
|
||||
HM;Heard- és McDonald-szigetek;HEARD AND MC DONALD ISLANDS
|
||||
KN;Saint Kitts és Nevis;SAINT KITTS AND NEVIS
|
||||
GU;Guam;GUAM
|
||||
CI;Elefántcsontpart;COTE D'IVOIRE
|
||||
CM;Kamerun;CAMEROON
|
||||
MN;Mongólia;MONGOLIA
|
||||
TJ;Tadzsikisztán;TAJIKISTAN
|
||||
PR;Puerto Rico;PUERTO RICO
|
||||
PW;Palau;PALAU
|
||||
IT;Olaszország;ITALY
|
||||
ER;Eritrea;ERITREA
|
||||
VN;Vietnam;VIET NAM
|
||||
BW;Botswana;BOTSWANA
|
||||
AO;Angola;ANGOLA
|
||||
NF;Norfolk-sziget;NORFOLK ISLAND
|
||||
IE;Írország;IRELAND
|
||||
JP;Japán;JAPAN
|
||||
MK;Macedónia (volt jugoszláv köztársaság);MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF
|
||||
BN;Brunei;BRUNEI DARUSSALAM
|
||||
LI;Liechtenstein;LIECHTENSTEIN
|
||||
BG;Bulgária;BULGARIA
|
||||
AU;Ausztrália;AUSTRALIA
|
||||
MD;Moldova;MOLDOVA, REPUBLIC OF
|
||||
MU;Mauritius;MAURITIUS
|
||||
HN;Honduras;HONDURAS
|
||||
SJ;Svalbard (Spitzbergák) és Jan Mayen;SVALBARD AND JAN MAYEN ISLANDS
|
||||
AZ;Azerbajdzsán;AZERBAIJAN
|
||||
UK;Egyesült Királyság;UNITED KINGDOM
|
||||
SB;Salamon-szigetek;SOLOMON ISLANDS
|
||||
TZ;Tanzánia;TANZANIA, UNITED REPUBLIC OF
|
||||
LY;Líbia;LIBYAN ARAB JAMAHIRIYA
|
||||
|
@@ -0,0 +1,20 @@
|
||||
1035;BUVAR UTCA 3.;DOL-SPED KFT;14100392-94541049-01000005;12369788-2-41
|
||||
1044;Ezred u 2. Európa Center B2/4-6 épület;OPTIMA FORMA KFT;10800021-90000001-34775017;10353550-2-41
|
||||
1062;TERÉZ KÖRÚT 55-57.;ESAB KFT;12001008-00110340-00100000;10445763-2-42
|
||||
1103;GYOMROI U.120.;ROBERT BOSCH KFT;10800007-54556003;10622618-2-01
|
||||
1117;BUDAFOKI ÚT 187-189.;MŰ-PACK KFT;11711041-20723253-00000000;10894631-2-43
|
||||
1131;REITTER FERENC U. 132.;PILANA TOOLS KFT;10918001-00000050-22210006;12080236-2-41
|
||||
1194;FADRUSZ JANOS U.2;GRÁNIT CSISZOLÓSZERSZÁMGYÁRTÓ KFT;10918001-00000005-34200004;12938122-2-43
|
||||
1222;NAGYTETENYI UT 112.;KLINGSPOR MAGYARORSZÁG KFT;DE3533070090001236040000;12830189-2-43
|
||||
1225;Bányalég u. 60/B;SAINT-GOBAIN ABRASIVES KFT.;10900059-00000003-32930013;12294147-2-43
|
||||
2030;SAS UT 6.;GANTELINE KFT;10403181-31807119-00000000;12280670-2-13
|
||||
2300;Móricz Zs. u. 22.;UNITAS KKT;51700241-11124845-00000000;29723755-2-43
|
||||
2314;RAKOCZI F. UT 90/B.;GCE HUNGÁRIA KFT;14220108-03896002;11119638-2-13
|
||||
2351;HARASZTI ÚT 122/A.;AL-KO KFT;10300002-20315090-00003285;10274332-2-01
|
||||
2421;KVJ MUVEK U.2.;KVJ MŰVEK ZRT;10700093-43697003-51100005;11454520-2-07
|
||||
3100;ERDÉSZ ÚT 34. Postacím: 3101 Salgótarján, Pf.:47.;VASSZER-RAKTÁRTECHNIKA KFT;10103726-50068234-00000000;10438695-2-12
|
||||
4002;Kismacs ut 10.;SZABÉV KFT.;10300002-10316471-49020013;13732235-2-09
|
||||
4183;RAKOCZI U.2.;ARANY DELFIN KFT;10300002-20201739-00003285;11141637-2-09
|
||||
6120;Maris puszta 253 a;KERITECH VASSZERKEZETI KFT.;10409015-90137914-00000000;13839301-2-13
|
||||
6727;ACÉL ÚT.27/C;AUTO MOBIL VEGYI KFT;12067008-00180579-00100001;11090050-2-06
|
||||
7634;NAGY-BERKI UT 6.;SOLA-METÁL IPARI ES KERESKEDELMI KFT;10402427-24211527-00000000;10416451-2-02
|
||||
|
@@ -0,0 +1,9 @@
|
||||
A-polc-A-sor-A-rekesz;5991000111115;
|
||||
A-polc-A-sor-B-rekesz;5991000111122;
|
||||
A-polc-A-sor-C-rekesz;5991000111139;
|
||||
A-polc-B-sor-A-rekesz;5991000111146;
|
||||
A-polc-B-sor-B-rekesz;5991000111153;
|
||||
A-polc-B-sor-C-rekesz;5991000111160;
|
||||
B-polc-A-sor-A-rekesz;5991000111177;
|
||||
B-polc-A-sor-B-rekesz;5991000111184;
|
||||
B-polc-A-sor-C-rekesz;5991000111191;
|
||||
|
@@ -0,0 +1,38 @@
|
||||
054075;5990000540758;;;Graphite ütvefúró 2 sebességű 810 W 58G718;29022;DB;0,27;Elektromos kéziszerszámok;Fúrás, ütvefúrás, vésés;Ütvefúrógépek
|
||||
050286;5990000502862;;;Graphite ütvefúró 650W 58G716;19875;DB;0,27;Elektromos kéziszerszámok;Fúrás, ütvefúrás, vésés;Ütvefúrógépek
|
||||
049742;5990000497427;;;Makita HP1630K ütvefúró 710W;26900;DB;0,27;Elektromos kéziszerszámok;Fúrás, ütvefúrás, vésés;Ütvefúrógépek
|
||||
077192;5990000771923;;;PowerPlus sárga fúrókalapács 1250W POWX1172;33893;DB;0,27;Elektromos kéziszerszámok;Fúrás, ütvefúrás, vésés;Fúrókalapácsok
|
||||
077193;5990000771930;;;PowerPlus sárga fúrókalapács 1600W POWX1175;38266;DB;0,27;Elektromos kéziszerszámok;Fúrás, ütvefúrás, vésés;Fúrókalapácsok
|
||||
077191;5990000771916;;;PowerPlus sárga fúrókalapács 750W POWX1170;40663;DB;0,27;Elektromos kéziszerszámok;Fúrás, ütvefúrás, vésés;Fúrókalapácsok
|
||||
066477;5990000664775;;;PowerPlus kék festékkeverő 1200W POW1900;21074;DB;0,27;Elektromos kéziszerszámok;Fúrás, ütvefúrás, vésés;Keverőgépek
|
||||
073782;5990000737820;;;PowerPlus sárga beton- / habarcskeverő 1220W POWX083;33813;DB;0,27;Elektromos kéziszerszámok;Fúrás, ütvefúrás, vésés;Keverőgépek
|
||||
073783;5990000737837;;;PowerPlus sárga dupla szárú keverőgép (betonhoz, festékhez) 1600W POWX088;38528;DB;0,27;Elektromos kéziszerszámok;Fúrás, ütvefúrás, vésés;Keverőgépek
|
||||
059257;5990000592573;;;Graphite 12,0 V akkus fúró-csavarbehajtó 58G130;32333;DB;0,27;Elektromos kéziszerszámok;Akkumulátoros gépek;Fúró-csavarbehajtók
|
||||
077313;5990000773132;;;Makita DF347DWE akkus 14,4V fúró-csavarbehajtó;44900;DB;0,27;Elektromos kéziszerszámok;Akkumulátoros gépek;Fúró-csavarbehajtók
|
||||
076184;5990000761849;;;Milwaukee M18 BLPD-502C akkus fúró-csavarbehajtó;175283;DB;0,27;Elektromos kéziszerszámok;Akkumulátoros gépek;Fúró-csavarbehajtók
|
||||
066780;5990000667806;;;Graphite akkumulátor 58G130-hoz 58G130-12;10160;DB;0,27;Elektromos kéziszerszámok;Akkumulátoros gépek;Akkumulátorok
|
||||
075061;5990000750614;;;Makita 632C19-5 akkumulátor;29990;DB;0,27;Elektromos kéziszerszámok;Akkumulátoros gépek;Akkumulátorok
|
||||
078518;5990000785180;;;PowerPlus akkumulátor POWX0040LI-hez;7921;DB;0,27;Elektromos kéziszerszámok;Akkumulátoros gépek;Akkumulátorok
|
||||
060447;5990000604474;;;Milwaukee HD18 JSB akkus dekopírfűrész;131141;DB;0,27;Elektromos kéziszerszámok;Akkumulátoros gépek;Szúró, vagy dekopírfűrészek
|
||||
073760;5990000737608;;;PowerPlus sárga akkus dekopírfűrész 18V Li-ion POWX0075LI;33655;DB;0,27;Elektromos kéziszerszámok;Akkumulátoros gépek;Szúró, vagy dekopírfűrészek
|
||||
059274;5990000592740;;;Graphite körfűrész 1200W 58G486;24130;DB;0,27;Elektromos kéziszerszámok;Fűrészelés, gyalulás, marás;Körfűrészek
|
||||
060001;5990000600018;;;Maktec MT582 körfűrész 190mm;35900;DB;0,27;Elektromos kéziszerszámok;Fűrészelés, gyalulás, marás;Körfűrészek
|
||||
054500;5990000545005;;;PowerPlus kék körfűrész 1200 W POW1044;17922;DB;0,27;Elektromos kéziszerszámok;Fűrészelés, gyalulás, marás;Körfűrészek
|
||||
075022;5990000750225;;;Makita PJ7000J lapostiplimaró MakPac kofferben;99900;DB;0,27;Elektromos kéziszerszámok;Fűrészelés, gyalulás, marás;Lapostiplimarók
|
||||
078512;5990000785128;;;PowerPlus sárga lapostiplimaró 900W POWX1310;20478;DB;0,27;Elektromos kéziszerszámok;Fűrészelés, gyalulás, marás;Lapostiplimarók
|
||||
073771;5990000737714;;;PowerPlus sárga felsőmaró + 6db élmaró fej 1200W POWX0910;24638;DB;0,27;Elektromos kéziszerszámok;Fűrészelés, gyalulás, marás;Felsőmarók
|
||||
076073;5990000760736;;;Makita PLM4631N fűnyíró benzines önjáró B&S675EX;164900;DB;0,27;Kertészet;Kertészeti benzinmotoros gépek;Fűnyírók, Gyepszellőztetők, Seprőgépek
|
||||
067503;5990000675030;;;MTD 46BS benzines fűnyíró önjáró;103981;DB;0,27;Kertészet;Kertészeti benzinmotoros gépek;Fűnyírók, Gyepszellőztetők, Seprőgépek
|
||||
062208;5990000622089;;;MTD RF125 fűnyíró traktor;641445;DB;0,27;Kertészet;Kertészeti benzinmotoros gépek;Fűnyírók, Gyepszellőztetők, Seprőgépek
|
||||
078322;5990000783223;;;MTD fűkasza SMART BC 26 benzines;48371;DB;0,27;Kertészet;Kertészeti benzinmotoros gépek;Szegélynyírók, fűkaszák
|
||||
067496;5990000674965;;;MTD fűkasza SMART BC 33 benzines;51800;DB;0,27;Kertészet;Kertészeti benzinmotoros gépek;Szegélynyírók, fűkaszák
|
||||
067497;5990000674972;;;MTD fűkasza SMART BC 52 benzines;56848;DB;0,27;Kertészet;Kertészeti benzinmotoros gépek;Szegélynyírók, fűkaszák
|
||||
058080;5990000580808;;;Al-ko HW 1002 Inox házi vízellátó;62706;DB;0,27;Kertészet;Kertészeti elektromos gépek;Magasnyomású mosó, Szivattyú
|
||||
065008;5990000650082;;;PowerPlus kék kerti szivattyú 800W POW67930;26670;DB;0,27;Kertészet;Kertészeti elektromos gépek;Magasnyomású mosó, Szivattyú
|
||||
055800;5990000558005;;;PowerPlus sárga-inox szennyvízszivattyú 1100W POWXG9427;46545;DB;0,27;Kertészet;Kertészeti elektromos gépek;Magasnyomású mosó, Szivattyú
|
||||
077554;5990000775549;;;PowerPlus sárga multifunkcionális elektromos láncfűrész 900W POWXG1032;36671;DB;0,27;Kertészet;Kertészeti elektromos gépek;Láncfűrészek, magassági ágvágók
|
||||
062230;5990000622300;;;PowerPlus zöld elektromos láncfűrész 2000W POW64252;26035;DB;0,27;Kertészet;Kertészeti elektromos gépek;Láncfűrészek, magassági ágvágók
|
||||
079111;5990000791112;;;Agrimotor elektromos fűnyíró 1300W 38cm FM 3813;23002;DB;0,27;Kertészet;Kertészeti elektromos gépek;Fűnyírók, gyepszellőztetők
|
||||
076063;5990000760637;;;Makita ELM3800 fűnyíró elektromos;39900;DB;0,27;Kertészet;Kertészeti elektromos gépek;Fűnyírók, gyepszellőztetők
|
||||
076402;5990000764024;;;MTD 196-180A699 fűgyűjtő 2 zsákos kés nélküli;175021;DB;0,27;Kertészet;Kertészeti elektromos gépek;Fűnyírók, gyepszellőztetők
|
||||
|
||||
|
@@ -0,0 +1,100 @@
|
||||
000142;5996031001428;;;Kl vágó 115x2.5 fém 24EX;128;DB;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
046845;5996031468450;;;Norton vágó 115x1.0 inox klt.110db+italhütő;14000;KLT.;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
000687;5996031006874;;;Huzal fekete lágy 3.1;240;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
025190;5996031251908;;;Granif 230x2.5 fém;355;DB;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
000481;5996031004818;;;York satu 125;29400;DB;0,25;014 Fémmegmunkáló szerszámok;003 Kéziszerszámok
|
||||
024851;5996031248519;;;Kőműves vasbak 1,85m nyitható;9020;DB;0,25;017 Kőműves és építőszerszámok;003 Kéziszerszámok
|
||||
049387;5996031493872;;;CO huzal 1,0 SG2;403;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
049402;5996031494022;;;CO huzal 0,8 SG2;390;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
049403;5996031494039;;;CO huzal 1,2 SG2;407;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
000027;5996031000278;;;Szeg huzal 31x80;256;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
011835;5996031118355;;;Munk. védőkesztyű 150 rakodó;185;PÁR;0,25;003 Fej és kézvédők;010 Munkavédelem
|
||||
005024;5996031050242;;;Esab OK 46.16 2.00 (ER-23);1410;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
018202;5996031182028;;;Omega krokodil 3.00T 21030;35500;DB;0,25;068 Emelő berendezések;006 Műhely, raktár és üzletberendezés
|
||||
018210;5996031182103;;;Munk. barkácskesztyű;200;PÁR;0,25;003 Fej és kézvédők;010 Munkavédelem
|
||||
000155;5996031001558;;;Kl vágó 230x3 fém 24EX;370;DB;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
000596;5996031005969;;;Talicska;7590;DB;0,25;017 Kőműves és építőszerszámok;003 Kéziszerszámok
|
||||
001974;5996031019744;;;Szeg huzal 22x50;318;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
043456;5996031434561;;;Munk. védőkesztyű 154 rakodó;202;PÁR;0,25;003 Fej és kézvédők;010 Munkavédelem
|
||||
043166;5996031431669;;;Kl vágó 125x1.0 inox 60EX;164;DB;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
032066;5996031320666;;;Makita HP1620 ütvefúró 650W;13600;DB;0,25;078 Fúrógépek, csavarbehajtók;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
011984;5996031119840;;;Awab bilincs 15- 24 9mm;85;DB;0,25;041 Bilincsek;008 Rögzítéstechnika
|
||||
032424;5996031324244;;;Munk. cipő 42-es Porthos;2990;PÁR;0,25;002 Lábbelik;010 Munkavédelem
|
||||
048741;5996031487413;;;Betonkeverő 130l B1308-FK;40900;DB;0,25;099 Betonkeverő;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
043085;5996031430853;;;Fólia mezőgazdasági UV1 12000x0,15x60 natúr;81440;TEK;0,25;096 Egyéb;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
025022;5996031250222;;;Munk. védőkesztyű 202 rakodó;168;PÁR;0,25;003 Fej és kézvédők;010 Munkavédelem
|
||||
044337;5996031443372;;;Oerlikon CO-huzal Carbofil 1 1,0;588;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
035863;5996031358638;;;Makita 6270DWAE akkus fúró-csavarbehajtó;29100;DB;0,25;079 Akkus gépek;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
047297;5996031472976;;;Makita HR2470 fúró-vésőkalapács;41300;DB;0,25;077 Fúró-véső kalapácsok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
036084;5996031360846;;;Munk. bakancs 45-ös Athos;2990;PÁR;0,25;002 Lábbelik;010 Munkavédelem
|
||||
038309;5996031383098;;;FITT locsolótömlő alapkategóriás 1"50m 7b IDRO COLOR;11500;TEKERCS;0,25;050 Tömlők;009 Kertészeti és mezőg-i szerszámok,anyagok
|
||||
011983;5996031119833;;;Awab bilincs 13- 20 9mm;85;DB;0,25;041 Bilincsek;008 Rögzítéstechnika
|
||||
042905;5996031429055;;;Kuka 110l műanyag szürke;4320;DB;0,25;066 Tárolódobozok;006 Műhely, raktár és üzletberendezés
|
||||
005846;5996031058460;;;Pántolószalag 16 mm műanyag;4.1;FM;0,25;071 Csomagolás, rakományrögzítők;006 Műhely, raktár és üzletberendezés
|
||||
042901;5996031429017;;;Fólia építőipari 8500x0,12x60m fekete "R";27630;TEKERCS;0,25;096 Egyéb;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
042869;5996031428690;;;Kerítés fonat 120x65x65x1,8 horganyzott;230;FM;0,25;044 Drótkötelek + szerelvények;008 Rögzítéstechnika
|
||||
042659;5996031426597;;;Aknafedőlap 60x60;4630;DB;0,25;017 Kőműves és építőszerszámok;003 Kéziszerszámok
|
||||
046834;5996031468344;;;Norton vágó 230x1.9 inox A46T;340;DB;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
044341;5996031443419;;;Makita GA9020 sarokcsiszoló 230mm;27100;DB;0,25;080 Sarokcsiszolók, köszörűk, darabolók;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
005234;5996031052345;;;Esab OK 12.56 CO-huz.0.8/15kg;638;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
042907;5996031429079;;;Kuka 120l műanyag zöld kerekes;5880;DB;0,25;066 Tárolódobozok;006 Műhely, raktár és üzletberendezés
|
||||
032426;5996031324268;;;Munk. bakancs 42-es Athos;2990;PÁR;0,25;002 Lábbelik;010 Munkavédelem
|
||||
042156;5996031421561;;;Deca inverter MOS 138E;51500;DB;0,25;031 Hegesztő gépek;004 Hegesztés, forrasztás
|
||||
042906;5996031429062;;;Kuka 120l műanyag szürke kerekes;5460;DB;0,25;066 Tárolódobozok;006 Műhely, raktár és üzletberendezés
|
||||
042157;5996031421578;;;Deca inverter MOS 168E;61800;DB;0,25;031 Hegesztő gépek;004 Hegesztés, forrasztás
|
||||
004797;5996031047976;;;Esab OK 46.16 3.25 (ER-23);1120;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
044891;5996031448919;;;Deca akkutöltő és indító CLASS BOOSTER 300E;35100;DB;0,25;096 Egyéb;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
044175;5996031441750;;;Kerítés csirkeháló 100cm/25fm horganyzott;113;FM;0,25;044 Drótkötelek + szerelvények;008 Rögzítéstechnika
|
||||
008188;5996031081888;;;Kl vágó 230x1.9 inox 46TZ;496;DB;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
004621;5996031046214;;;Pántolószalag 16 mm fém;350;KG;0,25;071 Csomagolás, rakományrögzítők;006 Műhely, raktár és üzletberendezés
|
||||
042908;5996031429086;;;Kuka 240l műanyag zöld kerekes;9600;DB;0,25;066 Tárolódobozok;006 Műhely, raktár és üzletberendezés
|
||||
002478;5996031024786;;;Kl vágó 300x3x32 fém 24R;1180;DB;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
016528;5996031165281;;;Proxx dugókulcs klt.23040 4-32 1/2;21700;DB;0,25;009 Dugókulcsok;003 Kéziszerszámok
|
||||
012106;5996031121065;;;WD40 400 ml kontakt spray;1040;DB;0,25;061 Kenő spray-k;005 Ragasztó,tömítő,kenő és egyéb anyagok
|
||||
003201;5996031032019;;;Szeg csavart 35x 70;286;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
032425;5996031324251;;;Munk. cipő 43-as Porthos;2990;PÁR;0,25;002 Lábbelik;010 Munkavédelem
|
||||
001248;5996031012486;;;Huzal fekete lágy 1.2;300;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
046886;5996031468863;;;Norton vágó 125x1.0 inox klt.110db+hűtőtáska;13650;KLT.;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
042877;5996031428775;;;Kerítés csirkeháló 100cm/50fm horganyzott;111;FM;0,25;044 Drótkötelek + szerelvények;008 Rögzítéstechnika
|
||||
025140;5996031251403;;;NB.cirokseprű 5 varrásos;510;DB;0,25;017 Kőműves és építőszerszámok;003 Kéziszerszámok
|
||||
005687;5996031056879;;;WD40 240 ml kontakt spray;590;DB;0,25;061 Kenő spray-k;005 Ragasztó,tömítő,kenő és egyéb anyagok
|
||||
000752;5996031007529;;;York satu 150;43300;DB;0,25;014 Fémmegmunkáló szerszámok;003 Kéziszerszámok
|
||||
000074;5996031000742;;;Awab bilincs 8- 14 9mm;82;DB;0,25;041 Bilincsek;008 Rögzítéstechnika
|
||||
041940;5996031419407;;;Fetools termékkatalógus 2005-2006;7500;DB;0,25;096 Egyéb;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
014381;5996031143814;;;Kompresszor 228/10bar/50/230V Super Tiger 265M;58100;DB;0,25;073 Kompresszorok és tartozékaik;006 Műhely, raktár és üzletberendezés
|
||||
042427;5996031424272;;;Makita HR4001C fúró-vésőkalapács;129900;DB;0,25;077 Fúró-véső kalapácsok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
000132;5996031001329;;;Hegesztő pálca A-37 3 mm;365;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
006553;5996031065536;;;Munk. védőkesztyű 4355 pamut;67;PÁR;0,25;003 Fej és kézvédők;010 Munkavédelem
|
||||
036082;5996031360822;;;Munk. bakancs 41-es Athos;2990;PÁR;0,25;002 Lábbelik;010 Munkavédelem
|
||||
001263;5996031012639;;;Awab bilincs 11- 17 9mm;83;DB;0,25;041 Bilincsek;008 Rögzítéstechnika
|
||||
044336;5996031443365;;;Oerlikon CO-huzal Carbofil 1 0,8;644;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
002973;5996031029736;;;Munk. védőkesztyű 4379 pamut piros;274;PÁR;0,25;003 Fej és kézvédők;010 Munkavédelem
|
||||
046258;5996031462588;;;Stihl FS450 fűkasza;198050;DB;0,25;093 Fűkaszák;007 Tisztítástechnika, Robbanómotoros gépek
|
||||
038326;5996031383265;;;FITT locsolótömlő csavarodásmentes 3/4"50m24b NTS;15100;TEKERCS;0,25;050 Tömlők;009 Kertészeti és mezőg-i szerszámok,anyagok
|
||||
000028;5996031000285;;;Szeg huzal 31x70;256;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
042874;5996031428744;;;Kerítés fonat 150X65X65X1,8 műanyag bevonattal;380;FM;0,25;044 Drótkötelek + szerelvények;008 Rögzítéstechnika
|
||||
001870;5996031018709;;;Szeg huzal 60x160;256;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
036083;5996031360839;;;Munk. bakancs 44-es Athos;2990;PÁR;0,25;002 Lábbelik;010 Munkavédelem
|
||||
032814;5996031328143;;;Omega krokodil 2.25T 29024;30984;DB;0,25;068 Emelő berendezések;006 Műhely, raktár és üzletberendezés
|
||||
038325;5996031383258;;;FITT locsolótömlő csavarodásmentes 3/4"25m24b NTS;7540;TEKERCS;0,25;050 Tömlők;009 Kertészeti és mezőg-i szerszámok,anyagok
|
||||
044255;5996031442559;;;Oerlikon Fincord 2,5;873;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
000128;5996031001282;;;Esab OK 55.00 3.25 (EB-12);1020;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
045477;5996031454774;;;Oerlikon Overcord E 2.50;843;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
032427;5996031324275;;;Munk. bakancs 43-as Athos;2990;PÁR;0,25;002 Lábbelik;010 Munkavédelem
|
||||
003844;5996031038448;;;Esab OK 55.00 2.50 (EB-12);1110;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
042872;5996031428720;;;Kerítés fonat 150X65X65X1,8 horganyzott;290;FM;0,25;044 Drótkötelek + szerelvények;008 Rögzítéstechnika
|
||||
043165;5996031431652;;;Kl vágó 115x1.0 inox 60EX;143;DB;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
000023;5996031000230;;;Szeg huzal 70x200;256;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
006948;5996031069480;;;Szeg huzal 42x120;256;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
000031;5996031000315;;;Szeg huzal 42x100;256;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
000030;5996031000308;;;Szeg huzal 28x65;256;KG;0,25;039 Szegek;008 Rögzítéstechnika
|
||||
000127;5996031001275;;;Esab OK 46.16 2.50 (ER-23);1230;KG;0,25;032 Hegesztő anyagok;004 Hegesztés, forrasztás
|
||||
046831;5996031468313;;;Norton vágó 125x1.0 inox Vulcan;167;DB;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
046838;5996031468382;;;Norton vágó 230x2.5 fém A30S;322;DB;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
019538;5996031195387;;;Dexion PS -4 610x 915 polc középszürke;3020;DB;0,25;065 Polcrendszerek;006 Műhely, raktár és üzletberendezés
|
||||
042274;5996031422742;;;Omega long jack 8T 44981C;59200;DB;0,25;068 Emelő berendezések;006 Műhely, raktár és üzletberendezés
|
||||
044166;5996031441668;;;Talicska festett, 60l-es, tömör kerekes;7280;DB;0,25;017 Kőműves és építőszerszámok;003 Kéziszerszámok
|
||||
017659;5996031176591;;;Munk. védőkesztyű 204 rakodó;112;PÁR;0,25;003 Fej és kézvédők;010 Munkavédelem
|
||||
051643;5996031516434;;;Norton vágó 125x1.0 inox klt.110db+italhütő;16000;KLT.;0,25;058 Vágókorongok, csiszolóanyagok;001 Elektromos kisgépek, tartozékok, csisz.t
|
||||
017000;5996031170001;;;Munk. védőkesztyű 153 rakodó;291;PÁR;0,25;003 Fej és kézvédők;010 Munkavédelem
|
||||
015362;5996031153622;;;Kompresszor 185/ 8/24 Amico 25/2500;34100;DB;0,25;073 Kompresszorok és tartozékaik;006 Műhely, raktár és üzletberendezés
|
||||
|
Can't render this file because it contains an unexpected character in line 30 and column 66.
|
@@ -0,0 +1,9 @@
|
||||
UPDATE XPObjectType SET TypeName=REPLACE(TypeName,'SISBusiness','Nuvolar');
|
||||
UPDATE XPObjectType SET AssemblyName=REPLACE(AssemblyName,'SISBusiness','Nuvolar');
|
||||
UPDATE ModuleInfo SET NAME=REPLACE(NAME,'SISBusiness','Nuvolar');
|
||||
UPDATE ModuleInfo SET AssemblyFileName=REPLACE(AssemblyFileName,'SISBusiness','Nuvolar');
|
||||
UPDATE ReportData SET ObjectTypeName=REPLACE(ObjectTypeName,'SISBusiness','Nuvolar');
|
||||
UPDATE XMLStore SET XMLData=REPLACE(XMLData,'SISBusiness','Nuvolar');
|
||||
UPDATE Analysis SET ObjectTypeName=REPLACE(ObjectTypeName,'SISBusiness','Nuvolar');
|
||||
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
namespace Nuvolar.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 Nuvolar.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,54 @@
|
||||
namespace Nuvolar.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.aOpenWindowsExplorer = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
//
|
||||
// aOpenWindowsExplorer
|
||||
//
|
||||
this.aOpenWindowsExplorer.Caption = "aOpen Windows Explorer";
|
||||
this.aOpenWindowsExplorer.ConfirmationMessage = null;
|
||||
this.aOpenWindowsExplorer.Id = "aOpenWindowsExplorer";
|
||||
this.aOpenWindowsExplorer.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject;
|
||||
this.aOpenWindowsExplorer.TargetObjectType = typeof(Nuvolar.Module.CustomersOrder);
|
||||
this.aOpenWindowsExplorer.ToolTip = null;
|
||||
this.aOpenWindowsExplorer.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aOpenWindowsExplorer_Execute);
|
||||
//
|
||||
// CustomersOrderVC
|
||||
//
|
||||
this.Actions.Add(this.aOpenWindowsExplorer);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.ExpressApp.Actions.SimpleAction aOpenWindowsExplorer;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
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;
|
||||
|
||||
namespace Nuvolar.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();
|
||||
// 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 aOpenWindowsExplorer_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur = (XPObjectSpace)View.ObjectSpace;
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
CustomersOrder _CustomersOrder = (CustomersOrder)View.SelectedObjects[0];
|
||||
|
||||
if (_CustomersOrder != null) {
|
||||
if (string.IsNullOrEmpty(_CustomersOrder.DocumentPath)==false)
|
||||
{
|
||||
if (Directory.Exists(_CustomersOrder.DocumentPath))
|
||||
{
|
||||
Process.Start(_CustomersOrder.DocumentPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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="aOpenWindowsExplorer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</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,40 @@
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
partial class DeliveryNoteOut_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();
|
||||
//
|
||||
// DeliveryNoteOut_VC
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using DevExpress.Data.Filtering;
|
||||
using DevExpress.ExpressApp;
|
||||
using DevExpress.ExpressApp.Actions;
|
||||
using DevExpress.ExpressApp.Xpo;
|
||||
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
public partial class DeliveryNoteOut_VC : ViewController
|
||||
{
|
||||
public DeliveryNoteOut_VC()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
// Perform various tasks depending on the target View.
|
||||
}
|
||||
protected override void OnViewControlsCreated()
|
||||
{
|
||||
base.OnViewControlsCreated();
|
||||
// Access and customize the target View control.
|
||||
}
|
||||
protected override void OnDeactivated()
|
||||
{
|
||||
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||
base.OnDeactivated();
|
||||
}
|
||||
|
||||
private void aPrintSelectedDeliveryNoteOuts_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||
DeliveryNoteOutHeader _DeliveryNoteOutHeader = View.SelectedObjects[0] as DeliveryNoteOutHeader;
|
||||
|
||||
|
||||
if (_DeliveryNoteOutHeader.DeliveryNoteOutType.ReportDataV2!=null)
|
||||
{
|
||||
XAFPrintHelper _XAFPrintHelper = new XAFPrintHelper(_ocur, Frame, _DeliveryNoteOutHeader.DeliveryNoteOutType.ReportDataV2, CriteriaOperator.Parse("DeliveryNoteOutHeader.Oid=?", _DeliveryNoteOutHeader.Oid));
|
||||
_XAFPrintHelper.ShowPreviewV2PDF();
|
||||
|
||||
//XtraReport report = ReportDataProvider.ReportsStorage.LoadReport(_DeliveryNoteOutHeader.DeliveryNoteOutType.ReportDataV2);
|
||||
//var dataSource = (DevExpress.Persistent.Base.ReportsV2.ISupportCriteria)report.DataSource;
|
||||
//dataSource.Criteria = CriteriaOperator.Parse("DeliveryNoteOutHeader.Oid=?", _DeliveryNoteOutHeader.Oid);
|
||||
|
||||
//Frame.GetController<ReportServiceController>().SetupBeforePrint(report, null, null, false, null, false);
|
||||
//report.ShowPreview();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
<?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="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -0,0 +1,40 @@
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
partial class InvoiceHeader_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();
|
||||
//
|
||||
// InvoiceHeader_VC
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
using DevExpress.Data.Filtering;
|
||||
using DevExpress.ExpressApp;
|
||||
using DevExpress.ExpressApp.Actions;
|
||||
using DevExpress.ExpressApp.Xpo;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
using DevExpress.ExpressApp.ReportsV2;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using System.Diagnostics;
|
||||
using DevExpress.XtraReports;
|
||||
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
public partial class InvoiceHeader_VC : ViewController
|
||||
{
|
||||
public InvoiceHeader_VC()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
// Perform various tasks depending on the target View.
|
||||
}
|
||||
protected override void OnViewControlsCreated()
|
||||
{
|
||||
base.OnViewControlsCreated();
|
||||
// Access and customize the target View control.
|
||||
}
|
||||
protected override void OnDeactivated()
|
||||
{
|
||||
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||
base.OnDeactivated();
|
||||
}
|
||||
|
||||
private void aPrintSelectedInvoicesV2_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
//var stopwatch = new Stopwatch();
|
||||
//stopwatch.Start();
|
||||
|
||||
XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||
InvoiceHeader _InvoiceHeader = View.SelectedObjects[0] as InvoiceHeader;
|
||||
IReportDataV2 reportData = _ocur.FindObject<ReportDataV2>(CriteriaOperator.Parse("[DisplayName] = 'Kimenő számla'"));
|
||||
|
||||
string handle = ReportDataProvider.ReportsStorage.GetReportContainerHandle(reportData);
|
||||
Frame.GetController<ReportServiceController>().ShowPreview(handle,CriteriaOperator.Parse("InvoiceHeader.Oid=?",_InvoiceHeader.Oid));
|
||||
//stopwatch.Stop();
|
||||
//long elapsed_time = stopwatch.ElapsedMilliseconds;
|
||||
|
||||
//MessageBox.Show(elapsed_time.ToString("#,##0.00"), "Time", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
}
|
||||
|
||||
private void aPrintSelectedInvoicesV2V_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
|
||||
Debug.WriteLine("============ REPORT START ===========================================================================");
|
||||
XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||
InvoiceHeader _InvoiceHeader = View.SelectedObjects[0] as InvoiceHeader;
|
||||
IReportDataV2 reportData = _ocur.FindObject<ReportDataV2>(CriteriaOperator.Parse("[DisplayName] = 'Kimenő számla'"));
|
||||
XtraReport report = ReportDataProvider.ReportsStorage.LoadReport(reportData);
|
||||
var dataSource = (DevExpress.Persistent.Base.ReportsV2.ISupportCriteria)report.DataSource;
|
||||
dataSource.Criteria = CriteriaOperator.Parse("InvoiceHeader.Oid=? and InvoiceHeader.Customers.Oid=?", _InvoiceHeader.Oid,_InvoiceHeader.Customers.Oid);
|
||||
|
||||
string handle = ReportDataProvider.ReportsStorage.GetReportContainerHandle(reportData);
|
||||
//Frame.GetController<ReportServiceController>().SetupBeforePrint(report, null, CriteriaOperator.Parse("InvoiceHeader.Oid=?", _InvoiceHeader.Oid), true, null, false);
|
||||
Frame.GetController<ReportServiceController>().SetupBeforePrint(report, null,null , false, null, false);
|
||||
//report.PrintDialog();
|
||||
report.ShowPreview();
|
||||
Debug.WriteLine("============ REPORT STOP ===========================================================================");
|
||||
}
|
||||
|
||||
private void aPrintSelectedInvoicesV2PDF_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
Debug.WriteLine("============ REPORT START ===========================================================================");
|
||||
XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||
InvoiceHeader _InvoiceHeader = View.SelectedObjects[0] as InvoiceHeader;
|
||||
//IReportDataV2 reportData = _ocur.FindObject<ReportDataV2>(CriteriaOperator.Parse("[DisplayName] = 'Kimenő számla'"));
|
||||
//XtraReport report = ReportDataProvider.ReportsStorage.LoadReport(reportData);
|
||||
|
||||
Nuvolar.Module.ReportV2.Report_Invoice _RI=new Nuvolar.Module.ReportV2.Report_Invoice();
|
||||
//ReportPrintTool _PrintTool = new ReportPrintTool(_RI as IReport);
|
||||
|
||||
|
||||
//string handle = ReportDataProvider.ReportsStorage.GetReportContainerHandle(reportData);
|
||||
//Frame.GetController<ReportServiceController>().ShowPreview(handle, CriteriaOperator.Parse("InvoiceHeader.Oid=?", _InvoiceHeader.Oid));
|
||||
_RI.FilterString = CriteriaOperator.Parse("InvoiceHeader=?", _InvoiceHeader.Oid).ToString();
|
||||
|
||||
//var dataSource = (DevExpress.Persistent.Base.ReportsV2.ISupportCriteria)_RI.DataSource;
|
||||
|
||||
Frame.GetController<ReportServiceController>().SetupBeforePrint(_RI, null, CriteriaOperator.Parse("InvoiceHeader=?",_InvoiceHeader.Oid), true, null, false);
|
||||
_RI.ShowPreview();
|
||||
Debug.WriteLine("============ REPORT STOP ===========================================================================");
|
||||
//_RI.DataSource=_ocur.Session.da
|
||||
//(_RI.DataSource as DevExpress.DataAccess.Sql.SqlDataSource).Connection.ConnectionString = _ocur.Session.ConnectionString;
|
||||
|
||||
//_RI.ExportToPdf(@"c:\temp\kutya.pdf");
|
||||
//Process.Start(@"c:\temp\kutya.pdf");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
<?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="$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 Nuvolar.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(Nuvolar.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 Nuvolar.Module;
|
||||
using System.Globalization;
|
||||
using System.Windows.Forms;
|
||||
namespace Nuvolar.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,107 @@
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
partial class OrderIn_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.aMoveOrderIn = new DevExpress.ExpressApp.Actions.PopupWindowShowAction(this.components);
|
||||
this.aOrderInStorageOut = new DevExpress.ExpressApp.Actions.PopupWindowShowAction(this.components);
|
||||
this.aMoveOrderInBack = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
this.aDeliveryNoteOutPrint_Divided = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
//
|
||||
// aMoveOrderIn
|
||||
//
|
||||
this.aMoveOrderIn.AcceptButtonCaption = null;
|
||||
this.aMoveOrderIn.CancelButtonCaption = null;
|
||||
this.aMoveOrderIn.Caption = "aMove Order In";
|
||||
this.aMoveOrderIn.Category = "";
|
||||
this.aMoveOrderIn.ConfirmationMessage = null;
|
||||
this.aMoveOrderIn.Id = "aMoveOrderIn";
|
||||
this.aMoveOrderIn.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject;
|
||||
this.aMoveOrderIn.TargetObjectType = typeof(Nuvolar.Module.OrderInHeader);
|
||||
this.aMoveOrderIn.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
|
||||
this.aMoveOrderIn.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView;
|
||||
this.aMoveOrderIn.ToolTip = null;
|
||||
this.aMoveOrderIn.TypeOfView = typeof(DevExpress.ExpressApp.DetailView);
|
||||
this.aMoveOrderIn.CustomizePopupWindowParams += new DevExpress.ExpressApp.Actions.CustomizePopupWindowParamsEventHandler(this.aMoveOrderIn_CustomizePopupWindowParams);
|
||||
this.aMoveOrderIn.Execute += new DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventHandler(this.aMoveOrderIn_Execute);
|
||||
//
|
||||
// aOrderInStorageOut
|
||||
//
|
||||
this.aOrderInStorageOut.AcceptButtonCaption = null;
|
||||
this.aOrderInStorageOut.CancelButtonCaption = null;
|
||||
this.aOrderInStorageOut.Caption = "aOrder In Storage Out";
|
||||
this.aOrderInStorageOut.Category = "aOrderInStorageOut";
|
||||
this.aOrderInStorageOut.ConfirmationMessage = null;
|
||||
this.aOrderInStorageOut.Id = "aOrderInStorageOut";
|
||||
this.aOrderInStorageOut.TargetObjectType = typeof(Nuvolar.Module.OrderInHeader);
|
||||
this.aOrderInStorageOut.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
|
||||
this.aOrderInStorageOut.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView;
|
||||
this.aOrderInStorageOut.ToolTip = null;
|
||||
this.aOrderInStorageOut.TypeOfView = typeof(DevExpress.ExpressApp.DetailView);
|
||||
this.aOrderInStorageOut.CustomizePopupWindowParams += new DevExpress.ExpressApp.Actions.CustomizePopupWindowParamsEventHandler(this.aOrderInStorageOut_CustomizePopupWindowParams);
|
||||
this.aOrderInStorageOut.Execute += new DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventHandler(this.aOrderInStorageOut_Execute);
|
||||
//
|
||||
// aMoveOrderInBack
|
||||
//
|
||||
this.aMoveOrderInBack.Caption = "aMove Order In Back";
|
||||
this.aMoveOrderInBack.ConfirmationMessage = "Are you sure ?";
|
||||
this.aMoveOrderInBack.Id = "aMoveOrderInBack";
|
||||
this.aMoveOrderInBack.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject;
|
||||
this.aMoveOrderInBack.TargetObjectType = typeof(Nuvolar.Module.OrderInRows);
|
||||
this.aMoveOrderInBack.ToolTip = null;
|
||||
this.aMoveOrderInBack.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aMoveOrderInBack_Execute);
|
||||
//
|
||||
// aDeliveryNoteOutPrint_Divided
|
||||
//
|
||||
this.aDeliveryNoteOutPrint_Divided.Caption = "aDeliveryNoteOutPrint_Divided";
|
||||
this.aDeliveryNoteOutPrint_Divided.Category = "View";
|
||||
this.aDeliveryNoteOutPrint_Divided.ConfirmationMessage = null;
|
||||
this.aDeliveryNoteOutPrint_Divided.Id = "aDeliveryNoteOutPrint_Divided";
|
||||
this.aDeliveryNoteOutPrint_Divided.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject;
|
||||
this.aDeliveryNoteOutPrint_Divided.TargetObjectType = typeof(Nuvolar.Module.DeliveryNoteOutRows);
|
||||
this.aDeliveryNoteOutPrint_Divided.ToolTip = null;
|
||||
this.aDeliveryNoteOutPrint_Divided.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aDeliveryNoteOutPrint_Divided_Execute);
|
||||
//
|
||||
// OrderIn_VC
|
||||
//
|
||||
this.Actions.Add(this.aMoveOrderIn);
|
||||
this.Actions.Add(this.aOrderInStorageOut);
|
||||
this.Actions.Add(this.aMoveOrderInBack);
|
||||
this.Actions.Add(this.aDeliveryNoteOutPrint_Divided);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.ExpressApp.Actions.PopupWindowShowAction aMoveOrderIn;
|
||||
private DevExpress.ExpressApp.Actions.PopupWindowShowAction aOrderInStorageOut;
|
||||
private DevExpress.ExpressApp.Actions.SimpleAction aMoveOrderInBack;
|
||||
internal DevExpress.ExpressApp.Actions.SimpleAction aDeliveryNoteOutPrint_Divided;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,541 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using DevExpress.Data.Filtering;
|
||||
using DevExpress.ExpressApp;
|
||||
using DevExpress.ExpressApp.Actions;
|
||||
using DevExpress.ExpressApp.SystemModule;
|
||||
using DevExpress.ExpressApp.Utils;
|
||||
using DevExpress.ExpressApp.Xpo;
|
||||
using Nuvolar.Module.BusinessObjects.Popup;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
using System.Collections;
|
||||
//using System.Windows.Forms;
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
public partial class OrderIn_VC : ViewController
|
||||
{
|
||||
public OrderIn_VC()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
// Perform various tasks depending on the target View.
|
||||
}
|
||||
protected override void OnViewControlsCreated()
|
||||
{
|
||||
base.OnViewControlsCreated();
|
||||
// Access and customize the target View control.
|
||||
}
|
||||
protected override void OnDeactivated()
|
||||
{
|
||||
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||
base.OnDeactivated();
|
||||
}
|
||||
private void aMoveOrderIn_Execute(object sender, PopupWindowShowActionExecuteEventArgs e)
|
||||
{
|
||||
//XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
XPObjectSpace _onew = View.ObjectSpace as XPObjectSpace;
|
||||
OrderInMovePopup _OrderInMovePopup = (OrderInMovePopup)e.PopupWindow.View.SelectedObjects[0];
|
||||
Guid _GUID=Guid.Empty;
|
||||
if (_OrderInMovePopup.OrderInHeaderTo == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (StorageOutRowsInRows _StorageOutRowsInRows in _OrderInMovePopup.StorageOutRowsInRows)
|
||||
{
|
||||
if (_StorageOutRowsInRows.QTT_Will > 0 && _StorageOutRowsInRows.QTT_Will<=_StorageOutRowsInRows.QTT)
|
||||
{
|
||||
if (_StorageOutRowsInRows.StorageOutRows.OrderInRows.DividedOriginal == 0)
|
||||
{
|
||||
_StorageOutRowsInRows.StorageOutRows.OrderInRows.DividedOriginal = 1;
|
||||
_GUID = Guid.NewGuid();
|
||||
_StorageOutRowsInRows.StorageOutRows.OrderInRows.DividedGUID = _GUID;
|
||||
}
|
||||
else
|
||||
{
|
||||
_GUID = _StorageOutRowsInRows.StorageOutRows.OrderInRows.DividedGUID;
|
||||
}
|
||||
_StorageOutRowsInRows.StorageOutRows.OrderInRows.QTT-= _StorageOutRowsInRows.QTT_Will;
|
||||
_StorageOutRowsInRows.StorageOutRows.OrderInRows.QTT_DeliveryNoted-= _StorageOutRowsInRows.QTT_Will;
|
||||
_StorageOutRowsInRows.StorageOutRows.OrderInRows.QTT_Storaged-= _StorageOutRowsInRows.QTT_Will;
|
||||
_StorageOutRowsInRows.QTT -= _StorageOutRowsInRows.QTT_Will;
|
||||
_StorageOutRowsInRows.QTT_To_DeliveryOut -= _StorageOutRowsInRows.QTT_Will;
|
||||
|
||||
_StorageOutRowsInRows.DividedGUID = _GUID;
|
||||
|
||||
if (_StorageOutRowsInRows.DividedOriginal==0) {_StorageOutRowsInRows.DividedOriginal = 1; _StorageOutRowsInRows.DividedGUID = _GUID; }
|
||||
if (_StorageOutRowsInRows.StorageOutRows.DividedOriginal == 0) { _StorageOutRowsInRows.StorageOutRows.DividedOriginal = 1; _StorageOutRowsInRows.StorageOutRows.DividedGUID = _GUID; }
|
||||
|
||||
OrderInRows _OrderInRows = _onew.GetObject(_StorageOutRowsInRows.StorageOutRows.OrderInRows);
|
||||
OrderInRows _OrderInRowsNew = _onew.CreateObject<OrderInRows>();
|
||||
_OrderInRowsNew.DividedOriginal = 2;
|
||||
_OrderInRowsNew.DividedGUID = _GUID;
|
||||
_OrderInRowsNew.APCSheetByProducts = _OrderInRows.APCSheetByProducts;
|
||||
_OrderInRowsNew.Description = _OrderInRows.Description;
|
||||
_OrderInRowsNew.DescriptionPrivate = _OrderInRows.DescriptionPrivate;
|
||||
_OrderInRowsNew.DiscountPriceDEV = _OrderInRows.DiscountPriceDEV;
|
||||
_OrderInRowsNew.DiscountPriceHUF = _OrderInRows.DiscountPriceHUF;
|
||||
_OrderInRowsNew.ListPriceDEV = _OrderInRows.ListPriceDEV;
|
||||
_OrderInRowsNew.ListPriceHUF = _OrderInRows.ListPriceHUF;
|
||||
_OrderInRowsNew.ListPriceOriginalHUF = _OrderInRows.ListPriceOriginalHUF;
|
||||
_OrderInRowsNew.OrderInHeader = _onew.GetObject(_OrderInMovePopup.OrderInHeaderTo);
|
||||
_OrderInRowsNew.Products = _OrderInRows.Products;
|
||||
_OrderInRowsNew.QTT = _StorageOutRowsInRows.QTT_Will;
|
||||
_OrderInRowsNew.QTT_DeliveryNoted = _StorageOutRowsInRows.QTT_Will;
|
||||
_OrderInRowsNew.QTT_Invoiced = 0;
|
||||
_OrderInRowsNew.QTT_Process = 0;
|
||||
_OrderInRowsNew.QTT_Storaged = _StorageOutRowsInRows.QTT_Will;
|
||||
_OrderInRowsNew.QTT_To = 0;
|
||||
_OrderInRowsNew.QualityOption = _OrderInRows.QualityOption;
|
||||
_OrderInRowsNew.RowGroup1 = _OrderInRows.RowGroup1;
|
||||
_OrderInRowsNew.RowGroup2 = _OrderInRows.RowGroup2;
|
||||
_OrderInRowsNew.RowIndex = 0;
|
||||
_OrderInRowsNew.VAT = _OrderInRows.VAT;
|
||||
|
||||
StorageOutRows _StorageOutRows = _onew.GetObject(_StorageOutRowsInRows.StorageOutRows);
|
||||
StorageOutRows _StorageOutRowsNew = _onew.CreateObject<StorageOutRows>();
|
||||
_StorageOutRowsNew.StorageOutHeader = _StorageOutRows.StorageOutHeader;
|
||||
_StorageOutRowsNew.OrderInRows = _OrderInRowsNew;
|
||||
_StorageOutRowsNew.Products = _StorageOutRows.Products;
|
||||
_StorageOutRowsNew.QTT = _StorageOutRowsInRows.QTT_Will;
|
||||
_StorageOutRowsNew.QTT_To_DeliveryOut = _StorageOutRowsInRows.QTT_Will;
|
||||
_StorageOutRowsNew.QTT_Will = 0;
|
||||
_StorageOutRowsNew.RowIndex = 0;
|
||||
_StorageOutRowsNew.StorageComputed = _StorageOutRows.StorageComputed;
|
||||
_StorageOutRowsNew.StorageOutHeader = _StorageOutRows.StorageOutHeader;
|
||||
_StorageOutRowsNew.DividedGUID = _GUID;
|
||||
_StorageOutRowsNew.DividedOriginal = 2;
|
||||
|
||||
StorageOutRowsInRows _StorageOutRowsInRowsNew = _onew.CreateObject<StorageOutRowsInRows>();
|
||||
|
||||
_StorageOutRowsInRowsNew.StorageOutRows = _StorageOutRowsNew;
|
||||
_StorageOutRowsInRowsNew.QTT = _StorageOutRowsInRows.QTT_Will;
|
||||
_StorageOutRowsInRowsNew.QTT_To_DeliveryOut = _StorageOutRowsInRows.QTT_Will;
|
||||
_StorageOutRowsInRowsNew.QTT_Will = 0;
|
||||
_StorageOutRowsInRowsNew.RowIndex = 0;
|
||||
_StorageOutRowsInRowsNew.StorageInRows = _onew.GetObject(_StorageOutRowsInRows.StorageInRows);
|
||||
_StorageOutRowsInRowsNew.DividedGUID = _GUID;
|
||||
_StorageOutRowsInRowsNew.DividedOriginal = 2;
|
||||
|
||||
DeliveryNoteOutRows _DeliveryNoteOutRows = _onew.FindObject<DeliveryNoteOutRows>(CriteriaOperator.Parse("StorageOutRowsInRows.Oid=?",_StorageOutRowsInRows.Oid));
|
||||
if (_DeliveryNoteOutRows!=null)
|
||||
{
|
||||
if (_DeliveryNoteOutRows.DividedOriginal == 0) { _DeliveryNoteOutRows.DividedOriginal = 1; _DeliveryNoteOutRows.DividedGUID = _GUID; }
|
||||
_DeliveryNoteOutRows.QTT -= _StorageOutRowsInRows.QTT_Will;
|
||||
|
||||
DeliveryNoteOutRows _DeliveryNoteOutRowsNew = _onew.CreateObject<DeliveryNoteOutRows>();
|
||||
|
||||
_DeliveryNoteOutRowsNew.DeliveryNoteOutHeader = _onew.GetObject(_DeliveryNoteOutRows.DeliveryNoteOutHeader);
|
||||
_DeliveryNoteOutRowsNew.Note = "";
|
||||
_DeliveryNoteOutRowsNew.QTT = _StorageOutRowsInRows.QTT_Will;
|
||||
_DeliveryNoteOutRowsNew.QTT_Invoiced = 0;
|
||||
_DeliveryNoteOutRowsNew.QTT_Will = 0;
|
||||
_DeliveryNoteOutRowsNew.RowIndex = 0;
|
||||
_DeliveryNoteOutRowsNew.StorageOutRowsInRows = _StorageOutRowsInRowsNew;
|
||||
_DeliveryNoteOutRowsNew.DividedGUID = _GUID;
|
||||
_DeliveryNoteOutRowsNew.DividedOriginal = 2;
|
||||
}
|
||||
_onew.CommitChanges();
|
||||
}
|
||||
}
|
||||
//Frame.GetController<RefreshController>().RefreshAction.DoExecute();
|
||||
//View.Refresh();
|
||||
}
|
||||
private void aMoveOrderIn_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur = (XPObjectSpace)View.ObjectSpace;
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
OrderInHeader _OrderInHeader = (OrderInHeader)View.SelectedObjects[0];
|
||||
OrderInMovePopup _OrderInMovePopup = _onew.CreateObject<OrderInMovePopup>();
|
||||
|
||||
_onew.Session.ExecuteNonQuery("UPDATE StorageOutRowsInRows set DividedOriginal=0 WHERE DividedOriginal IS NULL");
|
||||
_OrderInMovePopup.OrderInHeader = _onew.GetObject<OrderInHeader>(_OrderInHeader);
|
||||
e.View = Application.CreateDetailView(_onew, "OrderInMovePopup_DetailView", true, _OrderInMovePopup);
|
||||
}
|
||||
private void aOrderInStorageOut_Execute(object sender, PopupWindowShowActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
UnitOfWork _uow_lock = new UnitOfWork(_onew.Session.DataLayer);
|
||||
User _User = _onew.GetObject(SecuritySystem.CurrentUser as User);
|
||||
StorageComputed _StorageComputed;
|
||||
|
||||
try
|
||||
{
|
||||
//--==Ellenőrzések==--
|
||||
//____________________________________________________________________________________________________________________
|
||||
OrderInHeader _OrderInHeader = _onew.GetObjectByKey<OrderInHeader>((View.SelectedObjects[0] as OrderInHeader).Oid);
|
||||
StorageSelectPopup _StorageSelectPopup = _onew.GetObject(e.PopupWindow.View.SelectedObjects[0] as StorageSelectPopup);
|
||||
if (_OrderInHeader.OrderInRows.Count <= 0)
|
||||
{
|
||||
throw new Exception(string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions\\OrderInRows", "NoRowsInOrder"),
|
||||
string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions", "MsgBoxCheckItAgain"))));
|
||||
}
|
||||
ArrayList _OrderInRows_Collection = new ArrayList();
|
||||
|
||||
foreach (OrderInRows _OrderInRows in _OrderInHeader.OrderInRows)
|
||||
{
|
||||
|
||||
if (_OrderInRows.QTT_Process > 0)
|
||||
{
|
||||
if (_OrderInRows.QTT_Process + _OrderInRows.QTT_Storaged + _OrderInRows.QTT_Storaged_Will > _OrderInRows.QTT)
|
||||
{
|
||||
//// Ha meghaladja a kitárolás a rendelteket
|
||||
throw new Exception(string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions\\OrderInRows", "TooMutchQuantityInOrderIn"),
|
||||
_OrderInRows.RowIndex.ToString() + string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions", "MsgBoxCheckItAgain"))));
|
||||
}
|
||||
if (_OrderInRows.QTT_Process + _OrderInRows.QTT_DeliveryNoted > _OrderInRows.QTT)
|
||||
{
|
||||
//// Ha meghaladja a kiszállítás a rendelteket
|
||||
throw new Exception(string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions\\OrderInRows", "TooMutchQuantityInOrderIn"),
|
||||
_OrderInRows.RowIndex.ToString() + string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions", "MsgBoxCheckItAgain"))));
|
||||
}
|
||||
//// Szabad készlet ellenőrzése
|
||||
_StorageComputed = _onew.FindObject<StorageComputed>(CriteriaOperator.Parse("Storage.Oid=? AND Products.Oid=?", _StorageSelectPopup.Storage.Oid,
|
||||
_OrderInRows.Products.Oid));
|
||||
if (_StorageComputed == null)
|
||||
{
|
||||
throw new Exception(string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions\\StorageComputed", "NoProductsInStorage"),
|
||||
_OrderInRows.RowIndex, _OrderInRows.Products.ShortName, _StorageSelectPopup.Storage.ShortName) + "\n" +
|
||||
string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions", "MsgBoxCheckItAgain")));
|
||||
}
|
||||
if ((_StorageComputed.QTTFree < _OrderInRows.QTT_Process))
|
||||
{
|
||||
throw new Exception(string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions\\StorageComputed", "NoProductsInStorage"),
|
||||
_OrderInRows.RowIndex, _OrderInRows.Products.ShortName, _StorageSelectPopup.Storage.ShortName) + "\n" +
|
||||
string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions", "MsgBoxCheckItAgain")));
|
||||
}
|
||||
if (_StorageComputed != null)
|
||||
{
|
||||
//// Mimimum ár ellenőrzés
|
||||
if ((Application.Model.Options as IModelOptionsExtender).RequreMinimumPriceCheck)
|
||||
{
|
||||
if (_StorageComputed.MimumumPriceOutHUF < _OrderInRows.FinalPriceHUF)
|
||||
{
|
||||
throw new Exception(string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions\\StorageComputed", "BadMinimumPrice"),
|
||||
_OrderInRows.RowIndex, _OrderInRows.Products.ShortName, _StorageComputed.MimumumPriceOutHUF, _OrderInRows.FinalPriceHUF) + "\n" +
|
||||
string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions", "MsgBoxCheckItAgain")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_OrderInRows_Collection.Add(_onew.GetObjectByKey<OrderInRows>(_OrderInRows.Oid));
|
||||
}
|
||||
}
|
||||
|
||||
if (_OrderInRows_Collection.Count == 0)
|
||||
throw new Exception(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions\\OrderInRows", "NoSelectionforStorageOutandDeliveryNoteOut") + "\n" +
|
||||
string.Format(CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions", "MsgBoxCheckItAgain")));
|
||||
|
||||
//--==Zárolás==--
|
||||
//____________________________________________________________________________________________________________________
|
||||
if (!LockingModule.LockObject(_uow_lock, typeof(StorageComputed), "-", _User))
|
||||
{
|
||||
LockingObject _LockingObject = _onew.FindObject<LockingObject>(CriteriaOperator.Parse("TableName=?", typeof(StorageComputed).Name + "-" + "-"));
|
||||
|
||||
string _Prompt = DevExpress.ExpressApp.Utils.CaptionHelper.GetLocalizedText("Exceptions\\NuvolarExceptions\\StorageComputed", "CanNotStorageInByLocking");
|
||||
throw new Exception(string.Format(_Prompt, _LockingObject.User.FullName, _LockingObject.ObjectCreated));
|
||||
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
//--==Kitárolás==--
|
||||
//____________________________________________________________________________________________________________________
|
||||
StorageOutHeader _StorageOutHeader = new StorageOutHeader(_onew.Session);
|
||||
|
||||
_StorageOutHeader.Active = true;
|
||||
_StorageOutHeader.CustomersFrom = _onew.GetObjectByKey<CustomersFrom>(_OrderInHeader.CustomersFrom.Oid);
|
||||
_StorageOutHeader.Customers = _onew.GetObjectByKey<Customers>(_OrderInHeader.Customers.Oid);
|
||||
_StorageOutHeader.StorageMoveType = _onew.GetObjectByKey<StorageMoveType>(_StorageSelectPopup.StorageMoveType.Oid);
|
||||
_StorageOutHeader.Storage = _onew.GetObjectByKey<Storage>(_StorageSelectPopup.Storage.Oid);
|
||||
|
||||
foreach (OrderInRows _OrderInRows in _OrderInRows_Collection)
|
||||
{
|
||||
double _QTT_Mod = 0;
|
||||
double _QTT_Free = 0;
|
||||
double _QTT_ReservedOut = 0;
|
||||
double _QTT_Will_Out = 0;
|
||||
|
||||
StorageOutRows _StorageOutRows = new StorageOutRows(_onew.Session);
|
||||
_StorageOutRows.StorageOutHeader = _StorageOutHeader;
|
||||
_StorageOutRows.Products = _onew.GetObjectByKey<Products>(_OrderInRows.Products.Oid);
|
||||
_StorageOutRows.OrderInRows = _onew.GetObjectByKey<OrderInRows>(_OrderInRows.Oid);
|
||||
XPCollection<StorageInRows> _StorageInRows_Collection = new XPCollection<StorageInRows>(PersistentCriteriaEvaluationBehavior.InTransaction,
|
||||
_onew.Session, CriteriaOperator.Parse("StorageInHeader.Storage=? and StorageInHeader.IsEditable=False and StorageInHeader.IsStorno=False and Products=?",
|
||||
_StorageOutHeader.Storage, _onew.GetObjectByKey<Products>(_OrderInRows.Products.Oid)));
|
||||
_StorageInRows_Collection.Sorting.Add(new SortProperty("StorageInHeader.CreateDate", DevExpress.Xpo.DB.SortingDirection.Ascending));
|
||||
|
||||
_QTT_Mod = _OrderInRows.QTT_Process;
|
||||
foreach (StorageInRows _StorageInRows in _StorageInRows_Collection)
|
||||
{
|
||||
_QTT_Free = _StorageInRows.QTT - _StorageInRows.QTT_Out - _StorageInRows.QTT_Out_Will;
|
||||
if (_QTT_Free > 0)
|
||||
{
|
||||
if (_QTT_Free < _QTT_Mod)
|
||||
{
|
||||
_StorageInRows.QTT_Out_Will += _QTT_Free;
|
||||
_StorageOutRows.QTT_Will += _QTT_Free;
|
||||
_QTT_Mod -= _QTT_Free;
|
||||
//------- FIFO sor beszúrása
|
||||
StorageOutRowsInRows _StorageOutRowsInRows = _onew.FindObject<StorageOutRowsInRows>(CriteriaOperator.Parse("StorageInRows=? and StorageOutRows=?", _StorageInRows, _StorageOutRows), true);
|
||||
if (_StorageOutRowsInRows != null)
|
||||
{
|
||||
_StorageOutRowsInRows.QTT += _QTT_Free;
|
||||
}
|
||||
else
|
||||
{
|
||||
_StorageOutRowsInRows = new StorageOutRowsInRows(_onew.Session);
|
||||
_StorageOutRowsInRows.StorageInRows = _StorageInRows;
|
||||
_StorageOutRowsInRows.StorageOutRows = _StorageOutRows;
|
||||
_StorageOutRowsInRows.QTT = _QTT_Free;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
_StorageInRows.QTT_Out_Will += _QTT_Mod;
|
||||
_StorageOutRows.QTT_Will += _QTT_Mod;
|
||||
//------- FIFO sor beszúrása
|
||||
StorageOutRowsInRows _StorageOutRowsInRows = _onew.FindObject<StorageOutRowsInRows>(CriteriaOperator.Parse("StorageInRows=? and StorageOutRows=?", _StorageInRows, _StorageOutRows), true);
|
||||
if (_StorageOutRowsInRows != null)
|
||||
{
|
||||
_StorageOutRowsInRows.QTT += _QTT_Mod;
|
||||
}
|
||||
else
|
||||
{
|
||||
_StorageOutRowsInRows = new StorageOutRowsInRows(_onew.Session);
|
||||
_StorageOutRowsInRows.StorageInRows = _StorageInRows;
|
||||
_StorageOutRowsInRows.StorageOutRows = _StorageOutRows;
|
||||
_StorageOutRowsInRows.QTT = _QTT_Mod;
|
||||
}
|
||||
|
||||
break; // TODO: might not be correct. Was : Exit For
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_StorageOutRows.RowIndex = _StorageOutHeader.StorageOutRows.Count;
|
||||
|
||||
_StorageComputed = _onew.FindObject<StorageComputed>(CriteriaOperator.Parse("Storage=? and Products=?", _StorageOutHeader.Storage,
|
||||
_onew.GetObjectByKey<Products>(_OrderInRows.Products.Oid)), true);
|
||||
_QTT_ReservedOut = _StorageComputed.QTTReservedOut;
|
||||
XPCollection<StorageOutRows> _StorageOutRows_Collection_R = new XPCollection<StorageOutRows>(PersistentCriteriaEvaluationBehavior.InTransaction,
|
||||
_onew.Session, CriteriaOperator.Parse("QTT_Will>0 and StorageOutHeader.Storage=? and Products=?", _StorageOutHeader.Storage,
|
||||
_onew.GetObjectByKey<Products>(_OrderInRows.Products.Oid)));
|
||||
foreach (StorageOutRows _StorageOutRows_R in _StorageOutRows_Collection_R)
|
||||
{
|
||||
_QTT_Will_Out += _StorageOutRows_R.QTT_Will;
|
||||
}
|
||||
|
||||
_StorageComputed.QTTFree = _StorageComputed.QTTFree - (_QTT_Will_Out - _QTT_ReservedOut);
|
||||
_StorageComputed.QTTReservedOut = _QTT_Will_Out;
|
||||
}
|
||||
|
||||
//--Kitárolás véglegesítése--
|
||||
//____________________________________________________________________________________________________________________
|
||||
|
||||
foreach (StorageOutRows _StorageOutRows in _StorageOutHeader.StorageOutRows)
|
||||
{
|
||||
XPCollection<StorageOutRowsInRows> _StorageOutRowsInRows_Collection = new XPCollection<StorageOutRowsInRows>(PersistentCriteriaEvaluationBehavior.InTransaction, _onew.Session, CriteriaOperator.Parse("StorageOutRows=?", _StorageOutRows));
|
||||
|
||||
foreach (StorageOutRowsInRows _StorageOutRowsInRows in _StorageOutRowsInRows_Collection)
|
||||
{
|
||||
if (_StorageOutRowsInRows.QTT > 0)
|
||||
{
|
||||
XPCollection<StorageMoveEvents> _StorageMoveEvents_Collection = new XPCollection<StorageMoveEvents>(PersistentCriteriaEvaluationBehavior.InTransaction, _onew.Session, CriteriaOperator.Parse("StorageInRows=?", _StorageOutRowsInRows.StorageInRows));
|
||||
_StorageMoveEvents_Collection.Sorting.Add(new SortProperty("ObjectCreated", DevExpress.Xpo.DB.SortingDirection.Descending));
|
||||
|
||||
_StorageOutRowsInRows.StorageInRows.QTT_Out += _StorageOutRowsInRows.QTT;
|
||||
_StorageOutRowsInRows.StorageInRows.QTT_Out_Will -= _StorageOutRowsInRows.QTT;
|
||||
|
||||
StorageMoveEvents _StorageMoveEvents = new StorageMoveEvents(_onew.Session);
|
||||
_StorageMoveEvents.StorageInRows = _StorageOutRowsInRows.StorageInRows;
|
||||
_StorageMoveEvents.StorageOutRows = _StorageOutRowsInRows.StorageOutRows;
|
||||
if (_StorageMoveEvents_Collection.Count > 0)
|
||||
{
|
||||
_StorageMoveEvents.QTT_Free_Before = _StorageMoveEvents_Collection[0].QTT_Free_After;
|
||||
}
|
||||
else
|
||||
{
|
||||
_StorageMoveEvents.QTT_Free_Before = 0;
|
||||
}
|
||||
_StorageMoveEvents.QTT = (-1) * _StorageOutRowsInRows.QTT;
|
||||
_StorageMoveEvents.QTT_Free_After = _StorageMoveEvents.QTT_Free_Before + _StorageMoveEvents.QTT;
|
||||
_StorageMoveEvents.MoveEventsType = eMoveEventsType.StorageOutFinal;
|
||||
_StorageMoveEvents.ExecutionDate = _StorageOutRowsInRows.StorageOutRows.StorageOutHeader.CreateDate;
|
||||
}
|
||||
}
|
||||
|
||||
_StorageOutRows.QTT += _StorageOutRows.QTT_Will;
|
||||
|
||||
if (_StorageOutRows.OrderInRows != null)
|
||||
{
|
||||
double _QTT_WillOrug = _StorageOutRows.QTT_Will;
|
||||
OrderInRows _OrderInRows = _onew.GetObjectByKey<OrderInRows>(_StorageOutRows.OrderInRows.Oid);
|
||||
_OrderInRows.QTT_Storaged += _StorageOutRows.QTT_Will;
|
||||
_OrderInRows.QTT_Process = 0;
|
||||
}
|
||||
_StorageComputed = _onew.FindObject<StorageComputed>(CriteriaOperator.Parse("Products=? and Storage=?", _StorageOutRows.Products, _StorageOutRows.StorageOutHeader.Storage), true);
|
||||
_StorageComputed.QTTReservedOut -= _StorageOutRows.QTT_Will;
|
||||
_StorageOutRows.QTT_Will = 0;
|
||||
}
|
||||
|
||||
_StorageOutHeader.IsEditable = false;
|
||||
_StorageOutHeader.IsFinalized = true;
|
||||
|
||||
_onew.CommitChanges();
|
||||
Frame.GetController<RefreshController>().RefreshAction.DoExecute();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
LockingModule.UnLockObject(_uow_lock, typeof(StorageComputed), "-", _User);
|
||||
}
|
||||
}
|
||||
private void aOrderInStorageOut_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e)
|
||||
{
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
OrderInHeader _OrderInHeader = View.SelectedObjects[0] as OrderInHeader;
|
||||
StorageSelectPopup _StorageSelectPopup = _onew.CreateObject<StorageSelectPopup>();
|
||||
|
||||
e.View = Application.CreateDetailView(_onew, "StorageSelectPopup_DetailView", false, _StorageSelectPopup);
|
||||
}
|
||||
|
||||
private void aMoveOrderInBack_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
OrderInRows _OrderInRows = View.SelectedObjects[0] as OrderInRows;
|
||||
UnitOfWork _uow = new UnitOfWork(_onew.Session.DataLayer);
|
||||
if (_OrderInRows!=null && _OrderInRows.DividedOriginal==1)
|
||||
{
|
||||
Guid _GUID = _OrderInRows.DividedGUID;
|
||||
double _QTT = _OrderInRows.QTT;
|
||||
string _SQL = "";
|
||||
// s.ExecuteNonQuery("UPDATE Products SET ProductName='a_'+ProductName WHERE UnitPrice>@price AND ProductName LIKE 'A%'", new string[] { "@price" }, new object[] { 10 });
|
||||
// StorageOutRowsInRows
|
||||
|
||||
try
|
||||
{
|
||||
string[] _stringparam = null;
|
||||
object[] _objectparam = null;
|
||||
|
||||
_uow.ExplicitBeginTransaction();
|
||||
|
||||
XPQuery<StorageOutRowsInRows> _StorageOutRowsInRows_Q = new XPQuery<StorageOutRowsInRows>(_uow, true);
|
||||
var query = from q in _StorageOutRowsInRows_Q
|
||||
where q.DividedGUID == _GUID
|
||||
group q by q.StorageInRows into g
|
||||
select new { a = g.Key.Oid, s = g.Sum(x => x.QTT) };
|
||||
foreach (var item in query)
|
||||
{
|
||||
_SQL = "UPDATE StorageOutRowsInRows set QTT=@QTT,QTT_To_DeliveryOut=@QTT WHERE StorageInRows=@StorageInRows AND DividedGUID=@DividedGUID AND DividedOriginal=1";
|
||||
_stringparam = new string[] { "@QTT", "@StorageInRows", "@DividedGUID" };
|
||||
_objectparam = new object[] { item.s, item.a, _GUID };
|
||||
_uow.ExecuteNonQuery(_SQL, _stringparam, _objectparam);
|
||||
}
|
||||
|
||||
XPQuery<StorageOutRows> _StorageOutRows_Q = new XPQuery<StorageOutRows>(_uow, true);
|
||||
var query2 = from q in _StorageOutRows_Q
|
||||
where q.DividedGUID == _GUID
|
||||
group q by q.DividedGUID into g
|
||||
select new { a = g.Key, s = g.Sum(x => x.QTT) };
|
||||
foreach (var item in query2)
|
||||
{
|
||||
_SQL = "UPDATE StorageOutRows set QTT=@QTT WHERE DividedGUID=@DividedGUID AND DividedOriginal=1";
|
||||
_stringparam = new string[] { "@QTT", "@DividedGUID" };
|
||||
_objectparam = new object[] { item.s, _GUID };
|
||||
_uow.ExecuteNonQuery(_SQL, _stringparam, _objectparam);
|
||||
}
|
||||
|
||||
XPQuery<StorageOutRowsInRows> _StorageOutRowsInRows_QD = new XPQuery<StorageOutRowsInRows>(_uow, true);
|
||||
var query3 = from q in _StorageOutRowsInRows_QD
|
||||
where q.DividedGUID == _GUID && q.DividedOriginal == 1
|
||||
group q by q.Oid into g
|
||||
select new { a = g.Key, s = g.Sum(x => x.QTT) };
|
||||
foreach (var item in query3)
|
||||
{
|
||||
_SQL = "UPDATE DeliveryNoteOutRows set QTT=@QTT WHERE StorageOutRowsInRows=@StorageOutRowsInRows AND DividedGUID=@DividedGUID AND DividedOriginal=1";
|
||||
_stringparam = new string[] { "@QTT", "@StorageOutRowsInRows", "@DividedGUID" };
|
||||
_objectparam = new object[] { item.s, item.a, _GUID };
|
||||
_uow.ExecuteNonQuery(_SQL, _stringparam, _objectparam);
|
||||
}
|
||||
XPQuery<OrderInRows> _OrderInRows_Q = new XPQuery<OrderInRows>(_uow, true);
|
||||
var query4 = from q in _OrderInRows_Q
|
||||
where q.DividedGUID == _GUID
|
||||
group q by q.DividedGUID into g
|
||||
select new { a = g.Key, s = g.Sum(x => x.QTT) };
|
||||
foreach (var item in query4)
|
||||
{
|
||||
_SQL = "UPDATE OrderInRows set QTT=@QTT,QTT_DeliveryNoted=@QTT,QTT_Storaged=@QTT WHERE DividedGUID=@DividedGUID AND DividedOriginal=1";
|
||||
_stringparam = new string[] { "@QTT", "@DividedGUID" };
|
||||
_objectparam = new object[] { item.s, _GUID };
|
||||
_uow.ExecuteNonQuery(_SQL, _stringparam, _objectparam);
|
||||
}
|
||||
// -------========= Törlések ==========-------------
|
||||
_SQL = "DELETE FROM DeliveryNoteOutRows WHERE DividedGUID=@DividedGUID AND DividedOriginal=2";
|
||||
_stringparam = new string[] { "@DividedGUID" };
|
||||
_objectparam = new object[] { _GUID };
|
||||
_uow.ExecuteNonQuery(_SQL, _stringparam, _objectparam);
|
||||
|
||||
_SQL = "DELETE FROM StorageOutRowsInRows WHERE DividedGUID=@DividedGUID AND DividedOriginal=2";
|
||||
_stringparam = new string[] { "@DividedGUID" };
|
||||
_objectparam = new object[] { _GUID };
|
||||
_uow.ExecuteNonQuery(_SQL, _stringparam, _objectparam);
|
||||
|
||||
_SQL = "DELETE FROM StorageOutRows WHERE DividedGUID=@DividedGUID AND DividedOriginal=2";
|
||||
_stringparam = new string[] { "@DividedGUID" };
|
||||
_objectparam = new object[] { _GUID };
|
||||
_uow.ExecuteNonQuery(_SQL, _stringparam, _objectparam);
|
||||
|
||||
_SQL = "DELETE FROM OrderInRows WHERE DividedGUID=@DividedGUID AND DividedOriginal=2";
|
||||
_stringparam = new string[] { "@DividedGUID" };
|
||||
_objectparam = new object[] { _GUID };
|
||||
_uow.ExecuteNonQuery(_SQL, _stringparam, _objectparam);
|
||||
|
||||
_uow.ExplicitCommitTransaction();
|
||||
|
||||
}
|
||||
catch (Exception _Exception)
|
||||
{
|
||||
_uow.ExplicitRollbackTransaction();
|
||||
throw _Exception;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_uow.ExplicitRollbackTransaction();
|
||||
}
|
||||
}
|
||||
NestedFrame nestedFrame = Frame as NestedFrame;
|
||||
if (nestedFrame != null)
|
||||
{
|
||||
View parentView = nestedFrame.View as View;
|
||||
if (parentView != null)
|
||||
parentView.ObjectSpace.Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void aDeliveryNoteOutPrint_Divided_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||
DeliveryNoteOutRows _DeliveryNoteOutRows = View.SelectedObjects[0] as DeliveryNoteOutRows;
|
||||
|
||||
if (_DeliveryNoteOutRows !=null)
|
||||
{
|
||||
XAFPrintHelper _XAFPrintHelper = new XAFPrintHelper(_ocur, Frame, _DeliveryNoteOutRows.DeliveryNoteOutHeader.DeliveryNoteOutType.ReportDataV2, CriteriaOperator.Parse("Oid=?",_DeliveryNoteOutRows.Oid));
|
||||
_XAFPrintHelper.ShowPreviewV2();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
<?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="aMoveOrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 95</value>
|
||||
</metadata>
|
||||
<metadata name="aOrderInStorageOut.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aMoveOrderInBack.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>180, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aDeliveryNoteOutPrint_Divided.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>192, 368</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,55 @@
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
partial class Products_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.aUNCheck = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
//
|
||||
// aUNCheck
|
||||
//
|
||||
this.aUNCheck.Caption = "aUNCheck";
|
||||
this.aUNCheck.ConfirmationMessage = null;
|
||||
this.aUNCheck.Id = "aUNCheck";
|
||||
this.aUNCheck.TargetObjectType = typeof(Nuvolar.Module.Products);
|
||||
this.aUNCheck.TargetViewType = DevExpress.ExpressApp.ViewType.ListView;
|
||||
this.aUNCheck.ToolTip = null;
|
||||
this.aUNCheck.TypeOfView = typeof(DevExpress.ExpressApp.ListView);
|
||||
this.aUNCheck.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aUNCheck_Execute);
|
||||
//
|
||||
// Products_VC
|
||||
//
|
||||
this.Actions.Add(this.aUNCheck);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.ExpressApp.Actions.SimpleAction aUNCheck;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
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;
|
||||
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
public partial class Products_VC : ViewController
|
||||
{
|
||||
public Products_VC()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
// Perform various tasks depending on the target View.
|
||||
}
|
||||
protected override void OnViewControlsCreated()
|
||||
{
|
||||
base.OnViewControlsCreated();
|
||||
// Access and customize the target View control.
|
||||
}
|
||||
protected override void OnDeactivated()
|
||||
{
|
||||
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||
base.OnDeactivated();
|
||||
}
|
||||
|
||||
private void aUNCheck_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _onew = Application.CreateObjectSpace() as XPObjectSpace;
|
||||
|
||||
XPCollection<Products> _Products_Collection =new XPCollection<Products>(_onew.Session,CriteriaOperator.Parse("UNNumber like 'UN%'"));
|
||||
|
||||
foreach (Products _Products in _Products_Collection)
|
||||
{
|
||||
UNList _UNList = _onew.FindObject<UNList>(CriteriaOperator.Parse("ShortName=?",_Products.UNNumber));
|
||||
ProductsUNList _ProductsUNList = _onew.FindObject<ProductsUNList>(CriteriaOperator.Parse("Products=? and UNList=?",_Products,_UNList));
|
||||
if (_ProductsUNList==null && _UNList!=null)
|
||||
{
|
||||
_ProductsUNList = _onew.CreateObject<ProductsUNList>();
|
||||
_ProductsUNList.Products = _Products;
|
||||
_ProductsUNList.UNList = _UNList;
|
||||
_onew.CommitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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="aUNCheck.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,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,56 @@
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
partial class ReportV2_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.aConvertToReportV2 = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
//
|
||||
// aConvertToReportV2
|
||||
//
|
||||
this.aConvertToReportV2.Caption = "aConvert To Report V2";
|
||||
this.aConvertToReportV2.ConfirmationMessage = null;
|
||||
this.aConvertToReportV2.Id = "aConvertToReportV2";
|
||||
this.aConvertToReportV2.TargetObjectType = typeof(DevExpress.Persistent.BaseImpl.ReportData);
|
||||
this.aConvertToReportV2.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
|
||||
this.aConvertToReportV2.TargetViewType = DevExpress.ExpressApp.ViewType.ListView;
|
||||
this.aConvertToReportV2.ToolTip = null;
|
||||
this.aConvertToReportV2.TypeOfView = typeof(DevExpress.ExpressApp.ListView);
|
||||
this.aConvertToReportV2.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aConvertToReportV2_Execute);
|
||||
//
|
||||
// ReportV2_VC
|
||||
//
|
||||
this.Actions.Add(this.aConvertToReportV2);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.ExpressApp.Actions.SimpleAction aConvertToReportV2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
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.Persistent.BaseImpl;
|
||||
using DevExpress.ExpressApp.Reports;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using DevExpress.Persistent.Base.ReportsV2;
|
||||
using System.IO;
|
||||
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
public partial class ReportV2_VC : ViewController
|
||||
{
|
||||
public ReportV2_VC()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
// Perform various tasks depending on the target View.
|
||||
}
|
||||
protected override void OnViewControlsCreated()
|
||||
{
|
||||
base.OnViewControlsCreated();
|
||||
// Access and customize the target View control.
|
||||
}
|
||||
protected override void OnDeactivated()
|
||||
{
|
||||
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||
base.OnDeactivated();
|
||||
}
|
||||
|
||||
private void aConvertToReportV2_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur = View.ObjectSpace as XPObjectSpace;
|
||||
foreach (ReportData _ReportData in View.SelectedObjects)
|
||||
{
|
||||
if (_ocur.FindObject<ReportDataV2>(new BinaryOperator("DisplayName", _ReportData.ReportName)) == null)
|
||||
{
|
||||
ReportDataV2 reportDataV2 = _ocur.CreateObject<ReportDataV2>();
|
||||
reportDataV2.DisplayName = _ReportData.ReportName;
|
||||
XafReport report = (XafReport)_ReportData.LoadReport(_ocur);
|
||||
XtraReport reportV2 = new XtraReport();
|
||||
CollectionDataSource dataSource = new CollectionDataSource();
|
||||
dataSource.ObjectTypeName = report.DataType.FullName;
|
||||
dataSource.CriteriaString = report.Filtering.Filter;
|
||||
using (MemoryStream ms = new MemoryStream())
|
||||
{
|
||||
report.SaveLayout(ms);
|
||||
ms.Seek(0, SeekOrigin.Begin);
|
||||
reportV2.LoadLayout(ms);
|
||||
reportV2.DataSource = dataSource;
|
||||
}
|
||||
DevExpress.ExpressApp.ReportsV2.ReportDataProvider.ReportsStorage.SaveReport(reportDataV2, reportV2);
|
||||
|
||||
}
|
||||
}
|
||||
_ocur.CommitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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="aConvertToReportV2.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,51 @@
|
||||
using System;
|
||||
using DevExpress.ExpressApp.Actions;
|
||||
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
partial class StoragePDACollectionHeader_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()
|
||||
{
|
||||
//
|
||||
// aStoragePDARow_Divide
|
||||
//
|
||||
this.aStoragePDARow_Divide.CustomizePopupWindowParams += new DevExpress.ExpressApp.Actions.CustomizePopupWindowParamsEventHandler(this.aStoragePDARow_Divide_CustomizePopupWindowParams);
|
||||
this.aStoragePDARow_Divide.Execute += new DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventHandler(this.aStoragePDARow_Divide_Execute);
|
||||
//
|
||||
// aStoragePDARow_Merge
|
||||
//
|
||||
this.aStoragePDARow_Merge.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireMultipleObjects;
|
||||
this.aStoragePDARow_Merge.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aStoragePDARow_Merge_Execute);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
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 Nuvolar.Module.BusinessObjects;
|
||||
using DevExpress.Xpo;
|
||||
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
public partial class StoragePDACollectionHeader_VC : Nuvolar.Module.StoragePDACollectionHeaderVC
|
||||
{
|
||||
public StoragePDACollectionHeader_VC()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
// Perform various tasks depending on the target View.
|
||||
}
|
||||
protected override void OnViewControlsCreated()
|
||||
{
|
||||
base.OnViewControlsCreated();
|
||||
// Access and customize the target View control.
|
||||
}
|
||||
protected override void OnDeactivated()
|
||||
{
|
||||
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||
base.OnDeactivated();
|
||||
}
|
||||
|
||||
private void aStoragePDARow_Divide_Execute(object sender, PopupWindowShowActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur = (XPObjectSpace)View.ObjectSpace;
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
StoragePDACollectionRowsH _StoragePDACollectionRowsH = (StoragePDACollectionRowsH)e.PopupWindow.View.SelectedObjects[0];
|
||||
StoragePDACollectionRows _StoragePDACollectionRows = (StoragePDACollectionRows)View.SelectedObjects[0];
|
||||
|
||||
if (_StoragePDACollectionRowsH.QTT_Will > 0 && _StoragePDACollectionRows.QTT>= _StoragePDACollectionRowsH.QTT_Will)
|
||||
{
|
||||
StoragePDACollectionRows _StoragePDACollectionRows_Divided = _ocur.CreateObject<StoragePDACollectionRows>();
|
||||
_StoragePDACollectionRows_Divided.ConnectOid = _StoragePDACollectionRows.Oid;
|
||||
_StoragePDACollectionRows.ConnectOid = _StoragePDACollectionRows.Oid;
|
||||
_StoragePDACollectionRows.QTT = _StoragePDACollectionRows.QTT - _StoragePDACollectionRowsH.QTT_Will;
|
||||
|
||||
_StoragePDACollectionRows_Divided.Barcode = _StoragePDACollectionRows.Barcode;
|
||||
_StoragePDACollectionRows_Divided.Description = _StoragePDACollectionRows.Description;
|
||||
_StoragePDACollectionRows_Divided.PacketNumber = _StoragePDACollectionRows.PacketNumber;
|
||||
_StoragePDACollectionRows_Divided.Products = _StoragePDACollectionRows.Products;
|
||||
_StoragePDACollectionRows_Divided.QTT = _StoragePDACollectionRowsH.QTT_Will;
|
||||
_StoragePDACollectionRows_Divided.SerialNumber = "";
|
||||
_StoragePDACollectionRows_Divided.StorageLocation = null;
|
||||
_StoragePDACollectionRows_Divided.StoragePDACollectionHeader = _StoragePDACollectionRows.StoragePDACollectionHeader;
|
||||
_ocur.CommitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
private void aStoragePDARow_Divide_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur = (XPObjectSpace)View.ObjectSpace;
|
||||
XPObjectSpace _onew = (XPObjectSpace)Application.CreateObjectSpace();
|
||||
StoragePDACollectionRowsH _StoragePDACollectionRowsH=_onew.CreateObject<StoragePDACollectionRowsH>();
|
||||
|
||||
StoragePDACollectionRows _StoragePDACollectionRows = (StoragePDACollectionRows)View.SelectedObjects[0];
|
||||
Guid _ConnectOid = _StoragePDACollectionRows.ConnectOid;
|
||||
|
||||
double _QTT_Remaining = 0;
|
||||
double _QTT_Divided = 0;
|
||||
double _QTT_Original = 0;
|
||||
if (_ConnectOid==Guid.Empty)
|
||||
{
|
||||
_QTT_Remaining = _StoragePDACollectionRows.QTT;
|
||||
_QTT_Divided = 0;
|
||||
_QTT_Original = _StoragePDACollectionRows.QTT;
|
||||
}
|
||||
else
|
||||
{
|
||||
XPCollection<StoragePDACollectionRows> _StoragePDACollectionRows_Collection = new XPCollection<StoragePDACollectionRows>(_ocur.Session,
|
||||
CriteriaOperator.Parse("ConnectOid=? and StoragePDACollectionHeader=?", _ConnectOid,_StoragePDACollectionRows.StoragePDACollectionHeader));
|
||||
foreach (StoragePDACollectionRows _SPDACR in _StoragePDACollectionRows_Collection)
|
||||
{
|
||||
_QTT_Original += _SPDACR.QTT;
|
||||
if (_SPDACR.StorageLocation!=null)
|
||||
{
|
||||
_QTT_Divided += _SPDACR.QTT;
|
||||
}
|
||||
}
|
||||
_QTT_Remaining = _QTT_Original - _QTT_Divided;
|
||||
}
|
||||
_StoragePDACollectionRowsH.QTT_Original = _QTT_Original;
|
||||
_StoragePDACollectionRowsH.QTT_Divided = _QTT_Divided;
|
||||
_StoragePDACollectionRowsH.QTT_Remaining = _QTT_Remaining;
|
||||
|
||||
e.View = Application.CreateDetailView(_onew, "StoragePDACollectionRowsH_DetailView", true, _StoragePDACollectionRowsH);
|
||||
}
|
||||
|
||||
private void aStoragePDARow_Merge_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
XPObjectSpace _ocur = (XPObjectSpace)View.ObjectSpace;
|
||||
StoragePDACollectionRows _StoragePDACollectionRows_Base = (StoragePDACollectionRows)View.SelectedObjects[0];
|
||||
List<StoragePDACollectionRows> _CC = new List<StoragePDACollectionRows>();
|
||||
foreach (StoragePDACollectionRows _StoragePDACollectionRows in View.SelectedObjects)
|
||||
{
|
||||
if (_StoragePDACollectionRows.Oid!=_StoragePDACollectionRows_Base.Oid)
|
||||
{
|
||||
if (_StoragePDACollectionRows.ConnectOid==_StoragePDACollectionRows_Base.ConnectOid)
|
||||
{
|
||||
if (_StoragePDACollectionRows.StorageLocation==_StoragePDACollectionRows_Base.StorageLocation)
|
||||
{
|
||||
_CC.Add(_StoragePDACollectionRows);
|
||||
_StoragePDACollectionRows_Base.QTT = _StoragePDACollectionRows_Base.QTT + _StoragePDACollectionRows.QTT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
_ocur.Delete(_CC);
|
||||
_ocur.CommitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="aImportCSVToStoragePDA.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>392, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aStoragePDARow_Divide.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>205, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aStoragePDARow_Merge.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,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Nuvolar.Module.Controllers
|
||||
{
|
||||
public class WorkEventArgs:EventArgs
|
||||
{
|
||||
public int Count { get; set; }
|
||||
public int CurrentValue { get; set; }
|
||||
public string Message { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
namespace Nuvolar.Module.Controllers.nopCommerce
|
||||
{
|
||||
partial class nopC_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.anopC_LoadHU = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
|
||||
//
|
||||
// anopC_LoadHU
|
||||
//
|
||||
this.anopC_LoadHU.Caption = "anopC_LoadHU";
|
||||
this.anopC_LoadHU.ConfirmationMessage = null;
|
||||
this.anopC_LoadHU.Id = "anopC_LoadHU";
|
||||
this.anopC_LoadHU.TargetObjectType = typeof(Nuvolar.Module.BusinessObjects.nopCommerce.nopCParameters);
|
||||
this.anopC_LoadHU.TargetViewNesting = DevExpress.ExpressApp.Nesting.Root;
|
||||
this.anopC_LoadHU.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView;
|
||||
this.anopC_LoadHU.ToolTip = null;
|
||||
this.anopC_LoadHU.TypeOfView = typeof(DevExpress.ExpressApp.DetailView);
|
||||
this.anopC_LoadHU.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.anopC_LoadHU_Execute);
|
||||
//
|
||||
// nopC_VC
|
||||
//
|
||||
this.Actions.Add(this.anopC_LoadHU);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.ExpressApp.Actions.SimpleAction anopC_LoadHU;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using DevExpress.ExpressApp;
|
||||
using DevExpress.ExpressApp.Actions;
|
||||
using System.Xml;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Diagnostics;
|
||||
using Nuvolar.Module.BusinessObjects.nopCommerce;
|
||||
|
||||
namespace Nuvolar.Module.Controllers.nopCommerce
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
|
||||
public partial class nopC_VC : ViewController
|
||||
{
|
||||
public nopC_VC()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Target required Views (via the TargetXXX properties) and create their Actions.
|
||||
}
|
||||
protected override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
// Perform various tasks depending on the target View.
|
||||
}
|
||||
protected override void OnViewControlsCreated()
|
||||
{
|
||||
base.OnViewControlsCreated();
|
||||
// Access and customize the target View control.
|
||||
}
|
||||
protected override void OnDeactivated()
|
||||
{
|
||||
// Unsubscribe from previously subscribed events and release other references and resources.
|
||||
base.OnDeactivated();
|
||||
}
|
||||
|
||||
private void anopC_LoadHU_Execute(object sender, SimpleActionExecuteEventArgs e)
|
||||
{
|
||||
nopCParameters _nopCParameters=(nopCParameters)View.SelectedObjects[0];
|
||||
|
||||
StreamReader _textStreamReader;
|
||||
string _StrBuffer;
|
||||
Assembly _assembly = Assembly.GetExecutingAssembly();
|
||||
_textStreamReader = new StreamReader(_assembly.GetManifestResourceStream("Nuvolar.Module.XML.nopCommerce_hu.xml"));
|
||||
_StrBuffer = _textStreamReader.ReadToEnd();
|
||||
DevExpress.Xpo.Session _Session = new DevExpress.Xpo.Session();
|
||||
|
||||
_Session.ConnectionString = DevExpress.Xpo.DB.MSSqlConnectionProvider.GetConnectionString(string.Format("{0},{1}", _nopCParameters.SQLServer, _nopCParameters.SQLPort),
|
||||
_nopCParameters.SQLUserName, _nopCParameters.SQLPassword, "NCC");
|
||||
_Session.AutoCreateOption = DevExpress.Xpo.DB.AutoCreateOption.SchemaAlreadyExists;
|
||||
|
||||
if (_Session.IsConnected) { _Session.Disconnect(); };
|
||||
|
||||
|
||||
_Session.Connect();
|
||||
XmlReaderSettings _XmlReaderSettings = new XmlReaderSettings();
|
||||
using (XmlReader _XMLReader = XmlReader.Create(new StringReader(_StrBuffer)))
|
||||
{
|
||||
|
||||
while (_XMLReader.Read())
|
||||
{
|
||||
string _ResourceName;
|
||||
string _ResourceValue;
|
||||
_XMLReader.ReadToFollowing("LocaleResource");
|
||||
_XMLReader.MoveToFirstAttribute();
|
||||
_ResourceName = _XMLReader.Value;
|
||||
_XMLReader.ReadToFollowing("Value");
|
||||
if (_XMLReader.Name=="Value")
|
||||
{
|
||||
_ResourceValue = _XMLReader.ReadElementContentAsString();
|
||||
//string _SQL = "if not exists";
|
||||
string _SQL= " delete from [NCC].[dbo].[LocaleStringResource] where [LanguageId]=2 and [ResourceName]='{0}' and [ResourceValue]='{1}'\n";
|
||||
_SQL += " insert [NCC].[dbo].[LocaleStringResource] ([LanguageId],[ResourceName],[ResourceValue]) select 2,'{0}','{1}' ";
|
||||
_Session.ExecuteNonQuery(string.Format(_SQL,_ResourceName,_ResourceValue.Replace("'","''")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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="anopC_LoadHU.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,20 @@
|
||||
Folder Description
|
||||
|
||||
The "DatabaseUpdate" project folder is intended for storing code that supplies
|
||||
initial data (default User objects, embedded Reports, etc) and handles a database
|
||||
update when the application version changes.
|
||||
|
||||
|
||||
Relevant Documentation
|
||||
|
||||
Supply Initial Data
|
||||
http://help.devexpress.com/#Xaf/CustomDocument2788
|
||||
|
||||
Distribute the Created Reports with the Application
|
||||
http://help.devexpress.com/#Xaf/CustomDocument2786
|
||||
|
||||
How to: Update the Database Structure after the Persistent Class or Property Was Renamed or Removed
|
||||
http://help.devexpress.com/#Xaf/CustomDocument3254
|
||||
|
||||
ModuleUpdater Class
|
||||
http://help.devexpress.com/#Xaf/clsDevExpressExpressAppUpdatingModuleUpdatertopic
|
||||
@@ -0,0 +1,88 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using DevExpress.Xpo;
|
||||
using DevExpress.ExpressApp;
|
||||
using DevExpress.Data.Filtering;
|
||||
using DevExpress.ExpressApp.Xpo;
|
||||
using DevExpress.Persistent.Base;
|
||||
using DevExpress.ExpressApp.Updating;
|
||||
using DevExpress.Persistent.BaseImpl;
|
||||
using DevExpress.ExpressApp.Security;
|
||||
using Nuvolar.Module.BusinessObjects.nopCommerce;
|
||||
using DevExpress.Xpo.DB;
|
||||
using DevExpress.ExpressApp.Reports;
|
||||
using System.Reflection;
|
||||
//using DevExpress.ExpressApp.Reports;
|
||||
//using DevExpress.ExpressApp.PivotChart;
|
||||
//using DevExpress.ExpressApp.Security.Strategy;
|
||||
//using Nuvolar.Module.CSharp.Module.BusinessObjects;
|
||||
|
||||
namespace Nuvolar.Module.CSharp.DatabaseUpdate
|
||||
{
|
||||
// For more typical usage scenarios, be sure to check out http://documentation.devexpress.com/#Xaf/clsDevExpressExpressAppUpdatingModuleUpdatertopic
|
||||
public class Updater : ModuleUpdater
|
||||
{
|
||||
public Updater(IObjectSpace objectSpace, Version currentDBVersion) :
|
||||
base(objectSpace, currentDBVersion)
|
||||
{
|
||||
}
|
||||
public override void UpdateDatabaseAfterUpdateSchema()
|
||||
{
|
||||
base.UpdateDatabaseAfterUpdateSchema();
|
||||
//string name = "MyName";
|
||||
//DomainObject1 theObject = ObjectSpace.FindObject<DomainObject1>(CriteriaOperator.Parse("Name=?", name));
|
||||
//if(theObject == null) {
|
||||
// theObject = ObjectSpace.CreateObject<DomainObject1>();
|
||||
// theObject.Name = name;
|
||||
//}
|
||||
//NAVInvoiceReport _NAVInvoiceReport = ObjectSpace.FindObject<NAVInvoiceReport>(CriteriaOperator.Parse("1=1"));
|
||||
//if (_NAVInvoiceReport == null)
|
||||
// _NAVInvoiceReportObjectSpace.CreateObject<DomainObject1>();
|
||||
//{
|
||||
//}
|
||||
nopCParameters _nopCParameters=ObjectSpace.FindObject<nopCParameters>(CriteriaOperator.Parse("1=1"));
|
||||
if (_nopCParameters==null)
|
||||
{
|
||||
_nopCParameters = ObjectSpace.CreateObject<nopCParameters>();
|
||||
_nopCParameters.Save();
|
||||
}
|
||||
// Le kell kérdezni az összes reportod
|
||||
XPObjectSpace _ocur = (XPObjectSpace)ObjectSpace;
|
||||
Assembly _assembly = Assembly.GetExecutingAssembly();
|
||||
|
||||
SelectedData _SelectedData = _ocur.Session.ExecuteQuery("select ObjectTypeName from ReportData");
|
||||
foreach (SelectStatementResultRow _SelectStatementResultRow in _SelectedData.ResultSet[0].Rows)
|
||||
{
|
||||
foreach (ReportData reportData in ObjectSpace.GetObjects<ReportData>(new BinaryOperator("dataTypeName", _SelectStatementResultRow.Values[0])))
|
||||
{
|
||||
try
|
||||
{
|
||||
string _AssemblyQualifiedName = "{0}, Nuvolar.Module, Version=15.2.5.1009, Culture=neutral, PublicKeyToken=null";
|
||||
XafReport report = (XafReport)reportData.LoadReport(_ocur);
|
||||
report.DataType = Type.GetType(string.Format(_AssemblyQualifiedName, _SelectStatementResultRow.Values[0].ToString()));
|
||||
|
||||
string content = System.Text.Encoding.UTF8.GetString(reportData.Content);
|
||||
if (content.ToString().Contains("SISBusiness"))
|
||||
{
|
||||
string newContent = content.Replace("SISBusiness", "Nuvolar");
|
||||
reportData.Content = System.Text.Encoding.ASCII.GetBytes(newContent);
|
||||
}
|
||||
|
||||
reportData.SaveReport(report);
|
||||
_ocur.CommitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void UpdateDatabaseBeforeUpdateSchema()
|
||||
{
|
||||
base.UpdateDatabaseBeforeUpdateSchema();
|
||||
//if(CurrentDBVersion < new Version("1.1.0.0") && CurrentDBVersion > new Version("0.0.0.0")) {
|
||||
// RenameColumn("DomainObject1Table", "OldColumnName", "NewColumnName");
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 10 KiB |