Exemplo n.º 1
0
 /// <summary>
 /// Create a new LeadReportGenerateLog object.
 /// </summary>
 /// <param name="leadReportGenerateId">Initial value of the LeadReportGenerateId property.</param>
 public static LeadReportGenerateLog CreateLeadReportGenerateLog(global::System.Int32 leadReportGenerateId)
 {
     LeadReportGenerateLog leadReportGenerateLog = new LeadReportGenerateLog();
     leadReportGenerateLog.LeadReportGenerateId = leadReportGenerateId;
     return leadReportGenerateLog;
 }
Exemplo n.º 2
0
        protected void btnGenerateReport_Click(object sender, EventArgs e)
        {
            if (hfLeadsId.Value != null && Convert.ToInt32(hfLeadsId.Value) > 0) {
                try {

                    int LeadId = Convert.ToInt32(hfLeadsId.Value);
                    string filename1 = CreatePDF.CreateAndGetPDF(LeadId, Request.PhysicalApplicationPath + "PDF\\", out ErrorMessage);

                    LeadReportGenerateLog objLeadReportGenerateLog = new LeadReportGenerateLog();
                    objLeadReportGenerateLog.LeadId = Convert.ToInt32(hfLeadsId.Value);
                    objLeadReportGenerateLog.GenerateDate = DateTime.Now;
                    objLeadReportGenerateLog.Generatedby = Convert.ToInt32(Session["UserId"]);
                    LeadReportLogManager.Save(objLeadReportGenerateLog);

                    OpenNewWindow(LeadId);
                }
                catch (Exception ex) {
                    lblError.Text = "Report Not Generated.";
                    lblError.Visible = true;
                }
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the LeadReportGenerateLogs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLeadReportGenerateLogs(LeadReportGenerateLog leadReportGenerateLog)
 {
     base.AddObject("LeadReportGenerateLogs", leadReportGenerateLog);
 }