本文整理汇总了C#中VIETTEL.Controllers.clsExcelResult类的典型用法代码示例。如果您正苦于以下问题:C# clsExcelResult类的具体用法?C# clsExcelResult怎么用?C# clsExcelResult使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
clsExcelResult类属于VIETTEL.Controllers命名空间,在下文中一共展示了clsExcelResult类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ExportToExcel
/// <summary>
/// Xuất báo cáo ra file excel
/// </summary>
/// <param name="TuThang"></param>
/// <param name="DenThang"></param>
/// <param name="NamLuong"></param>
/// <param name="TrangThai"></param>
/// <returns></returns>
public clsExcelResult ExportToExcel(String TuThang, String DenThang, String NamLuong, String TrangThai)
{
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(sFilePath), TuThang,DenThang,NamLuong,TrangThai);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "TongHop_ThuThueDauVao.xls";
clsResult.type = "xls";
return clsResult;
}
}
示例2: ExportToExcel
public clsExcelResult ExportToExcel(String MaBL)
{
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(sFilePath),MaBL);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "Luong_NguoiPhuThuoc.xls";
clsResult.type = "xls";
return clsResult;
}
}
示例3: ExportToExcel
public clsExcelResult ExportToExcel(String MaND, string iID_MaPhongBan, string iThang1, string iThang2, string iThang3, string iThang4, String bQuy)
{
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(sFilePath), MaND, iID_MaPhongBan, iThang1, iThang2, iThang3, iThang4,bQuy);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "rptQTQS_ThuongXuyen.xls";
clsResult.type = "xls";
return clsResult;
}
}
示例4: ExportToExcel
public clsExcelResult ExportToExcel(String iID_MaDonVi, String iNamLamViec, String iID_MaTaiKhoan, String iThang1, String iThang2)
{
HamChung.Language();
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(sFilePath), iID_MaDonVi, iNamLamViec, iID_MaTaiKhoan, iThang1, iThang2);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "ChoDoanhnghiep.xls";
clsResult.type = "xls";
return clsResult;
}
}
示例5: ExportToExcel
public clsExcelResult ExportToExcel(String NamLamViec)
{
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(sFilePath), NamLamViec);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "rptQLDA_QTHT_02QTHT.xls";
clsResult.type = "xls";
return clsResult;
}
}
示例6: ExportToExcel
public clsExcelResult ExportToExcel(String iNamLamViec, String iThang,String iTrangThai)
{
HamChung.Language();
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(sFilePath), iNamLamViec, iThang, iTrangThai);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "rptChiTietTaiKhoanTheoDonVi1.xls";
clsResult.type = "xls";
return clsResult;
}
}
示例7: ExportToExcel
/// <summary>
/// Hàm xuất dữ liệu ra file excel
/// </summary>
/// <param name="NamLamViec"></param>
/// <returns></returns>
public clsExcelResult ExportToExcel(String MaND, String iID_MaTrangThaiDuyet)
{
HamChung.Language();
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(sFilePath), MaND, iID_MaTrangThaiDuyet);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "DT_CNSQP_TuyVien"+Convert.ToString(DateTime.Now)+".xls";
clsResult.type = "xls";
return clsResult;
}
}
示例8: ExportToExcel
/// <summary>
/// hàm xuất dữ liệu ra file Excel
/// </summary>
/// <param name="NamLamViec"></param>
/// <param name="sLNS"></param>
/// <returns></returns>
public clsExcelResult ExportToExcel(String NamLamViec, String iID_MaTrangThaiDuyet)
{
HamChung.Language();
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(sFilePath), NamLamViec, iID_MaTrangThaiDuyet);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "DuToanChiNganSach4d2-C.xls";
clsResult.type = "xls";
return clsResult;
}
}
示例9: ExportToExcel
public clsExcelResult ExportToExcel(String iID_MaTaiKhoan)
{
HamChung.Language();
String DuongDanFile = sFilePath_A3;
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(DuongDanFile), iID_MaTaiKhoan);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "DanhMuc_TaiKhoanChiTiet.xls";
clsResult.type = "xls";
return clsResult;
}
}
示例10: ExportToExcel
public clsExcelResult ExportToExcel(String NamLamViec, String ThangLamViec, String TrangThai)
{
HamChung.Language();
String DuongDanFile = sFilePath_A3;
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(DuongDanFile), NamLamViec, ThangLamViec, TrangThai);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "KeToan_QuyetToanNam.xls";
clsResult.type = "xls";
return clsResult;
}
}
示例11: ExportToExcel
public clsExcelResult ExportToExcel(String iNam, String iThang, String optThu, String optTamUng, String optTra,String KhoGiay)
{
HamChung.Language();
String DuongDan = "";
if (KhoGiay == "1") DuongDan = sFilePath_a3;
else DuongDan = sFilePath_a4;
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(DuongDan), iNam, iThang, optThu, optTamUng, optTra,KhoGiay);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "GiaiThichSoDu.xls";
clsResult.type = "xls";
return clsResult;
}
}
示例12: ExportToExcel
public clsExcelResult ExportToExcel(String MaND, String ThangQuy, String LoaiThang_Quy, String iID_MaDonVi, String iID_MaNhomDonVi, String LuyKe, String iID_MaTrangThaiDuyet, String KhoGiay, String BaoHiem,String iLoai)
{
clsExcelResult clsResult = new clsExcelResult();
HamChung.Language();
String sFilePath = "";
if (KhoGiay == "0")
{
if (BaoHiem == "0" || BaoHiem == "1" || BaoHiem == "2")
{
sFilePath = "/Report_ExcelFrom/BaoHiem/rptBH_TongQuyetToan1.xls";
}
else if (BaoHiem == "3")
{
sFilePath = "/Report_ExcelFrom/BaoHiem/rptBH_TongQuyetToanCN.xls";
}
else if (BaoHiem == "4")
{
sFilePath = "/Report_ExcelFrom/BaoHiem/rptBH_TongQuyetToanDV.xls";
}
else
{
sFilePath = "/Report_ExcelFrom/BaoHiem/rptBH_TongQuyetToanTH.xls";
}
}
else
{
if (BaoHiem == "0" || BaoHiem == "1" || BaoHiem == "2")
{
sFilePath = "/Report_ExcelFrom/BaoHiem/rptBH_TongQuyetToan1A3.xls";
}
else if (BaoHiem == "3")
{
sFilePath = "/Report_ExcelFrom/BaoHiem/rptBH_TongQuyetToanCNA3.xls";
}
else if (BaoHiem == "4")
{
sFilePath = "/Report_ExcelFrom/BaoHiem/rptBH_TongQuyetToanDVA3.xls";
}
else
{
sFilePath = "/Report_ExcelFrom/BaoHiem/rptBH_TongQuyetToanTH.xls";
}
}
ExcelFile xls = CreateReport(Server.MapPath(sFilePath), MaND, ThangQuy, LoaiThang_Quy, iID_MaDonVi, iID_MaNhomDonVi, LuyKe, iID_MaTrangThaiDuyet, KhoGiay, BaoHiem,iLoai);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
//if (KhoGiay == "1")
//{
// clsResult.FileName = "baocaoquyettoanChiCacCheDoBHXH.xls";
//}
//else
//{
// clsResult.FileName = "baocaoquyettoanChiCacCheDoBHXH_A4.xls";
//}
clsResult.type = "xls";
return clsResult;
}
}
示例13: ExportToPDF
/// <summary>
/// Xuất báo cáo ra file PDF
/// </summary>
/// <param name="Nam">Năm làm việc</param>
/// <param name="MaDV">Mã doanh nghiệp</param>
/// <returns></returns>
public clsExcelResult ExportToPDF(String Quy, String Nam, String MaDN)
{
HamChung.Language();
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(sFilePath),Quy,Nam,MaDN);
using (FlexCelPdfExport pdf = new FlexCelPdfExport())
{
pdf.Workbook = xls;
using (MemoryStream ms = new MemoryStream())
{
pdf.BeginExport(ms);
pdf.ExportAllVisibleSheets(false, "AA");
pdf.EndExport();
ms.Position = 0;
clsResult.FileName = "Test.pdf";
clsResult.type = "pdf";
clsResult.ms = ms;
return clsResult;
}
}
}
示例14: ExportToExcel
/// <summary>
/// Xuất báo cáo ra file Excel
/// </summary>
/// <param name="Nam">Năm làm việc</param>
/// <param name="MaDV">Mã doanh nghiệp</param>
/// <returns></returns>
public clsExcelResult ExportToExcel(String Quy, String Nam, String MaDN)
{
HamChung.Language();
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(sFilePath), Quy,Nam,MaDN);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "HoatDong_KD_"+Nam+".xls";
clsResult.type = "xls";
return clsResult;
}
}
示例15: ExportToExcel
public clsExcelResult ExportToExcel(String NgoaiTe, string vidDenNgay)
{
String DuongDanFile = sFilePath;
// DateTime dNgay = Convert.ToDateTime(CommonFunction.LayNgayTuXau(vidDenNgay));
clsExcelResult clsResult = new clsExcelResult();
ExcelFile xls = CreateReport(Server.MapPath(DuongDanFile), NgoaiTe, vidDenNgay);
using (MemoryStream ms = new MemoryStream())
{
xls.Save(ms);
ms.Position = 0;
clsResult.ms = ms;
clsResult.FileName = "rptKHV_Bieu02VDT" + String.Format("{0:ddMMyyyyhhmmss}", DateTime.Now) + ".xls";
clsResult.type = "xls";
return clsResult;
}
}