コード例 #1
0
 /// <summary>
 /// PRINT PREVIEW
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPreview_Click(object sender, EventArgs e)
 {
     PaySlip payslipForm = new PaySlip();
     //payslipForm.PrintEmployeeData( textEmployeeId.Text, textFirstName.Text, textLastName.Text,
     //    textSsnitNumber.Text, dateTimePickerPayDate, comboBxPayMonth, textBasicSalary.Text,
     //    textSsnitEmployee.Text,textSsnitEmployer.Text,textHousing.Text, textTransport.Text,
     //    textDressing.Text, textTotalEarning.Text, textIncomeTax.Text,
     //    textTotalDeduction.Text, textnetSalary.Text);
 }
コード例 #2
0
        /// <summary>
        /// PAYSLIP PREVIEW
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnPaySlip_Click(object sender, EventArgs e)
        {
            PaySlip payslip = new PaySlip();

            payslip.PrintEmployeeData(
                Convert.ToInt32(textEmployeeId.Text),
                textFirstName.Text,
                textLastName.Text,
                textSsnitNumber.Text,
                _lblSystemDate.Text,
                Convert.ToString(comboBxPayMonth.SelectedText),
                textBasicSalary.Text,
                _textSsnitEmployee.Text,
                _textSsnitEmployer.Text,
                textHousing.Text,
                textTransport.Text,
                textDressing.Text,
                textTotalEarning.Text,
                _textIncomeTax.Text,
                _textTotalDeduction.Text,
                _textnetSalary.Text);

            payslip.ShowDialog();
        }