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.
 
 

204 lines
6.6 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 ManagementSystem
{
public partial class MainForm : Form
{
public static string strKey = "";
public static string strActiveUserID = "";
public static string strAccountingBookID = "";
public MainForm()
{
InitializeComponent();
}
private void MainForm_Load(object sender, EventArgs e)
{
LoginForm lgForm = new LoginForm();
Screen WorkingScreen = Screen.PrimaryScreen;
lgForm.Owner = this;
lgForm.StartPosition = FormStartPosition.CenterParent;
lgForm.ShowDialog();
}
private void tsmiAccountingItem_Click(object sender, EventArgs e)
{
AccountingSubjectMaintain acForm = new AccountingSubjectMaintain();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiHRDataMaintain_Click(object sender, EventArgs e)
{
HRMembers acForm = new HRMembers();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiInsuranceMaintain_Click(object sender, EventArgs e)
{
InsuranceMaintain acForm = new InsuranceMaintain();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
{
Application.Exit();
}
private void tsmiAccountingBook_Click(object sender, EventArgs e)
{
AccountingJournalMaintain acForm = new AccountingJournalMaintain();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void tESTToolStripMenuItem_Click(object sender, EventArgs e)
{
TestForm ts = new TestForm();
ts.MdiParent = this;
ts.Show();
}
private void tsmiOpeningEntry_Click(object sender, EventArgs e)
{
AccountingOpeningEntry openForm = new AccountingOpeningEntry();
Screen WorkingScreen = Screen.PrimaryScreen;
openForm.StartPosition = FormStartPosition.CenterParent;
openForm.ShowDialog();
}
private void tsmiAccountingBookMaintain_Click(object sender, EventArgs e)
{
AccountingBookMaintain acForm = new AccountingBookMaintain();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiLedger_Click(object sender, EventArgs e)
{
AccountingLedger acForm = new AccountingLedger();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiPayPlanManagement_Click(object sender, EventArgs e)
{
PayPlanManagement acForm = new PayPlanManagement();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiARManagement_Click(object sender, EventArgs e)
{
AccountsReceivable acForm = new AccountsReceivable();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiAPManagement_Click(object sender, EventArgs e)
{
AccountsPayable acForm = new AccountsPayable();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiSalary_Click(object sender, EventArgs e)
{
DayOffEstimate acForm = new DayOffEstimate();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmIncomeStatement_Click(object sender, EventArgs e)
{
IncomeStatement acForm = new IncomeStatement();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiCashFlow_Click(object sender, EventArgs e)
{
CashFlowForecast acForm = new CashFlowForecast();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiCustomerProvide_Click(object sender, EventArgs e)
{
CustomerProvide acForm = new CustomerProvide();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmProjectIncomeStatement_Click(object sender, EventArgs e)
{
ProjectIncomeStatement acForm = new ProjectIncomeStatement();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiCurrenyRateSetting_Click(object sender, EventArgs e)
{
CurrencySetting openForm = new CurrencySetting();
Screen WorkingScreen = Screen.PrimaryScreen;
openForm.StartPosition = FormStartPosition.CenterParent;
openForm.ShowDialog();
}
private void tsmiBalanceSheet_Click(object sender, EventArgs e)
{
BalanceSheet acForm = new BalanceSheet();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiGoCorrect_Click(object sender, EventArgs e)
{
HRDataCorrect acForm = new HRDataCorrect();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
private void tsmiCleanHistory_Click(object sender, EventArgs e)
{
CleanHistory acForm = new CleanHistory();
acForm.MdiParent = this;
acForm.WindowState = FormWindowState.Maximized;
acForm.Show();
}
}
}