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,36 @@
namespace Nuvolar.Module.Web.CSharp.Controllers
{
partial class APCSheet_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();
}
#endregion
}
}
@@ -0,0 +1,56 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.Editors;
using DevExpress.ExpressApp.Layout;
using DevExpress.ExpressApp.Model.NodeGenerators;
using DevExpress.ExpressApp.SystemModule;
using DevExpress.ExpressApp.Templates;
using DevExpress.ExpressApp.Utils;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.Validation;
namespace Nuvolar.Module.Web.CSharp.Controllers
{
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
public partial class APCSheet_VC : Nuvolar.Module.APCSheetVC
{
public APCSheet_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();
}
public override void aAPCSheetHeader_CreateReviewSheet_Execute(object sender, PopupWindowShowActionExecuteEventArgs e)
{
base.aAPCSheetHeader_CreateReviewSheet_Execute(sender, e);
}
public override void aAPCSheet_PSPH_Print_Execute(object sender, SimpleActionExecuteEventArgs e)
{
base.aAPCSheet_PSPH_Print_Execute(sender, e);
}
public override void aPrintAPCSheet_Execute(object sender, SimpleActionExecuteEventArgs e)
{
base.aPrintAPCSheet_Execute(sender, e);
}
}
}
@@ -0,0 +1,36 @@
namespace Nuvolar.Module.Web.CSharp.Controllers
{
partial class ASPxGridList_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();
}
#endregion
}
}
@@ -0,0 +1,107 @@
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.Web.Editors;
using DevExpress.ExpressApp.Web.Editors.ASPx;
using DevExpress.Web;
using DevExpress.ExpressApp.Model;
using DevExpress.Web.Data;
namespace Nuvolar.Module.Web.CSharp.Controllers
{
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
public partial class ASPxGridList_VC : ViewController<ListView>
{
public ASPxGridList_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();
ASPxGridListEditor _ASPxGridListEditor = (View as ListView).Editor as ASPxGridListEditor;
if (_ASPxGridListEditor!=null)
{
ASPxGridView _ASPxGridView = _ASPxGridListEditor.Grid as ASPxGridView;
if (_ASPxGridView!=null)
{
_ASPxGridView.CustomColumnDisplayText += ASPxGridView_CustomColumnDisplayText;
//_ASPxGridView.ParseValue += ASPxGridView_ParseValue;
}
}
}
private void ASPxGridView_ParseValue(object sender, ASPxParseValueEventArgs e)
{
if (e.FieldName=="")
{
try
{
}
catch (Exception ex)
{
throw;
}
}
}
private void ASPxGridView_CustomColumnDisplayText(object sender, ASPxGridViewColumnDisplayTextEventArgs e)
{
IModelColumnExtender _IModelColumnExtender = null;
if (View!=null)
{
if (e.Column.FieldName!="")
{
_IModelColumnExtender = View.Model.Columns[e.Column.FieldName] as IModelColumnExtender;
if (_IModelColumnExtender!=null)
{
if (_IModelColumnExtender.HideValueIfZero)
{
if (IsNumeric(e.Value))
{
if (double.Parse(e.Value.ToString())==0)
{
e.DisplayText = "";
}
}
}
}
}
}
}
private bool IsNumeric(object Expression)
{
double retNum;
bool isNum = Double.TryParse(Convert.ToString(Expression), System.Globalization.NumberStyles.Any, System.Globalization.NumberFormatInfo.InvariantInfo, out retNum);
return isNum;
}
protected override void OnDeactivated()
{
// Unsubscribe from previously subscribed events and release other references and resources.
base.OnDeactivated();
}
}
}
@@ -0,0 +1,36 @@
namespace Nuvolar.Module.Web.CSharp.Controllers
{
partial class ActionDefaultPaintStyle_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();
}
#endregion
}
}
@@ -0,0 +1,106 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.Editors;
using DevExpress.ExpressApp.Layout;
using DevExpress.ExpressApp.Model.NodeGenerators;
using DevExpress.ExpressApp.SystemModule;
using DevExpress.ExpressApp.Templates;
using DevExpress.ExpressApp.Utils;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.Validation;
namespace Nuvolar.Module.Web.CSharp.Controllers
{
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
public partial class ActionDefaultPaintStyle_VC : ViewController
{
public ActionDefaultPaintStyle_VC()
{
InitializeComponent();
// Target required Views (via the TargetXXX properties) and create their Actions.
}
protected override void OnActivated()
{
base.OnActivated();
if (Frame.Template!=null)
{
foreach (IActionContainer _IActionContainer in Frame.Template.GetContainers())
{
foreach (ActionBase _ActionBase in _IActionContainer.Actions)
{
CustomizeAction(_ActionBase);
}
}
}
if ((Frame as NestedFrame)!=null)
{
NestedFrame _NestedFrame = Frame as NestedFrame;
if (_NestedFrame.Controllers.Count>0)
{
foreach (Controller _Controller in _NestedFrame.Controllers)
{
foreach (ActionBase _ActionBase in _Controller.Actions)
{
CustomizeAction(_ActionBase);
}
}
}
}
View.ControlsCreated += View_ControlsCreated;
}
private void View_ControlsCreated(object sender, EventArgs e)
{
if ((View as DetailView)!=null)
{
DetailView _DetailView = View as DetailView;
foreach (ViewItem _ViewItem in _DetailView.Items)
{
if ((_ViewItem as ActionContainerViewItem)!=null)
{
(_ViewItem as ActionContainerViewItem).ControlCreated += ActionContainerViewItem_ControlCreated;
}
}
}
}
private void ActionContainerViewItem_ControlCreated(object sender, EventArgs e)
{
foreach (ActionBase _ActionBase in (sender as ActionContainerViewItem).Actions)
{
CustomizeAction(_ActionBase);
}
}
private void CustomizeAction(ActionBase _ActionBase)
{
if (_ActionBase.PaintStyle== ActionItemPaintStyle.Default)
{
if (_ActionBase.Category!=_ActionBase.Id && (View as DetailView)!=null)
{
_ActionBase.PaintStyle = ActionItemPaintStyle.Image;
}
if ((View as ListView)!=null)
{
_ActionBase.PaintStyle = ActionItemPaintStyle.Image;
}
}
}
protected override void OnViewControlsCreated()
{
base.OnViewControlsCreated();
// Access and customize the target View control.
}
protected override void OnDeactivated()
{
// Unsubscribe from previously subscribed events and release other references and resources.
base.OnDeactivated();
}
}
}
@@ -0,0 +1,40 @@
namespace Nuvolar.Module.Web.CSharp.Controllers
{
partial class Invoice_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()
{
//
// aPrintSelectedInvoices
//
this.aPrintSelectedInvoices.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.aPrintSelectedInvoices_Execute);
}
#endregion
}
}
@@ -0,0 +1,64 @@
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using System.IO;
using DevExpress.ExpressApp.Xpo;
using DevExpress.ExpressApp.Web;
using DevExpress.Persistent.BaseImpl;
using System.Web.UI.WebControls;
namespace Nuvolar.Module.Web.CSharp.Controllers
{
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx.
public partial class Invoice_VC : Nuvolar.Module.InvoiceVC
{
public Invoice_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();
}
//public override void aPrintSelectedInvoices_Execute(object sender, SimpleActionExecuteEventArgs e)
//{
// XPObjectSpace _ocur = (XPObjectSpace)View.ObjectSpace;
// ReportDataV2 _ReportData=null;
// string _Criteria = "(";
// if (View.SelectedObjects.Count>0)
// {
// foreach (InvoiceHeader _InvoiceHeader in View.SelectedObjects)
// {
// if (_Criteria=="(")
// {
// _ReportData = _InvoiceHeader.InvoiceType.ReportDataV2;
// _Criteria += "'"+_InvoiceHeader.Oid.ToString()+"'";
// }
// else
// {
// _Criteria += ",'" + _InvoiceHeader.Oid.ToString()+"'";
// }
// }
// _Criteria += ")";
// _Criteria = "InvoiceHeader.Oid in " + _Criteria;
// XAFPrintHelperWeb _XAFPrintHelperWeb = new XAFPrintHelperWeb(_ocur, Frame, _ReportData,CriteriaOperator.Parse(_Criteria));
// GeneralFunction.GLOBAL_Download_MemoryStream = _XAFPrintHelperWeb.GeneratePDF();
// GeneralFunction.GLOBAL_Download_FileName = Path.GetRandomFileName().Replace(".","").Substring(1,8);
// GeneralFunction.GLOBAL_Download_FileExtension = "pdf";
// WebApplication.Redirect("GetAttachments.ashx?ms=1");
// }
//}
}
}
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="aGeneratePDFandSendDefaultMailClient_Invoice.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>190, 17</value>
</metadata>
<metadata name="aPrintSelectedInvoices.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 platform-agnostic Controller classes
that can change the default XAF application flow and add new features.
Relevant Documentation
Extend Functionality
https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112623.aspx
Controller Class
https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppControllertopic.aspx
ViewController Class
https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppViewControllertopic.aspx
WindowController Class
https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppWindowControllertopic.aspx