コード例 #1
0
        private void btn_in_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ComicPro.DtReport = ExecSQL.ExecProcedureDataAsDataTable("pro_get_tonkho", new { option = 1, thang = Convert.ToDateTime(txt_tungay.EditValue).Month, nam = Convert.ToDateTime(txt_tungay.EditValue).Year });
            if (ComicPro.DtReport.Rows.Count == 0)
            {
                Form1.Default.ShowMessageWarning("Không tìm thấy dữ liệu.");
                return;
            }
            ComicPro.Report = 5;
            FrmReport f = new FrmReport();

            f.Show();
        }
コード例 #2
0
        private void btn_in_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ComicPro.DtReport = ExecSQL.ExecProcedureDataAsDataTable("pro_ct_phieunhapxuat", new { option = 1, maphieu = txt_maphieu.Text });
            if (ComicPro.DtReport.Rows.Count == 0)
            {
                Form1.Default.ShowMessageWarning("Không tìm thấy dữ liệu.");
                return;
            }
            ComicPro.Report = 4;
            FrmReport f = new FrmReport();

            f.Show();
        }
コード例 #3
0
ファイル: FrmDanhMuc.cs プロジェクト: caitriminh/comicpro
        private void btn_danhsach_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (grvViewDanhMuc.SelectedRowsCount == 0)
            {
                Form1.Default.ShowMessageWarning("Bạn vui lòng chọn các mã truyện để thực hiện.");
                return;
            }
            var selectedRow = grvViewDanhMuc.GetSelectedRows();
            var strMatruyen = string.Join(",", from r in selectedRow where grvViewDanhMuc.IsDataRow(Convert.ToInt32(r)) select grvViewDanhMuc.GetRowCellValue(Convert.ToInt32(r), "matruyen"));

            ComicPro.DtReport = ExecSQL.ExecProcedureDataAsDataTable("pro_get_tentruyen", new { option = 2, matruyen = strMatruyen, duongdanfilehinh = "" });
            ComicPro.Report   = 2;
            FrmReport f = new FrmReport();

            f.Show();
        }