mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-03-20 06:57:15 +00:00
progress has been made. Beer o'clock
This commit is contained in:
74
src/bnhtrade.gui/Form1.Designer.cs
generated
74
src/bnhtrade.gui/Form1.Designer.cs
generated
@@ -31,15 +31,15 @@
|
||||
components = new System.ComponentModel.Container();
|
||||
tabControl1 = new TabControl();
|
||||
tabPage1 = new TabPage();
|
||||
tabPage3 = new TabPage();
|
||||
tabPage2 = new TabPage();
|
||||
Receiving = new TabPage();
|
||||
comboBox1 = new ComboBox();
|
||||
purchaseLineStatusBindingSource = new BindingSource(components);
|
||||
dtTmOrderSearch = new DateTimePicker();
|
||||
label1 = new Label();
|
||||
txtbxOrderSearch = new TextBox();
|
||||
tabPage2 = new TabPage();
|
||||
purchaseLineStatusBindingSource = new BindingSource(components);
|
||||
tabControl1.SuspendLayout();
|
||||
tabPage3.SuspendLayout();
|
||||
Receiving.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)purchaseLineStatusBindingSource).BeginInit();
|
||||
SuspendLayout();
|
||||
//
|
||||
@@ -47,8 +47,8 @@
|
||||
//
|
||||
tabControl1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
||||
tabControl1.Controls.Add(tabPage1);
|
||||
tabControl1.Controls.Add(tabPage3);
|
||||
tabControl1.Controls.Add(tabPage2);
|
||||
tabControl1.Controls.Add(Receiving);
|
||||
tabControl1.Location = new Point(12, 12);
|
||||
tabControl1.Name = "tabControl1";
|
||||
tabControl1.SelectedIndex = 0;
|
||||
@@ -66,20 +66,31 @@
|
||||
tabPage1.Text = "Home";
|
||||
tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage3
|
||||
// tabPage2
|
||||
//
|
||||
tabPage3.Controls.Add(comboBox1);
|
||||
tabPage3.Controls.Add(dtTmOrderSearch);
|
||||
tabPage3.Controls.Add(label1);
|
||||
tabPage3.Controls.Add(txtbxOrderSearch);
|
||||
tabPage3.Location = new Point(4, 24);
|
||||
tabPage3.Name = "tabPage3";
|
||||
tabPage3.Padding = new Padding(3);
|
||||
tabPage3.Size = new Size(1002, 505);
|
||||
tabPage3.TabIndex = 2;
|
||||
tabPage3.Text = "Receiving";
|
||||
tabPage3.UseVisualStyleBackColor = true;
|
||||
tabPage3.Click += tabPage3_Click;
|
||||
tabPage2.AccessibleName = "";
|
||||
tabPage2.Location = new Point(4, 24);
|
||||
tabPage2.Name = "tabPage2";
|
||||
tabPage2.Padding = new Padding(3);
|
||||
tabPage2.Size = new Size(1002, 505);
|
||||
tabPage2.TabIndex = 1;
|
||||
tabPage2.Text = "FBA Shipments";
|
||||
tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// Receiving
|
||||
//
|
||||
Receiving.Controls.Add(comboBox1);
|
||||
Receiving.Controls.Add(dtTmOrderSearch);
|
||||
Receiving.Controls.Add(label1);
|
||||
Receiving.Controls.Add(txtbxOrderSearch);
|
||||
Receiving.Location = new Point(4, 24);
|
||||
Receiving.Name = "Receiving";
|
||||
Receiving.Padding = new Padding(3);
|
||||
Receiving.Size = new Size(1002, 505);
|
||||
Receiving.TabIndex = 2;
|
||||
Receiving.Text = "Receiving";
|
||||
Receiving.UseVisualStyleBackColor = true;
|
||||
Receiving.Click += tabPage3_Click;
|
||||
//
|
||||
// comboBox1
|
||||
//
|
||||
@@ -93,6 +104,11 @@
|
||||
comboBox1.ValueMember = "PurchaseLineStatusId";
|
||||
comboBox1.SelectedIndexChanged += comboBox1_SelectedIndexChanged;
|
||||
//
|
||||
// purchaseLineStatusBindingSource
|
||||
//
|
||||
purchaseLineStatusBindingSource.DataSource = typeof(Core.Model.Purchase.PurchaseLineStatus);
|
||||
purchaseLineStatusBindingSource.CurrentChanged += purchaseLineStatusBindingSource_CurrentChanged;
|
||||
//
|
||||
// dtTmOrderSearch
|
||||
//
|
||||
dtTmOrderSearch.Location = new Point(356, 46);
|
||||
@@ -116,22 +132,6 @@
|
||||
txtbxOrderSearch.Size = new Size(268, 23);
|
||||
txtbxOrderSearch.TabIndex = 0;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
tabPage2.AccessibleName = "";
|
||||
tabPage2.Location = new Point(4, 24);
|
||||
tabPage2.Name = "tabPage2";
|
||||
tabPage2.Padding = new Padding(3);
|
||||
tabPage2.Size = new Size(1002, 505);
|
||||
tabPage2.TabIndex = 1;
|
||||
tabPage2.Text = "FBA Shipments";
|
||||
tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// purchaseLineStatusBindingSource
|
||||
//
|
||||
purchaseLineStatusBindingSource.DataSource = typeof(Core.Model.Purchase.PurchaseLineStatus);
|
||||
purchaseLineStatusBindingSource.CurrentChanged += purchaseLineStatusBindingSource_CurrentChanged;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
@@ -142,8 +142,8 @@
|
||||
Text = "Form1";
|
||||
Load += Form1_Load;
|
||||
tabControl1.ResumeLayout(false);
|
||||
tabPage3.ResumeLayout(false);
|
||||
tabPage3.PerformLayout();
|
||||
Receiving.ResumeLayout(false);
|
||||
Receiving.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)purchaseLineStatusBindingSource).EndInit();
|
||||
ResumeLayout(false);
|
||||
}
|
||||
@@ -153,7 +153,7 @@
|
||||
private TabControl tabControl1;
|
||||
private TabPage tabPage1;
|
||||
private TabPage tabPage2;
|
||||
private TabPage tabPage3;
|
||||
private TabPage Receiving;
|
||||
private TextBox txtbxOrderSearch;
|
||||
private Label label1;
|
||||
private DateTimePicker dtTmOrderSearch;
|
||||
|
||||
@@ -3,12 +3,11 @@ namespace bnhtrade.gui
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
|
||||
bool loadedTabIndex1 = false;
|
||||
bool initTabReceiving = false;
|
||||
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
purchaseLineStatusBindingSource.DataSource = new Core.Logic.Purchase.PurchaseLineStatus().ReadAll();
|
||||
}
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
@@ -24,13 +23,21 @@ namespace bnhtrade.gui
|
||||
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
int index = (sender as TabControl).SelectedIndex;
|
||||
string name = tabControl1.SelectedTab.Name;
|
||||
|
||||
if (index == 1)
|
||||
if (name == "Receiving" && initTabReceiving == false)
|
||||
{
|
||||
|
||||
InitialiseTabReceiving();
|
||||
}
|
||||
}
|
||||
|
||||
private void InitialiseTabReceiving()
|
||||
{
|
||||
purchaseLineStatusBindingSource.DataSource = new Core.Logic.Account.PurchaseInvoice().ReadLineStatusToList();
|
||||
initTabReceiving = true;
|
||||
MessageBox.Show("ldsakjfl;s");
|
||||
}
|
||||
|
||||
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -40,5 +47,6 @@ namespace bnhtrade.gui
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,4 +120,7 @@
|
||||
<metadata name="purchaseLineStatusBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="purchaseLineStatusBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
Reference in New Issue
Block a user