Exemple #1
0
        private void button_ExportExcel_Click(object sender, EventArgs e)
        {
            DataTable        table  = (DataTable)bunifuCustomDataGrid1.DataSource;
            ControllerExport export = new ControllerExport();

            export.ExportDuBaoNhapThuoc(table, $"DỰ BÁO NHẬP THUỐC THÁNG {DateTime.Now.Month+1}");
        }
        private void button_ExportExcel_Click(object sender, EventArgs e)
        {
            DataTable        table  = (DataTable)bunifuCustomDataGrid1.DataSource;
            ControllerExport export = new ControllerExport();

            export.ExportTonKho(table, "THỐNG KÊ TỒN KHO", label_TotalInventory.Text, label_TotalMoney.Text);
        }
Exemple #3
0
        private void btn_Export_Click(object sender, EventArgs e)
        {
            ControllerExport export = new ControllerExport();


            DataTable table = ctr2.Load(textBoxMaPN.Text);

            pn.ID_InputCoupon = Convert.ToInt32(textBoxMaPN.Text);
            pn.CreateDate     = dateTimePicker1.Value;
            pn.ID_Supplier    = Convert.ToInt32(textBoxMaNCC.Text);
            pn.TotalMoney     = Convert.ToInt32(textBoxTongTienSo.Text);

            export.ExportInputCoupon(pn, table, "PHIEU NHAP");
        }