private void btnFinish_Click(object sender, EventArgs e) { if (rbtnA4.Checked) { _PrintType = EnPrintType.Pdf_A4; } else if (rbtnA5.Checked) { _PrintType = EnPrintType.Pdf_A5; } else { _PrintType = EnPrintType.Excel; } DialogResult = DialogResult.OK; Close(); }
public static Stimulsoft.Report.StiReport GetSti(Stimulsoft.Report.StiReport sti, EnPrintType peper) { try { ReportPath.CreatePath(ReportPath.ReportPath_); ReportPath.CreatePath(ReportPath.ReportPath_ + @"\" + FolderName); switch (peper) { case EnPrintType.Pdf_A4: return(Advertise_List_A4(sti)); case EnPrintType.Pdf_A5: return(Advertise_List_A5(sti)); } } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } return(sti); }
public static Stimulsoft.Report.StiReport GetSti(Stimulsoft.Report.StiReport sti, EnPrintType peper) { try { ReportPath.CreatePath(ReportPath.ReportPath_); ReportPath.CreatePath(ReportPath.ReportPath_ + @"\" + FolderName); return(Taraz_One_A5(sti)); } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } return(sti); }
public static Stimulsoft.Report.StiReport GetSti(Stimulsoft.Report.StiReport sti, EnPrintType peper) { try { ReportPath.CreatePath(ReportPath.ReportPath_); ReportPath.CreatePath(ReportPath.ReportPath_ + @"\" + FolderName); switch (peper) { case EnPrintType.Taraz2: return(Taraz_List_2(sti)); case EnPrintType.Taraz4: return(Taraz_List_4(sti)); case EnPrintType.Taraz6: return(Taraz_List_6(sti)); case EnPrintType.Taraz8: return(Taraz_List_8(sti)); } } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } return(sti); }
private void SetSti(EnPrintType peper) { try { Sti = new StiReport(); switch (ReportType) { case StiType.People_List: Sti = clsPeoples.One.GetSti(Sti, peper); break; case StiType.Building_One: Sti = clsBuilding.One.GetSti(Sti, peper); break; case StiType.Building_List: Sti = clsBuilding.List.GetSti(Sti, peper); break; case StiType.Building_Request_One: Sti = clsBuildingRequest.One.GetSti(Sti, peper); break; case StiType.Building_Request_List: Sti = clsBuildingRequest.List.GetSti(Sti, peper); break; case StiType.Contract_One: Sti = clsContract.One.GetSti(Sti, peper); break; case StiType.Contract_List: Sti = clsContract.List.GetSti(Sti, peper); break; case StiType.User_Performence_List: Sti = clsUserPerformence.List.GetSti(Sti, peper); break; case StiType.Account_Performence_List: Sti = clsAccountPerformence.List.GetSti(Sti, peper); break; case StiType.Reception_One: Sti = clsReception.One.GetSti(Sti, peper); break; case StiType.Reception_List: Sti = clsReception.List.GetSti(Sti, peper); break; case StiType.Pardakht_One: Sti = clsPardakht.One.GetSti(Sti, peper); break; case StiType.Pardakht_List: Sti = clsPardakht.List.GetSti(Sti, peper); break; case StiType.SmsSent_List: Sti = clsSms.List.GetSti(Sti, peper); break; case StiType.AdvSent_List: Sti = clsAdvertise.List.GetSti(Sti, peper); break; case StiType.Sood_Zian: Sti = clsSood_Zian.One.GetSti(Sti, peper); break; case StiType.Sanad: Sti = clsSanad.One.GetSti(Sti, peper); break; case StiType.Roozname: Sti = clsRoozname.List.GetSti(Sti, peper); break; case StiType.TarazAzmayeshi: Sti = clsTarazAzmayeshi.List.GetSti(Sti, peper); break; case StiType.TarazHesab: Sti = clsTarazHesab.List.GetSti(Sti, peper); break; case StiType.DepartmentOrder: Sti = clsDepartmentOrder.List.GetSti(Sti, peper); break; } } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } }
public ReportGenerator(StiType reportType, EnPrintType printType, bool preview) { ReportType = reportType; _displayPrintPreview = preview; SetSti(printType); }
public ReportGenerator(StiType reportType, EnPrintType printType) { ReportType = reportType; SetSti(printType); }