This commit is contained in:
15
AyaNovaQBI/FixInvoiceProblems.Designer.cs
generated
15
AyaNovaQBI/FixInvoiceProblems.Designer.cs
generated
@@ -32,7 +32,7 @@
|
|||||||
this.btnOK = new System.Windows.Forms.Button();
|
this.btnOK = new System.Windows.Forms.Button();
|
||||||
this.Object = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.Object = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.Fix = new System.Windows.Forms.DataGridViewButtonColumn();
|
this.Fix = new System.Windows.Forms.DataGridViewButtonColumn();
|
||||||
this.Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.ObjectName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.Problem = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.Problem = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.ObjectId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.ObjectId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.AyaPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.AyaPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||||
this.Object,
|
this.Object,
|
||||||
this.Fix,
|
this.Fix,
|
||||||
this.Name,
|
this.ObjectName,
|
||||||
this.Problem,
|
this.Problem,
|
||||||
this.ObjectId,
|
this.ObjectId,
|
||||||
this.AyaPrice,
|
this.AyaPrice,
|
||||||
@@ -82,15 +82,16 @@
|
|||||||
//
|
//
|
||||||
// Fix
|
// Fix
|
||||||
//
|
//
|
||||||
|
this.Fix.DataPropertyName = "Fix";
|
||||||
this.Fix.HeaderText = "Fix";
|
this.Fix.HeaderText = "Fix";
|
||||||
this.Fix.Name = "Fix";
|
this.Fix.Name = "Fix";
|
||||||
this.Fix.ReadOnly = true;
|
this.Fix.ReadOnly = true;
|
||||||
//
|
//
|
||||||
// Name
|
// ObjectName
|
||||||
//
|
//
|
||||||
this.Name.HeaderText = "Name";
|
this.ObjectName.HeaderText = "Name";
|
||||||
this.Name.Name = "Name";
|
this.ObjectName.Name = "ObjectName";
|
||||||
this.Name.ReadOnly = true;
|
this.ObjectName.ReadOnly = true;
|
||||||
//
|
//
|
||||||
// Problem
|
// Problem
|
||||||
//
|
//
|
||||||
@@ -153,7 +154,7 @@
|
|||||||
private System.Windows.Forms.Button btnOK;
|
private System.Windows.Forms.Button btnOK;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn Object;
|
private System.Windows.Forms.DataGridViewTextBoxColumn Object;
|
||||||
private System.Windows.Forms.DataGridViewButtonColumn Fix;
|
private System.Windows.Forms.DataGridViewButtonColumn Fix;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn Name;
|
private System.Windows.Forms.DataGridViewTextBoxColumn ObjectName;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn Problem;
|
private System.Windows.Forms.DataGridViewTextBoxColumn Problem;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn ObjectId;
|
private System.Windows.Forms.DataGridViewTextBoxColumn ObjectId;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn AyaPrice;
|
private System.Windows.Forms.DataGridViewTextBoxColumn AyaPrice;
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ namespace AyaNovaQBI
|
|||||||
{
|
{
|
||||||
public partial class FixInvoiceProblems : Form
|
public partial class FixInvoiceProblems : Form
|
||||||
{
|
{
|
||||||
|
public List<util.MisMatch> MisMatches { get; set; }
|
||||||
|
public List<long> PartPriceOverrides { get; set; }
|
||||||
|
public bool ChangesMade { get; set; } = false;
|
||||||
public FixInvoiceProblems()
|
public FixInvoiceProblems()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@@ -19,6 +22,7 @@ namespace AyaNovaQBI
|
|||||||
|
|
||||||
private void FixInvoiceProblems_Load(object sender, EventArgs e)
|
private void FixInvoiceProblems_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
grid.DataSource = MisMatches;
|
||||||
btnOK.Text = util.AyaTranslations["OK"];
|
btnOK.Text = util.AyaTranslations["OK"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,7 +123,7 @@
|
|||||||
<metadata name="Fix.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="Fix.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="ObjectName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="Problem.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="Problem.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
|||||||
@@ -111,14 +111,14 @@ namespace AyaNovaQBI
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void fixProblemsToolStripMenuItem_Click(object sender, EventArgs e)
|
private async void fixProblemsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
FixInvoiceProblems d = new FixInvoiceProblems();
|
FixInvoiceProblems d = new FixInvoiceProblems();
|
||||||
d.MisMatches = _MisMatches;
|
d.MisMatches = _MisMatches;
|
||||||
d.PartPriceOverrides = _PartPriceOverrides;
|
d.PartPriceOverrides = _PartPriceOverrides;
|
||||||
d.ShowDialog();
|
d.ShowDialog();
|
||||||
if (d.ChangesMade)
|
if (d.ChangesMade)
|
||||||
InitInvoices();
|
await InitInvoices();
|
||||||
d.Dispose();
|
d.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace AyaNovaQBI
|
namespace AyaNovaQBI
|
||||||
{
|
{
|
||||||
internal class WorkOrderStatus
|
public class WorkOrderStatus
|
||||||
{
|
{
|
||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
||||||
public uint Concurrency { get; set; }
|
public uint Concurrency { get; set; }
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ using System.Windows.Forms;
|
|||||||
|
|
||||||
namespace AyaNovaQBI
|
namespace AyaNovaQBI
|
||||||
{
|
{
|
||||||
internal class util
|
public class util
|
||||||
{
|
{
|
||||||
#region API stuff
|
#region API stuff
|
||||||
public static Guid QBI_INTEGRATION_ID
|
public static Guid QBI_INTEGRATION_ID
|
||||||
|
|||||||
Reference in New Issue
Block a user