This commit is contained in:
@@ -105,6 +105,12 @@
|
|||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="QBIIntegrationData.cs" />
|
<Compile Include="QBIIntegrationData.cs" />
|
||||||
|
<Compile Include="SetAutoClose.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SetAutoClose.Designer.cs">
|
||||||
|
<DependentUpon>SetAutoClose.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="SetInfoOnly.cs">
|
<Compile Include="SetInfoOnly.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -191,6 +197,9 @@
|
|||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<EmbeddedResource Include="SetAutoClose.resx">
|
||||||
|
<DependentUpon>SetAutoClose.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="SetInfoOnly.resx">
|
<EmbeddedResource Include="SetInfoOnly.resx">
|
||||||
<DependentUpon>SetInfoOnly.cs</DependentUpon>
|
<DependentUpon>SetInfoOnly.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
128
AyaNovaQBI/SetAutoClose.Designer.cs
generated
Normal file
128
AyaNovaQBI/SetAutoClose.Designer.cs
generated
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
namespace AyaNovaQBI
|
||||||
|
{
|
||||||
|
partial class SetAutoClose
|
||||||
|
{
|
||||||
|
/// <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 Windows Form 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.btnOK = new System.Windows.Forms.Button();
|
||||||
|
this.btnCancel = new System.Windows.Forms.Button();
|
||||||
|
this.lblTitle = new System.Windows.Forms.Label();
|
||||||
|
this.lblDescription = new System.Windows.Forms.Label();
|
||||||
|
this.lblStatus = new System.Windows.Forms.Label();
|
||||||
|
this.ckAutoClose = new System.Windows.Forms.CheckBox();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// btnOK
|
||||||
|
//
|
||||||
|
this.btnOK.Location = new System.Drawing.Point(550, 368);
|
||||||
|
this.btnOK.Name = "btnOK";
|
||||||
|
this.btnOK.Size = new System.Drawing.Size(75, 23);
|
||||||
|
this.btnOK.TabIndex = 6;
|
||||||
|
this.btnOK.Text = "OK";
|
||||||
|
this.btnOK.UseVisualStyleBackColor = true;
|
||||||
|
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
|
||||||
|
//
|
||||||
|
// btnCancel
|
||||||
|
//
|
||||||
|
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||||
|
this.btnCancel.Location = new System.Drawing.Point(4, 368);
|
||||||
|
this.btnCancel.Name = "btnCancel";
|
||||||
|
this.btnCancel.Size = new System.Drawing.Size(75, 23);
|
||||||
|
this.btnCancel.TabIndex = 5;
|
||||||
|
this.btnCancel.Text = "Cancel";
|
||||||
|
this.btnCancel.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// lblTitle
|
||||||
|
//
|
||||||
|
this.lblTitle.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.lblTitle.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.lblTitle.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.lblTitle.Name = "lblTitle";
|
||||||
|
this.lblTitle.Size = new System.Drawing.Size(637, 30);
|
||||||
|
this.lblTitle.TabIndex = 7;
|
||||||
|
//
|
||||||
|
// lblDescription
|
||||||
|
//
|
||||||
|
this.lblDescription.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.lblDescription.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.lblDescription.Location = new System.Drawing.Point(0, 30);
|
||||||
|
this.lblDescription.Name = "lblDescription";
|
||||||
|
this.lblDescription.Size = new System.Drawing.Size(637, 165);
|
||||||
|
this.lblDescription.TabIndex = 8;
|
||||||
|
//
|
||||||
|
// lblStatus
|
||||||
|
//
|
||||||
|
this.lblStatus.AutoSize = true;
|
||||||
|
this.lblStatus.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.lblStatus.Location = new System.Drawing.Point(0, 195);
|
||||||
|
this.lblStatus.Name = "lblStatus";
|
||||||
|
this.lblStatus.Size = new System.Drawing.Size(0, 13);
|
||||||
|
this.lblStatus.TabIndex = 10;
|
||||||
|
//
|
||||||
|
// ckAutoClose
|
||||||
|
//
|
||||||
|
this.ckAutoClose.AutoSize = true;
|
||||||
|
this.ckAutoClose.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.ckAutoClose.Location = new System.Drawing.Point(0, 208);
|
||||||
|
this.ckAutoClose.Name = "ckAutoClose";
|
||||||
|
this.ckAutoClose.Size = new System.Drawing.Size(637, 17);
|
||||||
|
this.ckAutoClose.TabIndex = 11;
|
||||||
|
this.ckAutoClose.Text = "Auto close invoiced work orders";
|
||||||
|
this.ckAutoClose.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// SetAutoClose
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.CancelButton = this.btnCancel;
|
||||||
|
this.ClientSize = new System.Drawing.Size(637, 403);
|
||||||
|
this.Controls.Add(this.ckAutoClose);
|
||||||
|
this.Controls.Add(this.lblStatus);
|
||||||
|
this.Controls.Add(this.lblDescription);
|
||||||
|
this.Controls.Add(this.lblTitle);
|
||||||
|
this.Controls.Add(this.btnOK);
|
||||||
|
this.Controls.Add(this.btnCancel);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||||
|
this.Name = "SetAutoClose";
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
|
this.Text = "SetAutoClose";
|
||||||
|
this.Load += new System.EventHandler(this.SetQBClass_load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Button btnOK;
|
||||||
|
private System.Windows.Forms.Button btnCancel;
|
||||||
|
private System.Windows.Forms.Label lblTitle;
|
||||||
|
private System.Windows.Forms.Label lblDescription;
|
||||||
|
private System.Windows.Forms.Label lblStatus;
|
||||||
|
private System.Windows.Forms.CheckBox ckAutoClose;
|
||||||
|
}
|
||||||
|
}
|
||||||
54
AyaNovaQBI/SetAutoClose.cs
Normal file
54
AyaNovaQBI/SetAutoClose.cs
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace AyaNovaQBI
|
||||||
|
{
|
||||||
|
public partial class SetAutoClose : Form
|
||||||
|
{
|
||||||
|
public SetAutoClose()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public string DialogTitle { get; set; }
|
||||||
|
|
||||||
|
public string OptionTitle { get; set; }
|
||||||
|
|
||||||
|
public string OptionDescription { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public bool AutoClose
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.ckAutoClose.Checked;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.ckAutoClose.Checked = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void SetQBClass_load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Text = DialogTitle;
|
||||||
|
lblDescription.Text = OptionDescription;
|
||||||
|
lblTitle.Text = OptionTitle;
|
||||||
|
btnCancel.Text = util.AyaTranslations["Cancel"];
|
||||||
|
btnOK.Text = util.AyaTranslations["OK"];
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void btnOK_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
DialogResult = DialogResult.OK;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
AyaNovaQBI/SetAutoClose.resx
Normal file
120
AyaNovaQBI/SetAutoClose.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?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>
|
||||||
|
</root>
|
||||||
@@ -1276,36 +1276,36 @@ namespace AyaNovaQBI
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
// #region SetAutoCloseField Case 7
|
#region SetAutoCloseField Case 7
|
||||||
// //No validation possible
|
//No validation possible
|
||||||
// //so prompt only if not setup yet
|
//so prompt only if not setup yet
|
||||||
// if (!SetEverything)
|
if (!SetEverything)
|
||||||
// {
|
{
|
||||||
// goto SETAUTOCLOSEOK;
|
goto SETAUTOCLOSEOK;
|
||||||
|
|
||||||
// }
|
}
|
||||||
|
|
||||||
// SetAutoClose s6 = new SetAutoClose();
|
SetAutoClose s6 = new SetAutoClose();
|
||||||
// s6.DialogTitle = "AyaNova QBI setup - Close when invoiced?";
|
s6.DialogTitle = "AyaNova QBI setup - Close when invoiced?";
|
||||||
// s6.OptionTitle = "Close work order after invoicing";
|
s6.OptionTitle = "Close work order after invoicing";
|
||||||
// s6.OptionDescription =
|
s6.OptionDescription =
|
||||||
// "QBI needs to know if you want work orders that it invoices \r\n" +
|
"QBI needs to know if you want work orders that it invoices \r\n" +
|
||||||
// "automatically set to closed";
|
"automatically set to closed";
|
||||||
// s6.AutoClose = QDat.AutoClose;
|
s6.AutoClose = QDat.AutoClose;
|
||||||
|
|
||||||
// if (s6.ShowDialog() == DialogResult.Cancel)
|
if (s6.ShowDialog() == DialogResult.Cancel)
|
||||||
// {
|
{
|
||||||
// return pfstat.Cancel;
|
return pfstat.Cancel;
|
||||||
|
|
||||||
// }
|
}
|
||||||
// else
|
else
|
||||||
// QDat.AutoClose = s6.AutoClose;
|
QDat.AutoClose = s6.AutoClose;
|
||||||
// s6.Dispose();
|
s6.Dispose();
|
||||||
// s6 = null;
|
s6 = null;
|
||||||
|
|
||||||
//SETAUTOCLOSEOK:
|
SETAUTOCLOSEOK:
|
||||||
|
|
||||||
// #endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
// //Save if changes made
|
// //Save if changes made
|
||||||
|
|||||||
Reference in New Issue
Block a user