This commit is contained in:
2
AyaNovaQBI/ApproveCompanyFile.Designer.cs
generated
2
AyaNovaQBI/ApproveCompanyFile.Designer.cs
generated
@@ -101,7 +101,7 @@
|
||||
this.Padding = new System.Windows.Forms.Padding(16);
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "ApproveCompanyFile";
|
||||
this.Text = "QuickBooks Company file";
|
||||
this.Load += new System.EventHandler(this.ApproveCompanyFile_Load);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
|
||||
@@ -26,8 +26,19 @@ namespace AyaNovaQBI
|
||||
|
||||
|
||||
public DataTable QBItems { get; set; }
|
||||
public string SelectedQBItem { get => (string)cbQBItems.SelectedValue; set { } }
|
||||
//private string _selectedQBItem;
|
||||
public string SelectedQBItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return _selectedQBItem;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_selectedQBItem = value;
|
||||
}
|
||||
}
|
||||
private string _selectedQBItem;
|
||||
|
||||
private void SetQBChargeAsLoad(object sender, EventArgs e)
|
||||
{
|
||||
@@ -42,13 +53,14 @@ namespace AyaNovaQBI
|
||||
this.cbQBItems.DataSource = QBItems;
|
||||
this.cbQBItems.DisplayMember = "FullName";
|
||||
this.cbQBItems.ValueMember = "ID";
|
||||
if (SelectedQBItem == "")
|
||||
cbQBItems.SelectedIndex = 0;
|
||||
else
|
||||
this.cbQBItems.SelectedValue = SelectedQBItem;
|
||||
|
||||
|
||||
this.lblStatus.Text = "QuickBooks item:";
|
||||
|
||||
if (string.IsNullOrWhiteSpace(_selectedQBItem))
|
||||
cbQBItems.SelectedIndex = 0;
|
||||
else
|
||||
this.cbQBItems.SelectedValue = _selectedQBItem;
|
||||
|
||||
////NVCHANGED
|
||||
//GenericNVList ls = GenericNVList.GetList("aWorkorderStatus", "aID", "aName", true, false, false);
|
||||
|
||||
1
AyaNovaQBI/Waiting.Designer.cs
generated
1
AyaNovaQBI/Waiting.Designer.cs
generated
@@ -64,6 +64,7 @@
|
||||
this.Cursor = System.Windows.Forms.Cursors.AppStarting;
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.Name = "Waiting";
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Processing";
|
||||
this.TopMost = true;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
TODO:
|
||||
Test persisted form settings for server url
|
||||
Docs should not refer to autoclose anymore, it's status driven now
|
||||
disable menu on boot until ready for action
|
||||
|
||||
@@ -920,12 +920,8 @@ namespace AyaNovaQBI
|
||||
"This setting is mandatory / required.";
|
||||
s2.QBItems = QBItems;
|
||||
s2.SelectedQBItem = QDat.OutsideServiceChargeAs;
|
||||
//s2.SelectedQBItem=QDat.PreWOStatus;
|
||||
if (s2.ShowDialog() == DialogResult.Cancel)
|
||||
{
|
||||
return pfstat.Cancel;
|
||||
|
||||
}
|
||||
else
|
||||
QDat.OutsideServiceChargeAs = s2.SelectedQBItem;
|
||||
s2.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user