You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
2.8 KiB
106 lines
2.8 KiB
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 BiskLog_Point_Of_Sale.Customer
|
|
{
|
|
public partial class CustomerHistory : Form
|
|
{
|
|
string id;
|
|
Form Active;
|
|
public CustomerHistory(string ID)
|
|
{
|
|
InitializeComponent();
|
|
this.id = ID;
|
|
}
|
|
|
|
private void CLOSE_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
public void LoadShop()
|
|
{
|
|
ordersActive.Visible = false;
|
|
shopActive.Visible = true;
|
|
financeActive.Visible = false;
|
|
ShopPurchase system = new ShopPurchase(id);
|
|
system.TopLevel = false;
|
|
if (Active != null)
|
|
{
|
|
contentPanel.Controls.Remove(Active);
|
|
}
|
|
contentPanel.Controls.Add(system);
|
|
Active = system;
|
|
system.BringToFront();
|
|
system.Show();
|
|
}
|
|
public void LoadDelivery()
|
|
{
|
|
ordersActive.Visible = true;
|
|
shopActive.Visible = false;
|
|
financeActive.Visible = false;
|
|
DeliveryLogs system = new DeliveryLogs(id);
|
|
system.TopLevel = false;
|
|
if (Active != null)
|
|
{
|
|
contentPanel.Controls.Remove(Active);
|
|
}
|
|
contentPanel.Controls.Add(system);
|
|
Active = system;
|
|
system.BringToFront();
|
|
system.Show();
|
|
}
|
|
public void LoadFinance()
|
|
{
|
|
financeActive.Visible = true;
|
|
ordersActive.Visible = false;
|
|
shopActive.Visible = false;
|
|
Finance system = new Finance(id);
|
|
system.TopLevel = false;
|
|
if (Active != null)
|
|
{
|
|
contentPanel.Controls.Remove(Active);
|
|
}
|
|
contentPanel.Controls.Add(system);
|
|
Active = system;
|
|
system.BringToFront();
|
|
system.Show();
|
|
}
|
|
|
|
private void CustomerHistory_Load(object sender, EventArgs e)
|
|
{
|
|
LoadFinance();
|
|
}
|
|
|
|
private void label1_Click(object sender, EventArgs e)
|
|
{
|
|
LoadShop();
|
|
}
|
|
|
|
private void CLOSE_MouseEnter(object sender, EventArgs e)
|
|
{
|
|
CLOSE.BackColor = Color.Crimson;
|
|
}
|
|
|
|
private void CLOSE_MouseLeave(object sender, EventArgs e)
|
|
{
|
|
CLOSE.BackColor = Color.Transparent;
|
|
}
|
|
|
|
private void label3_Click(object sender, EventArgs e)
|
|
{
|
|
LoadDelivery();
|
|
}
|
|
|
|
private void label2_Click(object sender, EventArgs e)
|
|
{
|
|
LoadFinance();
|
|
}
|
|
}
|
|
}
|
|
|