public string GetInvoiceTemplate(string tempid) { Business.DataLayer bd = new Business.DataLayer(); Business.AppTemplate invoicetemplate = bd.GetInvoiceTemplate(tempid, Session["companyid"].ToString()); if (invoicetemplate.data == "" || invoicetemplate.data == null) { StringBuilder sb = new StringBuilder(); sb.Append("<div><p>"); sb.Append("<a href=\"/invoice\">Click to View All Invoices</a>"); sb.Append("</p></div>"); invoicetemplate.data = sb.ToString(); } return(invoicetemplate.data); }
public AppTemplate GetInvoiceTemplate(string templateid, string ownerid) { ApplicationService.template templates = appclient.GetTemplate(templateid, ownerid); AppTemplate temptemplate = new AppTemplate(); try { temptemplate.data = templates.data; temptemplate.type = "invoice"; temptemplate.objecttype = "layout"; temptemplate.templateid = templates.templateid; } catch { } return(temptemplate); }
public AppTemplate GetInvoiceemplate(string templateid, string ownerid) { Business.DataLayer bd = new Business.DataLayer(); Business.AppTemplate invoicetemplate = bd.GetInvoiceTemplate(templateid, ownerid); return(invoicetemplate); }
public AppTemplate GetInvoiceTemplate(string templateid, string ownerid) { ApplicationService.template templates = appclient.GetTemplate(templateid, ownerid); AppTemplate temptemplate = new AppTemplate(); try { temptemplate.data = templates.data; temptemplate.type = "invoice"; temptemplate.objecttype = "layout"; temptemplate.templateid = templates.templateid; } catch { } return temptemplate; }