示例#1
0
        private void SaveHtmlLink(int GeneralID, string dir)
        {
            B_Content    bc = new B_Content();
            M_CommonData mc = bc.GetCommonData(GeneralID);

            mc.HtmlLink = dir;
            bc.UpdateByID(mc);
        }
示例#2
0
        public DataTable Store_SelMyOrder(M_UserInfo mu, int ordertype)
        {
            B_Content    conBll   = new B_Content();
            M_CommonData storeMod = conBll.SelMyStore(mu.UserName);

            if (storeMod == null)
            {
                return(null);
            }
            return(Store_SelMyOrder(storeMod.GeneralID, ordertype));
        }
示例#3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(base.Request.QueryString["ItemID"]))
     {
         int ItemID = DataConverter.CLng(base.Request.QueryString["ItemID"]);
         B_Content bcontent = new B_Content();
         B_Model bmode = new B_Model();
         B_Node bnode = new B_Node();
         M_CommonData ItemInfo = bcontent.GetCommonData(ItemID);
         if(ItemInfo.IsNull)
             Response.Write("[产生错误的可能原因:您访问的内容信息不存在!]");
         M_ModelInfo modelinfo = bmode.GetModelById(ItemInfo.ModelID);
         string TempNode = bnode.GetModelTemplate(ItemInfo.NodeID, ItemInfo.ModelID);
         string TempContent = ItemInfo.Template;
         string TemplateDir = modelinfo.ContentModule;
         if (!string.IsNullOrEmpty(TempContent))
             TemplateDir = TempContent;
         else
         {
             if (!string.IsNullOrEmpty(TempNode))
                 TemplateDir = TempNode;
         }
         if (string.IsNullOrEmpty(TemplateDir))
         {
             Response.Write("[产生错误的可能原因:该内容所属模型未指定模板!]");
         }
         else
         {
             TemplateDir = base.Request.PhysicalApplicationPath + SiteConfig.SiteOption.TemplateDir + TemplateDir;
             TemplateDir = TemplateDir.Replace("/", @"\");
             string ContentHtml = this.bll.CreateHtml(FileSystemObject.ReadFile(TemplateDir), 0, ItemID);
             Response.Write(ContentHtml);
         }
     }
     else
     {
         Response.Write("[产生错误的可能原因:您访问的内容信息不存在!]");
     }
 }