This commit is contained in:
2022-07-09 23:37:24 +00:00
parent 059546b868
commit ce9278b146
6 changed files with 17 additions and 12 deletions

View File

@@ -32,7 +32,7 @@
this.btnOK = new System.Windows.Forms.Button();
this.Object = new System.Windows.Forms.DataGridViewTextBoxColumn();
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.ObjectId = 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.Object,
this.Fix,
this.Name,
this.ObjectName,
this.Problem,
this.ObjectId,
this.AyaPrice,
@@ -82,15 +82,16 @@
//
// Fix
//
this.Fix.DataPropertyName = "Fix";
this.Fix.HeaderText = "Fix";
this.Fix.Name = "Fix";
this.Fix.ReadOnly = true;
//
// Name
// ObjectName
//
this.Name.HeaderText = "Name";
this.Name.Name = "Name";
this.Name.ReadOnly = true;
this.ObjectName.HeaderText = "Name";
this.ObjectName.Name = "ObjectName";
this.ObjectName.ReadOnly = true;
//
// Problem
//
@@ -153,7 +154,7 @@
private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.DataGridViewTextBoxColumn Object;
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 ObjectId;
private System.Windows.Forms.DataGridViewTextBoxColumn AyaPrice;

View File

@@ -12,6 +12,9 @@ namespace AyaNovaQBI
{
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()
{
InitializeComponent();
@@ -19,6 +22,7 @@ namespace AyaNovaQBI
private void FixInvoiceProblems_Load(object sender, EventArgs e)
{
grid.DataSource = MisMatches;
btnOK.Text = util.AyaTranslations["OK"];
}

View File

@@ -123,7 +123,7 @@
<metadata name="Fix.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</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>
</metadata>
<metadata name="Problem.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

View File

@@ -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();
d.MisMatches = _MisMatches;
d.PartPriceOverrides = _PartPriceOverrides;
d.ShowDialog();
if (d.ChangesMade)
InitInvoices();
await InitInvoices();
d.Dispose();
}

View File

@@ -1,6 +1,6 @@
namespace AyaNovaQBI
{
internal class WorkOrderStatus
public class WorkOrderStatus
{
public long Id { get; set; }
public uint Concurrency { get; set; }

View File

@@ -14,7 +14,7 @@ using System.Windows.Forms;
namespace AyaNovaQBI
{
internal class util
public class util
{
#region API stuff
public static Guid QBI_INTEGRATION_ID