diff --git a/AyaNovaQBI/AyaNovaQBI.csproj b/AyaNovaQBI/AyaNovaQBI.csproj index a497c4b..f649b93 100644 --- a/AyaNovaQBI/AyaNovaQBI.csproj +++ b/AyaNovaQBI/AyaNovaQBI.csproj @@ -92,6 +92,12 @@ CopyableMessageBox.cs + + Form + + + FixInvoiceProblems.cs + Form @@ -249,6 +255,9 @@ CopyableMessageBox.cs + + FixInvoiceProblems.cs + InvoiceTemplateBuilder.cs diff --git a/AyaNovaQBI/FixInvoiceProblems.Designer.cs b/AyaNovaQBI/FixInvoiceProblems.Designer.cs new file mode 100644 index 0000000..e72106b --- /dev/null +++ b/AyaNovaQBI/FixInvoiceProblems.Designer.cs @@ -0,0 +1,164 @@ +namespace AyaNovaQBI +{ + partial class FixInvoiceProblems + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.grid = new System.Windows.Forms.DataGridView(); + 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.Problem = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ObjectId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.AyaPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.QBPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.WorkOrderItemPartId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.QBListID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit(); + this.SuspendLayout(); + // + // grid + // + this.grid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.Object, + this.Fix, + this.Name, + this.Problem, + this.ObjectId, + this.AyaPrice, + this.QBPrice, + this.WorkOrderItemPartId, + this.QBListID}); + this.grid.Location = new System.Drawing.Point(2, 3); + this.grid.Name = "grid"; + this.grid.Size = new System.Drawing.Size(1021, 519); + this.grid.TabIndex = 0; + // + // btnOK + // + this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.btnOK.Location = new System.Drawing.Point(948, 584); + this.btnOK.Name = "btnOK"; + this.btnOK.Size = new System.Drawing.Size(75, 23); + this.btnOK.TabIndex = 16; + this.btnOK.Text = "OK"; + this.btnOK.UseVisualStyleBackColor = true; + this.btnOK.Click += new System.EventHandler(this.btnOK_Click); + // + // Object + // + this.Object.HeaderText = "Object"; + this.Object.Name = "Object"; + this.Object.ReadOnly = true; + // + // Fix + // + this.Fix.HeaderText = "Fix"; + this.Fix.Name = "Fix"; + this.Fix.ReadOnly = true; + // + // Name + // + this.Name.HeaderText = "Name"; + this.Name.Name = "Name"; + this.Name.ReadOnly = true; + // + // Problem + // + this.Problem.HeaderText = "Problem"; + this.Problem.Name = "Problem"; + this.Problem.ReadOnly = true; + // + // ObjectId + // + this.ObjectId.HeaderText = "ObjectId"; + this.ObjectId.Name = "ObjectId"; + this.ObjectId.Visible = false; + // + // AyaPrice + // + this.AyaPrice.HeaderText = "AyaPrice"; + this.AyaPrice.Name = "AyaPrice"; + this.AyaPrice.Visible = false; + // + // QBPrice + // + this.QBPrice.HeaderText = "QBPrice"; + this.QBPrice.Name = "QBPrice"; + this.QBPrice.Visible = false; + // + // WorkOrderItemPartId + // + this.WorkOrderItemPartId.HeaderText = "WorkOrderItemPartId"; + this.WorkOrderItemPartId.Name = "WorkOrderItemPartId"; + this.WorkOrderItemPartId.Visible = false; + // + // QBListID + // + this.QBListID.HeaderText = "QBListID"; + this.QBListID.Name = "QBListID"; + this.QBListID.Visible = false; + // + // FixInvoiceProblems + // + this.AcceptButton = this.btnOK; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1027, 619); + this.ControlBox = false; + this.Controls.Add(this.btnOK); + this.Controls.Add(this.grid); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.MinimumSize = new System.Drawing.Size(300, 300); + this.Name = "FixInvoiceProblems"; + this.Text = "Fix problems"; + this.Load += new System.EventHandler(this.FixInvoiceProblems_Load); + ((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.DataGridView grid; + 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 Problem; + private System.Windows.Forms.DataGridViewTextBoxColumn ObjectId; + private System.Windows.Forms.DataGridViewTextBoxColumn AyaPrice; + private System.Windows.Forms.DataGridViewTextBoxColumn QBPrice; + private System.Windows.Forms.DataGridViewTextBoxColumn WorkOrderItemPartId; + private System.Windows.Forms.DataGridViewTextBoxColumn QBListID; + } +} \ No newline at end of file diff --git a/AyaNovaQBI/FixInvoiceProblems.cs b/AyaNovaQBI/FixInvoiceProblems.cs new file mode 100644 index 0000000..8089cc7 --- /dev/null +++ b/AyaNovaQBI/FixInvoiceProblems.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace AyaNovaQBI +{ + public partial class FixInvoiceProblems : Form + { + public FixInvoiceProblems() + { + InitializeComponent(); + } + + private void FixInvoiceProblems_Load(object sender, EventArgs e) + { + btnOK.Text = util.AyaTranslations["OK"]; + } + + private void btnOK_Click(object sender, EventArgs e) + { + DialogResult = DialogResult.OK; + Close(); + } + } +} diff --git a/AyaNovaQBI/FixInvoiceProblems.resx b/AyaNovaQBI/FixInvoiceProblems.resx new file mode 100644 index 0000000..2faf1f6 --- /dev/null +++ b/AyaNovaQBI/FixInvoiceProblems.resx @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + \ No newline at end of file