Example #1
0
        public ThongKe(DangNhap dn, string manv)
        {
            InitializeComponent();
            this.dn   = dn;
            this.manv = manv;

            hd = new HoaDonController();
            dv = new DichVuController();

            cbxtknamNam.SelectedIndex     = 0;
            cbxtkquyNam.SelectedIndex     = 0;
            cbxtkquyQuy.SelectedIndex     = 0;
            cbxtkthangNam.SelectedIndex   = 0;
            cbxtkthangThang.SelectedIndex = 0;
            int thang = int.Parse(cbxtkthangThang.SelectedItem.ToString());
            int nam   = int.Parse(cbxtkthangNam.SelectedItem.ToString());

            lblChiThu.Text           = "Tổng chi thu tháng: ";
            lblTongChiThu.Text       = null;
            lblTongTienDichVu.Text   = null;
            lblTongThuTienPhong.Text = null;
            tblThongKe.DataSource    = hd.thongKeThang(thang, nam);
            pnlThang.Show();
            pnlNam.Hide();
            pnlQuy.Hide();
        }
Example #2
0
        public TraPhong(DanhSach ds, string maphieuthue, string manv)
        {
            InitializeComponent();
            this.ds          = ds;
            this.maphieuthue = maphieuthue;
            this.manv        = manv;
            txtNgayLap.Text  = DateTime.Now.ToString("dd/MM/yyyy");

            tp  = new ThuePhongController();
            trp = new TraPhongController();
            p   = new PhongController();
            dv  = new DichVuController();
        }
Example #3
0
        public ThemDichVu(DanhSach ds, string maphieuthue, string phong)
        {
            InitializeComponent();
            this.phong       = phong;
            this.maphieuthue = maphieuthue;
            this.ds          = ds;

            dv = new DichVuController();
            txtMaPhieuThue.Text = maphieuthue;
            txtPhong.Text       = phong;
            hienThiDanhSachDV();
            hienThiDichVuDaChon();
        }