Пример #1
0
        private void tsbTHR_Click(object sender, EventArgs e)
        {
            if (Store.IsThrClosed == false)
            {
                Store.ActiveForm = "THR";

                var frmParamDate = new ParamDateUI();
                frmParamDate.MdiParent = this;
                frmParamDate.Text      = "Proses THR";

                frmParamDate.Show();
            }
            else
            {
                var frmThr = new THRUI();
                frmThr.MdiParent = this;
                frmThr.Show();
            }
        }
Пример #2
0
        private void tsbSalary_Click(object sender, EventArgs e)
        {
            if (Store.IsPeriodClosed == false)
            {
                Store.ActiveForm = "Payroll";

                var frmParamDate = new ParamDateUI();
                frmParamDate.MdiParent = this;
                frmParamDate.Text      = "Proses Gaji";

                frmParamDate.Show();
            }
            else
            {
                var frmPayrollUI = new PayrollUI();
                frmPayrollUI.MdiParent = this;
                frmPayrollUI.Show();
            }
        }