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.

196 lines
6.3 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace ManagementSystem
  11. {
  12. public partial class MainForm : Form
  13. {
  14. public static string strKey = "";
  15. public static string strActiveUserID = "";
  16. public static string strAccountingBookID = "";
  17. public MainForm()
  18. {
  19. InitializeComponent();
  20. }
  21. private void MainForm_Load(object sender, EventArgs e)
  22. {
  23. LoginForm lgForm = new LoginForm();
  24. Screen WorkingScreen = Screen.PrimaryScreen;
  25. lgForm.Owner = this;
  26. lgForm.StartPosition = FormStartPosition.CenterParent;
  27. lgForm.ShowDialog();
  28. }
  29. private void tsmiAccountingItem_Click(object sender, EventArgs e)
  30. {
  31. AccountingSubjectMaintain acForm = new AccountingSubjectMaintain();
  32. acForm.MdiParent = this;
  33. acForm.WindowState = FormWindowState.Maximized;
  34. acForm.Show();
  35. }
  36. private void tsmiHRDataMaintain_Click(object sender, EventArgs e)
  37. {
  38. HRMembers acForm = new HRMembers();
  39. acForm.MdiParent = this;
  40. acForm.WindowState = FormWindowState.Maximized;
  41. acForm.Show();
  42. }
  43. private void tsmiInsuranceMaintain_Click(object sender, EventArgs e)
  44. {
  45. InsuranceMaintain acForm = new InsuranceMaintain();
  46. acForm.MdiParent = this;
  47. acForm.WindowState = FormWindowState.Maximized;
  48. acForm.Show();
  49. }
  50. private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
  51. {
  52. Application.Exit();
  53. }
  54. private void tsmiAccountingBook_Click(object sender, EventArgs e)
  55. {
  56. AccountingJournalMaintain acForm = new AccountingJournalMaintain();
  57. acForm.MdiParent = this;
  58. acForm.WindowState = FormWindowState.Maximized;
  59. acForm.Show();
  60. }
  61. private void tsmiExit_Click(object sender, EventArgs e)
  62. {
  63. Application.Exit();
  64. }
  65. private void tESTToolStripMenuItem_Click(object sender, EventArgs e)
  66. {
  67. TestForm ts = new TestForm();
  68. ts.MdiParent = this;
  69. ts.Show();
  70. }
  71. private void tsmiOpeningEntry_Click(object sender, EventArgs e)
  72. {
  73. AccountingOpeningEntry openForm = new AccountingOpeningEntry();
  74. Screen WorkingScreen = Screen.PrimaryScreen;
  75. openForm.StartPosition = FormStartPosition.CenterParent;
  76. openForm.ShowDialog();
  77. }
  78. private void tsmiAccountingBookMaintain_Click(object sender, EventArgs e)
  79. {
  80. AccountingBookMaintain acForm = new AccountingBookMaintain();
  81. acForm.MdiParent = this;
  82. acForm.WindowState = FormWindowState.Maximized;
  83. acForm.Show();
  84. }
  85. private void tsmiLedger_Click(object sender, EventArgs e)
  86. {
  87. AccountingLedger acForm = new AccountingLedger();
  88. acForm.MdiParent = this;
  89. acForm.WindowState = FormWindowState.Maximized;
  90. acForm.Show();
  91. }
  92. private void tsmiPayPlanManagement_Click(object sender, EventArgs e)
  93. {
  94. PayPlanManagement acForm = new PayPlanManagement();
  95. acForm.MdiParent = this;
  96. acForm.WindowState = FormWindowState.Maximized;
  97. acForm.Show();
  98. }
  99. private void tsmiARManagement_Click(object sender, EventArgs e)
  100. {
  101. AccountsReceivable acForm = new AccountsReceivable();
  102. acForm.MdiParent = this;
  103. acForm.WindowState = FormWindowState.Maximized;
  104. acForm.Show();
  105. }
  106. private void tsmiAPManagement_Click(object sender, EventArgs e)
  107. {
  108. AccountsPayable acForm = new AccountsPayable();
  109. acForm.MdiParent = this;
  110. acForm.WindowState = FormWindowState.Maximized;
  111. acForm.Show();
  112. }
  113. private void tsmiSalary_Click(object sender, EventArgs e)
  114. {
  115. DayOffEstimate acForm = new DayOffEstimate();
  116. acForm.MdiParent = this;
  117. acForm.WindowState = FormWindowState.Maximized;
  118. acForm.Show();
  119. }
  120. private void tsmIncomeStatement_Click(object sender, EventArgs e)
  121. {
  122. IncomeStatement acForm = new IncomeStatement();
  123. acForm.MdiParent = this;
  124. acForm.WindowState = FormWindowState.Maximized;
  125. acForm.Show();
  126. }
  127. private void tsmiCashFlow_Click(object sender, EventArgs e)
  128. {
  129. CashFlowForecast acForm = new CashFlowForecast();
  130. acForm.MdiParent = this;
  131. acForm.WindowState = FormWindowState.Maximized;
  132. acForm.Show();
  133. }
  134. private void tsmiCustomerProvide_Click(object sender, EventArgs e)
  135. {
  136. CustomerProvide acForm = new CustomerProvide();
  137. acForm.MdiParent = this;
  138. acForm.WindowState = FormWindowState.Maximized;
  139. acForm.Show();
  140. }
  141. private void tsmProjectIncomeStatement_Click(object sender, EventArgs e)
  142. {
  143. ProjectIncomeStatement acForm = new ProjectIncomeStatement();
  144. acForm.MdiParent = this;
  145. acForm.WindowState = FormWindowState.Maximized;
  146. acForm.Show();
  147. }
  148. private void tsmiCurrenyRateSetting_Click(object sender, EventArgs e)
  149. {
  150. CurrencySetting openForm = new CurrencySetting();
  151. Screen WorkingScreen = Screen.PrimaryScreen;
  152. openForm.StartPosition = FormStartPosition.CenterParent;
  153. openForm.ShowDialog();
  154. }
  155. private void tsmiBalanceSheet_Click(object sender, EventArgs e)
  156. {
  157. BalanceSheet acForm = new BalanceSheet();
  158. acForm.MdiParent = this;
  159. acForm.WindowState = FormWindowState.Maximized;
  160. acForm.Show();
  161. }
  162. private void tsmiGoCorrect_Click(object sender, EventArgs e)
  163. {
  164. HRDataCorrect acForm = new HRDataCorrect();
  165. acForm.MdiParent = this;
  166. acForm.WindowState = FormWindowState.Maximized;
  167. acForm.Show();
  168. }
  169. }
  170. }