private void btnIN_Click(object sender, EventArgs e) { String maLop = edtLOP.Text; DSSV rpt = new DSSV(maLop); rpt.ShowPreviewDialog(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var data = ws.SinhVienInfo(); DSSV.DataSource = data; DSSV.DataBind(); } }
private void inBtn_Click(object sender, EventArgs e) { DSSV report = new DSSV(this.cbLop.SelectedValue.ToString()); report.lblLop.Text = cbLop.Text; report.lblGiangVien.Text = "Người In Ấn : " + Program.mHoten; ReportPrintTool print = new ReportPrintTool(report); print.ShowPreviewDialog(); }
public void AddDataRowSV(SinhVien s) { DataRow dr = DSSV.NewRow(); dr["MSSV"] = s.MSSV; dr["HoTen"] = s.HoTen; dr["DiaChi"] = s.DiaChi; dr["DienThoai"] = s.DienThoai; dr["NgaySinh"] = Convert.ToDateTime(s.NgaySinh); dr["NienKhoa"] = s.NienKhoa; DSSV.Rows.Add(dr); }