Exemple #1
0
        static void ProcessPDF(string article_uid)
        {
            List <DataModels.PDF_VIEW> pdfs = BusModel.GetPdf(article_uid);

            foreach (DataModels.PDF_VIEW pdf in pdfs)
            {
                string errmsg = "";
                DataDb.spExecute("Loadpdf", ref errmsg, "@article_uid", article_uid, "@asset_uid", pdf.CONTENT_ITEM_UID, "@binaryurl", pdf.BINARY_URL, "@caption", pdf.CAPTION);
                if (errmsg.Length > 0)
                {
                    writetolog(string.Format("ProcessPDF Article id: {0}  freeform uid: {1}  {2} ", article_uid, pdf.CONTENT_ITEM_UID, errmsg));
                }
            }// foreach
        }
Exemple #2
0
        static void ProcessFreeForm(string article_uid)
        {
            List <DataModels.FREEFORM> forms = BusModel.GetFreeforms(article_uid);

            foreach (DataModels.FREEFORM form in forms)
            {
                string errmsg = "";
                DataDb.spExecute("LoadFreeForm", ref errmsg, "@article_uid", article_uid, "@asset_uid", form.CONTENT_ITEM_UID, "@html", form.FREEFORM_HTML);
                if (errmsg.Length > 0)
                {
                    writetolog(string.Format("ProcessFreeForm Article id: {0}  freeform uid: {1}  {2} ", article_uid, form.CONTENT_ITEM_UID, errmsg));
                }
            }// foreach
        }