コード例 #1
0
 private void frmbaocaotheothangquynam_Load(object sender, EventArgs e)
 {
     DAO.connect();
 }
コード例 #2
0
 private void frmsachtruyen_Load(object sender, EventArgs e)
 {
     DAO.connect();
     hienthi();
 }
コード例 #3
0
 private void frmnhaxuatban_Load(object sender, EventArgs e)
 {
     DAO.connect();
     hienthi();
 }
コード例 #4
0
 private void frmtrasach_Load(object sender, EventArgs e)
 {
     DAO.connect();
     loaddata();
 }
コード例 #5
0
 private void frmkhachhang_Load(object sender, EventArgs e)
 {
     DAO.connect();
     hienthi();
 }
コード例 #6
0
 private void hienthi()
 {
     txthienthi.Text = DAO.GetFieldValues("select sum(DATEDIFF(day,c.ngaythue,f.ngaytra)*(a.dongiathue)+i.tienphat) as [tong tien hoa don thue] from sachtruyen a join chitietthuesach b on a.masach = b.masach join thuesach c on c.mathue = b.mathue join chitiettrasach d on d.masach = a.masach join trasach f on f.matra = d.matra join vipham i on i.mavipham = d.mavipham where datepart(month,f.ngaytra)='" + txtdtt.Text + "' and datepart(year, f.ngaytra) = '" + txtnam.Text + "'");
 }
コード例 #7
0
 private void Frmdt_Load(object sender, EventArgs e)
 {
     DAO.connect();
 }
コード例 #8
0
 private void frmchitietthuesach_Load(object sender, EventArgs e)
 {
     DAO.connect();
     loaddata();
 }
コード例 #9
0
 private void button1_Click(object sender, EventArgs e)
 {
     txtsoluong.Text = DAO.GetFieldValues("SELECT sachtruyen.soluong FROM sachtruyen join chitietthuesach on sachtruyen.masach=chitietthuesach.masach WHERE  sachtruyen.masach = N'" + txtmasach.Text + "'");
 }