Beispiel #1
0
 public Holiday()
 {
     InitializeComponent();
     holiday = new Holidays();
     counts  = new Counts();
     admin   = new Admin();
 }
 public Holiday()
 {
     InitializeComponent();
     holiday = new Holidays();
     counts = new Counts();
     admin = new Admin();
 }
Beispiel #3
0
 public Payroll()
 {
     InitializeComponent();
     admin           = new Admin();
     payroll         = new Payrollsss();
     counts          = new Counts();
     attendaceReport = new AttendanceReport();
 }
 public Payroll()
 {
     InitializeComponent();
     admin = new Admin();
     payroll = new Payrollsss();
     counts = new Counts();
     attendaceReport = new AttendanceReport();
 }
 public void GetLastIDPayroll(Counts counts)
 {
     SqlCommand command = new SqlCommand();
     Object returnValue;
     command.Connection = connection;
     command.CommandType = CommandType.StoredProcedure;
     command.CommandText = "fprocedureLastIDPayroll";
     command.Connection = connection;
     connection.Open();
     returnValue = command.ExecuteScalar();
     connection.Close();
     counts.LastID = returnValue.ToString();
 }
 public void GetCountHoliday(Counts counts)
 {
     SqlCommand command = new SqlCommand();
     Object returnValue;
     command.Connection = connection;
     command.CommandType = CommandType.StoredProcedure;
     command.CommandText = "hprocedureCountHoliday";
     command.Connection = connection;
     connection.Open();
     returnValue = command.ExecuteScalar();
     connection.Close();
     counts.Countss = returnValue.ToString();
 }