First create solution

This commit is contained in:
2017-03-08 11:21:27 +01:00
commit a2fb86bacf
5508 changed files with 1082238 additions and 0 deletions
@@ -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";
//}
}
}
File diff suppressed because it is too large Load Diff
@@ -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";
//}
}
}