private void btnprint_Click(object sender, EventArgs e) { if (dataGridView1.Rows.Count > 0) { REPORTCLASS s = new REPORTCLASS(); s.showsales(dateTimePicker1.Value.ToShortDateString(), dateTimePicker2.Value.ToShortDateString(), comboBox2.Text, dataGridView1); } else { MessageBox.Show("NO RECORDS TO PRINT!"); } }
void manifest() { REPORTCLASS r = new REPORTCLASS(); r.showmanifestreport(cmbportfrom.Text, lbltrans.Text, comboBox1.Text.ToUpper(), txtcaptain.Text.ToUpper(), txtcapacity.Text, dtparrivalime.Text, dtparrivalime.Value.AddMinutes(15).ToString(), cmbport.Text.ToUpper(), dataGridView1); }
void reportcard() { REPORTCLASS rc = new REPORTCLASS(); rc.showreportCard(lblidno.Text, (lblfname.Text.ToUpper() + ' ' + lblmname.Text.Substring(0, 1).ToUpper() + ' ' + lblsname.Text.ToUpper()), (lbladd.Text.ToUpper() + ' ' + lblbdate.Text), DateTime.Now.ToShortDateString(), pictureBox1); }
void manifest() { REPORTCLASS r = new REPORTCLASS(); r.showmanifestreport(txtportfrom.Text, txttrans.Text, txtferryname.Text.ToUpper(), txtcapt.Text.ToUpper(), txtcapacity.Text, txttimearrival.Text, txttimearrival.Text, txtportto.Text.ToUpper(), dataGridView1); }