This commit is contained in:
2022-07-01 00:38:15 +00:00
parent 2aa4b6d28b
commit 356bcfe64d
11 changed files with 364 additions and 47 deletions

54
AyaNovaQBI/SetQBTerms.cs Normal file
View File

@@ -0,0 +1,54 @@
using System;
using System.Data;
using System.Windows.Forms;
namespace AyaNovaQBI
{
public partial class SetQBTerms : Form
{
public SetQBTerms()
{
InitializeComponent();
}
public string DialogTitle { get; set; }
public string OptionTitle { get; set; }
public string OptionDescription { get; set; }
public DataTable QBTerms { get; set; }
public string SelectedQBTerm { get; set; }
private void SetQBClass_load(object sender, EventArgs e)
{
Text = DialogTitle;
lblDescription.Text = OptionDescription;
lblTitle.Text = OptionTitle;
btnCancel.Text = util.AyaTranslations["Cancel"];
btnOK.Text = util.AyaTranslations["OK"];
cbQBTerms.DataSource = QBTerms;
cbQBTerms.DisplayMember = "FullName";
cbQBTerms.ValueMember = "ID";
if (SelectedQBTerm == "")
cbQBTerms.SelectedIndex = 0;
else
this.cbQBTerms.SelectedValue = SelectedQBTerm;
lblStatus.Text = "QuickBooks invoice terms default";
}
private void btnOK_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
}
}