From 71b6249a330ca452f51be1724114485c294d6b8f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 1 Jul 2022 17:04:58 +0000 Subject: [PATCH] --- AyaNovaQBI/QBIIntegrationData.cs | 30 ++++++------ AyaNovaQBI/SetAutoClose.Designer.cs | 15 +++--- AyaNovaQBI/SetInfoOnly.Designer.cs | 9 ++-- AyaNovaQBI/SetMemoField.Designer.cs | 15 +++--- AyaNovaQBI/SetQBChargeAs.Designer.cs | 15 +++--- AyaNovaQBI/SetQBClass.Designer.cs | 15 +++--- AyaNovaQBI/SetQBInvoiceTemplate.Designer.cs | 15 +++--- AyaNovaQBI/SetQBTerms.Designer.cs | 15 +++--- AyaNovaQBI/SetToBePrinted.Designer.cs | 15 +++--- AyaNovaQBI/SetWOStatus.Designer.cs | 15 +++--- AyaNovaQBI/devinfo.txt | 3 +- AyaNovaQBI/util.cs | 51 +++++++++++---------- 12 files changed, 112 insertions(+), 101 deletions(-) diff --git a/AyaNovaQBI/QBIIntegrationData.cs b/AyaNovaQBI/QBIIntegrationData.cs index 7bafb11..0bef7fc 100644 --- a/AyaNovaQBI/QBIIntegrationData.cs +++ b/AyaNovaQBI/QBIIntegrationData.cs @@ -36,8 +36,8 @@ namespace AyaNovaQBI private string _InvoiceMiscExpenseTemplate = ""; private string _InvoiceLoanItemTemplate = ""; - //Case 7 - private bool _AutoClose = true; + ////Case 7 + //private bool _AutoClose = true; #region Case 632 //Default qb accounts to use when importing inventory and service items @@ -332,19 +332,19 @@ namespace AyaNovaQBI } } - //Case 7 - public bool AutoClose - { - get { return _AutoClose; } - set - { - if (_AutoClose != value) - { - _AutoClose = value; - IsDirty = true; - } - } - } + ////Case 7 + //public bool AutoClose + //{ + // get { return _AutoClose; } + // set + // { + // if (_AutoClose != value) + // { + // _AutoClose = value; + // IsDirty = true; + // } + // } + //} diff --git a/AyaNovaQBI/SetAutoClose.Designer.cs b/AyaNovaQBI/SetAutoClose.Designer.cs index 083530d..c84f40e 100644 --- a/AyaNovaQBI/SetAutoClose.Designer.cs +++ b/AyaNovaQBI/SetAutoClose.Designer.cs @@ -60,25 +60,25 @@ // 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.Location = new System.Drawing.Point(16, 16); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(637, 30); + this.lblTitle.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 46); this.lblDescription.Name = "lblDescription"; - this.lblDescription.Size = new System.Drawing.Size(637, 165); + this.lblDescription.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 211); this.lblStatus.Name = "lblStatus"; this.lblStatus.Size = new System.Drawing.Size(0, 13); this.lblStatus.TabIndex = 10; @@ -87,9 +87,9 @@ // this.ckAutoClose.AutoSize = true; this.ckAutoClose.Dock = System.Windows.Forms.DockStyle.Top; - this.ckAutoClose.Location = new System.Drawing.Point(0, 208); + this.ckAutoClose.Location = new System.Drawing.Point(16, 224); this.ckAutoClose.Name = "ckAutoClose"; - this.ckAutoClose.Size = new System.Drawing.Size(637, 17); + this.ckAutoClose.Size = new System.Drawing.Size(605, 17); this.ckAutoClose.TabIndex = 11; this.ckAutoClose.Text = "Auto close invoiced work orders"; this.ckAutoClose.UseVisualStyleBackColor = true; @@ -108,6 +108,7 @@ this.Controls.Add(this.btnCancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "SetAutoClose"; + this.Padding = new System.Windows.Forms.Padding(16); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SetAutoClose"; this.Load += new System.EventHandler(this.SetQBClass_load); diff --git a/AyaNovaQBI/SetInfoOnly.Designer.cs b/AyaNovaQBI/SetInfoOnly.Designer.cs index 9086e95..d7dcaa1 100644 --- a/AyaNovaQBI/SetInfoOnly.Designer.cs +++ b/AyaNovaQBI/SetInfoOnly.Designer.cs @@ -58,18 +58,18 @@ // 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.Location = new System.Drawing.Point(16, 16); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(637, 30); + this.lblTitle.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 46); this.lblDescription.Name = "lblDescription"; - this.lblDescription.Size = new System.Drawing.Size(637, 165); + this.lblDescription.Size = new System.Drawing.Size(605, 165); this.lblDescription.TabIndex = 8; // // SetInfoOnly @@ -84,6 +84,7 @@ this.Controls.Add(this.btnCancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "SetInfoOnly"; + this.Padding = new System.Windows.Forms.Padding(16); this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SetInfoOnly"; diff --git a/AyaNovaQBI/SetMemoField.Designer.cs b/AyaNovaQBI/SetMemoField.Designer.cs index 362c64e..8de07e9 100644 --- a/AyaNovaQBI/SetMemoField.Designer.cs +++ b/AyaNovaQBI/SetMemoField.Designer.cs @@ -60,25 +60,25 @@ // 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.Location = new System.Drawing.Point(16, 16); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(637, 30); + this.lblTitle.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 46); this.lblDescription.Name = "lblDescription"; - this.lblDescription.Size = new System.Drawing.Size(637, 165); + this.lblDescription.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 211); this.lblStatus.Name = "lblStatus"; this.lblStatus.Size = new System.Drawing.Size(0, 13); this.lblStatus.TabIndex = 10; @@ -87,9 +87,9 @@ // this.ckSetMemo.AutoSize = true; this.ckSetMemo.Dock = System.Windows.Forms.DockStyle.Top; - this.ckSetMemo.Location = new System.Drawing.Point(0, 208); + this.ckSetMemo.Location = new System.Drawing.Point(16, 224); this.ckSetMemo.Name = "ckSetMemo"; - this.ckSetMemo.Size = new System.Drawing.Size(637, 17); + this.ckSetMemo.Size = new System.Drawing.Size(605, 17); this.ckSetMemo.TabIndex = 11; this.ckSetMemo.Text = "Set memo field"; this.ckSetMemo.UseVisualStyleBackColor = true; @@ -108,6 +108,7 @@ this.Controls.Add(this.btnCancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "SetMemoField"; + this.Padding = new System.Windows.Forms.Padding(16); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SetMemoField"; this.Load += new System.EventHandler(this.SetQBClass_load); diff --git a/AyaNovaQBI/SetQBChargeAs.Designer.cs b/AyaNovaQBI/SetQBChargeAs.Designer.cs index d8d6768..2fccaa3 100644 --- a/AyaNovaQBI/SetQBChargeAs.Designer.cs +++ b/AyaNovaQBI/SetQBChargeAs.Designer.cs @@ -60,25 +60,25 @@ // 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.Location = new System.Drawing.Point(16, 16); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(637, 30); + this.lblTitle.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 46); this.lblDescription.Name = "lblDescription"; - this.lblDescription.Size = new System.Drawing.Size(637, 165); + this.lblDescription.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 211); this.lblStatus.Name = "lblStatus"; this.lblStatus.Size = new System.Drawing.Size(0, 13); this.lblStatus.TabIndex = 10; @@ -88,9 +88,9 @@ this.cbQBItems.Dock = System.Windows.Forms.DockStyle.Top; this.cbQBItems.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbQBItems.FormattingEnabled = true; - this.cbQBItems.Location = new System.Drawing.Point(0, 208); + this.cbQBItems.Location = new System.Drawing.Point(16, 224); this.cbQBItems.Name = "cbQBItems"; - this.cbQBItems.Size = new System.Drawing.Size(637, 21); + this.cbQBItems.Size = new System.Drawing.Size(605, 21); this.cbQBItems.TabIndex = 11; // // SetQBChargeAs @@ -107,6 +107,7 @@ this.Controls.Add(this.btnCancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "SetQBChargeAs"; + this.Padding = new System.Windows.Forms.Padding(16); this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SetQBChargeAs"; diff --git a/AyaNovaQBI/SetQBClass.Designer.cs b/AyaNovaQBI/SetQBClass.Designer.cs index 34569d1..a6241a1 100644 --- a/AyaNovaQBI/SetQBClass.Designer.cs +++ b/AyaNovaQBI/SetQBClass.Designer.cs @@ -60,25 +60,25 @@ // 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.Location = new System.Drawing.Point(16, 16); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(637, 30); + this.lblTitle.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 46); this.lblDescription.Name = "lblDescription"; - this.lblDescription.Size = new System.Drawing.Size(637, 165); + this.lblDescription.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 211); this.lblStatus.Name = "lblStatus"; this.lblStatus.Size = new System.Drawing.Size(0, 13); this.lblStatus.TabIndex = 10; @@ -88,9 +88,9 @@ this.cbQBClasses.Dock = System.Windows.Forms.DockStyle.Top; this.cbQBClasses.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbQBClasses.FormattingEnabled = true; - this.cbQBClasses.Location = new System.Drawing.Point(0, 208); + this.cbQBClasses.Location = new System.Drawing.Point(16, 224); this.cbQBClasses.Name = "cbQBClasses"; - this.cbQBClasses.Size = new System.Drawing.Size(637, 21); + this.cbQBClasses.Size = new System.Drawing.Size(605, 21); this.cbQBClasses.TabIndex = 11; // // SetQBClass @@ -107,6 +107,7 @@ this.Controls.Add(this.btnCancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "SetQBClass"; + this.Padding = new System.Windows.Forms.Padding(16); this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SetQBClass"; diff --git a/AyaNovaQBI/SetQBInvoiceTemplate.Designer.cs b/AyaNovaQBI/SetQBInvoiceTemplate.Designer.cs index 281f7dc..e5cb82a 100644 --- a/AyaNovaQBI/SetQBInvoiceTemplate.Designer.cs +++ b/AyaNovaQBI/SetQBInvoiceTemplate.Designer.cs @@ -60,25 +60,25 @@ // 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.Location = new System.Drawing.Point(16, 16); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(637, 30); + this.lblTitle.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 46); this.lblDescription.Name = "lblDescription"; - this.lblDescription.Size = new System.Drawing.Size(637, 165); + this.lblDescription.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 211); this.lblStatus.Name = "lblStatus"; this.lblStatus.Size = new System.Drawing.Size(0, 13); this.lblStatus.TabIndex = 10; @@ -88,9 +88,9 @@ this.cbQBItems.Dock = System.Windows.Forms.DockStyle.Top; this.cbQBItems.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbQBItems.FormattingEnabled = true; - this.cbQBItems.Location = new System.Drawing.Point(0, 208); + this.cbQBItems.Location = new System.Drawing.Point(16, 224); this.cbQBItems.Name = "cbQBItems"; - this.cbQBItems.Size = new System.Drawing.Size(637, 21); + this.cbQBItems.Size = new System.Drawing.Size(605, 21); this.cbQBItems.TabIndex = 11; // // SetQBInvoiceTemplate @@ -107,6 +107,7 @@ this.Controls.Add(this.btnCancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "SetQBInvoiceTemplate"; + this.Padding = new System.Windows.Forms.Padding(16); this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SetQBInvoiceTemplate"; diff --git a/AyaNovaQBI/SetQBTerms.Designer.cs b/AyaNovaQBI/SetQBTerms.Designer.cs index 1c9badd..7fdda3b 100644 --- a/AyaNovaQBI/SetQBTerms.Designer.cs +++ b/AyaNovaQBI/SetQBTerms.Designer.cs @@ -60,25 +60,25 @@ // 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.Location = new System.Drawing.Point(16, 16); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(637, 30); + this.lblTitle.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 46); this.lblDescription.Name = "lblDescription"; - this.lblDescription.Size = new System.Drawing.Size(637, 165); + this.lblDescription.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 211); this.lblStatus.Name = "lblStatus"; this.lblStatus.Size = new System.Drawing.Size(0, 13); this.lblStatus.TabIndex = 10; @@ -88,9 +88,9 @@ this.cbQBTerms.Dock = System.Windows.Forms.DockStyle.Top; this.cbQBTerms.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbQBTerms.FormattingEnabled = true; - this.cbQBTerms.Location = new System.Drawing.Point(0, 208); + this.cbQBTerms.Location = new System.Drawing.Point(16, 224); this.cbQBTerms.Name = "cbQBTerms"; - this.cbQBTerms.Size = new System.Drawing.Size(637, 21); + this.cbQBTerms.Size = new System.Drawing.Size(605, 21); this.cbQBTerms.TabIndex = 11; // // SetQBTerms @@ -107,6 +107,7 @@ this.Controls.Add(this.btnCancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "SetQBTerms"; + this.Padding = new System.Windows.Forms.Padding(16); this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SetQBTerms"; diff --git a/AyaNovaQBI/SetToBePrinted.Designer.cs b/AyaNovaQBI/SetToBePrinted.Designer.cs index 092bbf6..42882a1 100644 --- a/AyaNovaQBI/SetToBePrinted.Designer.cs +++ b/AyaNovaQBI/SetToBePrinted.Designer.cs @@ -60,25 +60,25 @@ // 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.Location = new System.Drawing.Point(16, 16); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(637, 30); + this.lblTitle.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 46); this.lblDescription.Name = "lblDescription"; - this.lblDescription.Size = new System.Drawing.Size(637, 165); + this.lblDescription.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 211); this.lblStatus.Name = "lblStatus"; this.lblStatus.Size = new System.Drawing.Size(0, 13); this.lblStatus.TabIndex = 10; @@ -87,9 +87,9 @@ // this.ckPrinted.AutoSize = true; this.ckPrinted.Dock = System.Windows.Forms.DockStyle.Top; - this.ckPrinted.Location = new System.Drawing.Point(0, 208); + this.ckPrinted.Location = new System.Drawing.Point(16, 224); this.ckPrinted.Name = "ckPrinted"; - this.ckPrinted.Size = new System.Drawing.Size(637, 17); + this.ckPrinted.Size = new System.Drawing.Size(605, 17); this.ckPrinted.TabIndex = 11; this.ckPrinted.Text = "Set to be printed"; this.ckPrinted.UseVisualStyleBackColor = true; @@ -108,6 +108,7 @@ this.Controls.Add(this.btnCancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "SetToBePrinted"; + this.Padding = new System.Windows.Forms.Padding(16); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SetToBePrinted"; this.Load += new System.EventHandler(this.SetQBClass_load); diff --git a/AyaNovaQBI/SetWOStatus.Designer.cs b/AyaNovaQBI/SetWOStatus.Designer.cs index e24343d..2db3749 100644 --- a/AyaNovaQBI/SetWOStatus.Designer.cs +++ b/AyaNovaQBI/SetWOStatus.Designer.cs @@ -60,25 +60,25 @@ // 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.Location = new System.Drawing.Point(16, 16); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(637, 30); + this.lblTitle.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 46); this.lblDescription.Name = "lblDescription"; - this.lblDescription.Size = new System.Drawing.Size(637, 165); + this.lblDescription.Size = new System.Drawing.Size(605, 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.Location = new System.Drawing.Point(16, 211); this.lblStatus.Name = "lblStatus"; this.lblStatus.Size = new System.Drawing.Size(0, 13); this.lblStatus.TabIndex = 10; @@ -88,9 +88,9 @@ this.cbStatus.Dock = System.Windows.Forms.DockStyle.Top; this.cbStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbStatus.FormattingEnabled = true; - this.cbStatus.Location = new System.Drawing.Point(0, 208); + this.cbStatus.Location = new System.Drawing.Point(16, 224); this.cbStatus.Name = "cbStatus"; - this.cbStatus.Size = new System.Drawing.Size(637, 21); + this.cbStatus.Size = new System.Drawing.Size(605, 21); this.cbStatus.TabIndex = 11; // // SetWOStatus @@ -107,6 +107,7 @@ this.Controls.Add(this.btnCancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "SetWOStatus"; + this.Padding = new System.Windows.Forms.Padding(16); this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SetWOStatus"; diff --git a/AyaNovaQBI/devinfo.txt b/AyaNovaQBI/devinfo.txt index 1a824b1..3a4750d 100644 --- a/AyaNovaQBI/devinfo.txt +++ b/AyaNovaQBI/devinfo.txt @@ -1,2 +1,3 @@ TODO: -Test persisted form settings for server url \ No newline at end of file +Test persisted form settings for server url +Docs should not refer to autoclose anymore, it's status driven now diff --git a/AyaNovaQBI/util.cs b/AyaNovaQBI/util.cs index c9c8146..5bff346 100644 --- a/AyaNovaQBI/util.cs +++ b/AyaNovaQBI/util.cs @@ -850,7 +850,7 @@ namespace AyaNovaQBI s1.DialogTitle = "AyaNova QBI setup - Choose post billed Workorder Status"; s1.OptionTitle = "Post billing workorder status"; s1.OptionDescription = "After QBI has billed out a work order, it can change the \r\n" + - "work order status for you automatically if desired."; + "work order status for you automatically if desired.\r\nIt is recommended to set the work order to a locking / closed status after invoicing."; s1.SelectedStatus = QDat.PostWOStatus; s1.PreStatus = false; if (s1.ShowDialog() == DialogResult.Cancel) @@ -1275,37 +1275,38 @@ namespace AyaNovaQBI #endregion + - #region SetAutoCloseField Case 7 - //No validation possible - //so prompt only if not setup yet - if (!SetEverything) - { - goto SETAUTOCLOSEOK; + //#region SetAutoCloseField Case 7 + ////No validation possible + ////so prompt only if not setup yet + //if (!SetEverything) + //{ + // goto SETAUTOCLOSEOK; - } + //} - SetAutoClose s6 = new SetAutoClose(); - s6.DialogTitle = "AyaNova QBI setup - Close when invoiced?"; - s6.OptionTitle = "Close work order after invoicing"; - s6.OptionDescription = - "QBI needs to know if you want work orders that it invoices \r\n" + - "automatically set to closed"; - s6.AutoClose = QDat.AutoClose; + //SetAutoClose s6 = new SetAutoClose(); + //s6.DialogTitle = "AyaNova QBI setup - Close when invoiced?"; + //s6.OptionTitle = "Close work order after invoicing"; + //s6.OptionDescription = + // "QBI needs to know if you want work orders that it invoices \r\n" + + // "automatically set to closed"; + //s6.AutoClose = QDat.AutoClose; - if (s6.ShowDialog() == DialogResult.Cancel) - { - return pfstat.Cancel; + //if (s6.ShowDialog() == DialogResult.Cancel) + //{ + // return pfstat.Cancel; - } - else - QDat.AutoClose = s6.AutoClose; - s6.Dispose(); - s6 = null; + //} + //else + // QDat.AutoClose = s6.AutoClose; + //s6.Dispose(); + //s6 = null; - SETAUTOCLOSEOK: + //SETAUTOCLOSEOK: - #endregion + // #endregion // //Save if changes made