public void CreateExport(List <ExportDocDTO> lst, string sWebRootFolder) { //Khởi tạo tham số đầu vào List <ProperTiesName> lstProperty = new List <ProperTiesName>(); lstProperty.Add(new ProperTiesName { PropsName = "DocumentCode", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "FileCode", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "DocOrdinal", WidthSize = 25 }); lstProperty.Add(new ProperTiesName { PropsName = "TypeName", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "Subject", WidthSize = 25 }); lstProperty.Add(new ProperTiesName { PropsName = "PageAmount", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "ConfidenceLevel", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "Format", WidthSize = 30 }); lstProperty.Add(new ProperTiesName { PropsName = "Description", WidthSize = 30 }); //Tạo đối tượng dùng để Export ExportCore <ExportDocDTO> exh = new ExportCore <ExportDocDTO>(4) { FileName = "DanhSachVanBan", LstObj = lst, LstProperTies = lstProperty, SWebRootFolder = sWebRootFolder, SheetName = "Danh sách văn bản" }; exh.HeaderInput = CreateHeader(); exh.RunExport(); // }
public void CreateExport(List <ExportProfileDTO> lst, string sWebRootFolder) { //Khởi tạo tham số đầu vào List <ProperTiesName> lstProperty = new List <ProperTiesName>(); lstProperty.Add(new ProperTiesName { PropsName = "ProfileId", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "GearBoxCode", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "Title", WidthSize = 25 }); lstProperty.Add(new ProperTiesName { PropsName = "StartTime", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "EndTime", WidthSize = 25 }); lstProperty.Add(new ProperTiesName { PropsName = "Maintenance", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "ProfileTypeName", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "Description", WidthSize = 30 }); //Tạo đối tượng dùng để Export ExportCore <ExportProfileDTO> exh = new ExportCore <ExportProfileDTO>(4) { FileName = "DanhSachHoSo", LstObj = lst, LstProperTies = lstProperty, SWebRootFolder = sWebRootFolder, SheetName = "Danh sách hồ số" }; exh.HeaderInput = CreateHeader(); exh.RunExport(); // }
public void CreateExport(List <DataStatisticsDTO> lst, string sWebRootFolder) { //Khởi tạo tham số đầu vào List <ProperTiesName> lstProperty = new List <ProperTiesName>(); lstProperty.Add(new ProperTiesName { PropsName = "FontName", WidthSize = 30 }); lstProperty.Add(new ProperTiesName { PropsName = "TableOfNumber", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "GearBoxCode", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "ProfileCode", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "FileName", WidthSize = 50 }); lstProperty.Add(new ProperTiesName { PropsName = "UpdateDate", WidthSize = 30 }); //Tạo đối tượng dùng để Export ExportCore <DataStatisticsDTO> exh = new ExportCore <DataStatisticsDTO>(4) { FileName = "ThongKeTongQuat", LstObj = lst, LstProperTies = lstProperty, SWebRootFolder = sWebRootFolder, SheetName = "Thống kê" }; exh.HeaderInput = CreateHeader(); exh.RunExport(); // }
public void CreateExport(List <GearBox> lst, string sWebRootFolder) { //Khởi tạo tham số đầu vào List <ProperTiesName> lstProperty = new List <ProperTiesName>(); lstProperty.Add(new ProperTiesName { PropsName = "GearBoxName", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "ProfileCode", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "GearBoxTitle", WidthSize = 50 }); lstProperty.Add(new ProperTiesName { PropsName = "NumDoc", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "Preservationperiod", WidthSize = 25 }); lstProperty.Add(new ProperTiesName { PropsName = "Note", WidthSize = 30 }); //Tạo đối tượng dùng để Export ExportCore <GearBox> exh = new ExportCore <GearBox>(4) { FileName = "DanhSachHopSo", LstObj = lst, LstProperTies = lstProperty, SWebRootFolder = sWebRootFolder, SheetName = "Danh sách hộp số" }; exh.HeaderInput = CreateHeader(); exh.RunExport(); // }
public void CreateExport(List <Font> lst, string sWebRootFolder) { //Khởi tạo tham số đầu vào List <ProperTiesName> lstProperty = new List <ProperTiesName>(); lstProperty.Add(new ProperTiesName { PropsName = "OrganName", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "FontNumber", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "FontName", WidthSize = 50 }); lstProperty.Add(new ProperTiesName { PropsName = "History", WidthSize = 20 }); lstProperty.Add(new ProperTiesName { PropsName = "Lang", WidthSize = 25 }); lstProperty.Add(new ProperTiesName { PropsName = "Note", WidthSize = 30 }); //Tạo đối tượng dùng để Export ExportCore <Font> exh = new ExportCore <Font>(4) { FileName = "DanhSachPhong", LstObj = lst, LstProperTies = lstProperty, SWebRootFolder = sWebRootFolder, SheetName = "Danh sách phông" }; exh.HeaderInput = CreateHeader(); exh.RunExport(); // }