Esempio n. 1
0
        private void btn_printlist_Click(object sender, EventArgs e)
        {
            RPT_RES_entry frm = new RPT_RES_entry("M101", "Employee List");

            frm.print_employees("");
            frm.ShowDialog();
        }
Esempio n. 2
0
        private void btn_print_Click(object sender, EventArgs e)
        {
            RPT_RES_entry frm = new RPT_RES_entry("MD07", "Witholding Tax Brackets");

            frm.print_master_data();
            frm.ShowDialog();
        }
Esempio n. 3
0
        private void btn_print_Click(object sender, EventArgs e)
        {
            RPT_RES_entry frm = new RPT_RES_entry("MD05", "Holidays");

            frm.print_master_data();
            frm.ShowDialog();
        }
Esempio n. 4
0
        private void btn_print_Click(object sender, EventArgs e)
        {
            isnew = false;

            int    r = -1;
            String code = "", name = "";

            try
            {
                r = dgv_list.CurrentRow.Index;
                if (dgv_list.Rows.Count > 1)
                {
                    code = dgv_list["ID", r].Value.ToString();
                    if (!String.IsNullOrEmpty(code))
                    {
                        RPT_RES_entry frm = new RPT_RES_entry("M101", "Employee Information");
                        frm.print_employees(code);
                        frm.Show();
                    }
                    else
                    {
                        MessageBox.Show("No selected item.");
                    }
                }
                else
                {
                    MessageBox.Show("Employee list is empty.");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Esempio n. 5
0
        private void btn_print_Click(object sender, EventArgs e)
        {
            RPT_RES_entry frm = new RPT_RES_entry("MD09", "PhilHealth Brackets");

            frm.print_master_data();
            frm.ShowDialog();
        }
Esempio n. 6
0
        private void btn_print_Click(object sender, EventArgs e)
        {
            RPT_RES_entry frm = new RPT_RES_entry("MD04", "Shift Schedule List");

            frm.print_master_data();
            frm.ShowDialog();
        }
Esempio n. 7
0
        private void btn_print_Click(object sender, EventArgs e)
        {
            RPT_RES_entry frm = new RPT_RES_entry("MD02", "Department Section List");

            frm.print_master_data();
            frm.ShowDialog();
        }
Esempio n. 8
0
        private void btn_print_Click(object sender, EventArgs e)
        {
            RPT_RES_entry frm = new RPT_RES_entry("MD06", "Payroll Period");

            frm.print_master_data();
            frm.ShowDialog();
        }
Esempio n. 9
0
      private void btn_print_Click(object sender, EventArgs e)
      {
          RPT_RES_entry frm = new RPT_RES_entry("M105", "Empoyee Loan History");

          frm.print_employee_loan_summary((cbo_employee.SelectedValue ?? "").ToString(), "", "");

          frm.ShowDialog();
      }
Esempio n. 10
0
        private void btn_print_Click(object sender, EventArgs e)
        {
            if (dgv_list.Rows.Count > 1)
            {
                try
                {
                    int           r   = dgv_list.CurrentRow.Index;
                    RPT_RES_entry frm = new RPT_RES_entry("M105e", "Empoyee Loan History");
                    frm.print_employee_loan_summary((dgv_list["dgvl_code", r].Value ?? "").ToString());
                    frm.ShowDialog();
                }
                catch
                {
                    MessageBox.Show("No selected item.");
                }

                goto_tbcntrl_info();
            }
            else
            {
                MessageBox.Show("Empty List.");
            }
        }
Esempio n. 11
0
        private void btn_proceed_Click(object sender, EventArgs e)
        {
            Boolean proceed = false;

            if (rpt_code == "M102" || rpt_code == "M103")
            {
                if (cbo_1.SelectedIndex == -1)
                {
                    MessageBox.Show("Please select pay period.");
                    cbo_1.DroppedDown = true;
                    return;
                }
            }


            if (MessageBox.Show("Are you sure you want to proceed?", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                if (rpt_code == "P101")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_payroll_summary((cbo_1.SelectedValue ?? "").ToString(), cbo_2frm.Text, (cbo_2frm.SelectedValue ?? "").ToString(), cbo_2to.Text, (cbo_2to.SelectedValue ?? "").ToString(), (cbo_3.SelectedValue ?? "").ToString(), cbo_4.Text, cbo_5.Text, chk_4.Checked, chk_5.Checked);

                    frm.ShowDialog();
                }
                else if (rpt_code == "P102")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_payslip((cbo_1.SelectedValue ?? "").ToString(), cbo_2frm.Text, (cbo_2frm.SelectedValue ?? "").ToString(), cbo_2to.Text, (cbo_2to.SelectedValue ?? "").ToString(), (cbo_3.SelectedValue ?? "").ToString(), cbo_4.Text, cbo_5.Text, chk_4.Checked, chk_5.Checked);

                    frm.ShowDialog();
                }
                else if (rpt_code == "P202")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_sss_contribution_summary(cbo_1.Text, cbo_2frm.Text, cbo_2to.Text, cbo_3.Text, (cbo_3.SelectedValue ?? "").ToString(), cbo_4l.Text, (cbo_4l.SelectedValue ?? "").ToString());

                    frm.ShowDialog();
                }
                else if (rpt_code == "P203")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_philhealth_contribution_summary(cbo_1.Text, cbo_2frm.Text, cbo_2to.Text, cbo_3.Text, (cbo_3.SelectedValue ?? "").ToString(), cbo_4l.Text, (cbo_4l.SelectedValue ?? "").ToString());

                    frm.ShowDialog();
                }

                else if (rpt_code == "E103")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_employee_listing(cbo_1.Text, (cbo_1.SelectedValue ?? "").ToString(), cbo_2.Text, (cbo_2.SelectedValue ?? "").ToString(), chk_3.Checked, chk_4.Checked);
                    frm.ShowDialog();
                }

                else if (rpt_code == "M102")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_other_earning_summary((cbo_1.SelectedValue ?? "").ToString(), cbo_1.Text, (cbo_2.SelectedValue ?? "").ToString(), cbo_2.Text, (cbo_3.SelectedValue ?? "").ToString(), cbo_3.Text);
                    frm.ShowDialog();
                }
                else if (rpt_code == "M103")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_other_deduction_summary((cbo_1.SelectedValue ?? "").ToString(), cbo_1.Text, (cbo_2.SelectedValue ?? "").ToString(), cbo_2.Text, (cbo_3.SelectedValue ?? "").ToString(), cbo_3.Text);
                    frm.ShowDialog();
                }
                else if (rpt_code == "M104")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_other_deduction_summary_per_employee((cbo_1.SelectedValue ?? "").ToString(), cbo_1.Text, (cbo_2.SelectedValue ?? "").ToString(), cbo_2.Text, (cbo_3.SelectedValue ?? "").ToString(), cbo_3.Text, (cbo_4l.SelectedValue ?? "").ToString());
                    frm.ShowDialog();
                }

                else if (rpt_code == "T101")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_employee_dtr((cbo_1.SelectedValue ?? "").ToString(), cbo_1.Text, (cbo_2.SelectedValue ?? "").ToString(), cbo_2.Text, (cbo_4l.SelectedValue ?? "").ToString(), cbo_4l.Text, dtp_3frm.Value.ToString("yyyy-MM-dd"), dtp_3to.Value.ToString("yyyy-MM-dd"));

                    frm.ShowDialog();
                }
                else if (rpt_code == "T102")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_daily_timelog((cbo_1.SelectedValue ?? "").ToString(), cbo_1.Text, (cbo_2.SelectedValue ?? "").ToString(), cbo_2.Text, (cbo_4l.SelectedValue ?? "").ToString(), cbo_4l.Text, dtp_3frm.Value.ToString("yyyy-MM-dd"), dtp_3to.Value.ToString("yyyy-MM-dd"));

                    frm.ShowDialog();
                }
                else if (rpt_code == "T103")
                {
                    RPT_RES_entry frm = new RPT_RES_entry(rpt_code, this.Text);
                    frm.print_absencelateundertime((cbo_1.SelectedValue ?? "").ToString(), cbo_1.Text, (cbo_2.SelectedValue ?? "").ToString(), cbo_2.Text, (cbo_4l.SelectedValue ?? "").ToString(), cbo_4l.Text, dtp_3frm.Value.ToString("yyyy-MM-dd"), dtp_3to.Value.ToString("yyyy-MM-dd"));

                    frm.ShowDialog();
                }
            }
        }