示例#1
0
        public int AddUpdate(WebBuilderInfo objWebBuilder)
        {
            int webbuilderID = 0;

            try
            {
                List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >();
                param.Add(new KeyValuePair <string, object>("@WebBuilderID", objWebBuilder.WebBuilderID));
                param.Add(new KeyValuePair <string, object>("@EditDOM", objWebBuilder.EditDOM));
                param.Add(new KeyValuePair <string, object>("@ViewDOM", objWebBuilder.ViewDOM));
                param.Add(new KeyValuePair <string, object>("@PortalID", objWebBuilder.PortalID));
                param.Add(new KeyValuePair <string, object>("@UserModuleID", objWebBuilder.UserModuleID));
                param.Add(new KeyValuePair <string, object>("@Culture", objWebBuilder.Culture));
                param.Add(new KeyValuePair <string, object>("@UserName", objWebBuilder.UserName));
                param.Add(new KeyValuePair <string, object>("@Extra", objWebBuilder.Extra));
                param.Add(new KeyValuePair <string, object>("@Settings", objWebBuilder.Settings));
                param.Add(new KeyValuePair <string, object>("@PageName", objWebBuilder.PageName));
                param.Add(new KeyValuePair <string, object>("@Header", objWebBuilder.Header));
                param.Add(new KeyValuePair <string, object>("@HeaderEdit", objWebBuilder.HeaderEdit));
                param.Add(new KeyValuePair <string, object>("@Footer", objWebBuilder.Footer));
                param.Add(new KeyValuePair <string, object>("@FooterEdit", objWebBuilder.FooterEdit));
                param.Add(new KeyValuePair <string, object>("@PackageXML", objWebBuilder.PackageXML));
                SQLHandler sagesql = new SQLHandler();
                webbuilderID = sagesql.ExecuteNonQuery("[dbo].[usp_WebBuilder_AddUpdate]", param, "@webbuildernewID");
            }
            catch
            {
                throw;
            }
            return(webbuilderID);
        }
示例#2
0
 public WebBuilderInfo GetPublishedViewDOMByID(WebBuilderInfo objWebBuilder)
 {
     try
     {
         List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >();
         param.Add(new KeyValuePair <string, object>("@PortalID", objWebBuilder.PortalID));
         param.Add(new KeyValuePair <string, object>("@UserModuleID", objWebBuilder.UserModuleID));
         param.Add(new KeyValuePair <string, object>("@Culture", objWebBuilder.Culture));
         param.Add(new KeyValuePair <string, object>("@PageName", objWebBuilder.PageName));
         SQLHandler sagesql = new SQLHandler();
         return(sagesql.ExecuteAsObject <WebBuilderInfo>("[dbo].[usp_WebBuilder_GetPublishedViewDOMByID]", param));
     }
     catch
     {
         throw;
     }
 }
示例#3
0
        public int UpdateSettings(WebBuilderInfo objWebBuilder)
        {
            int webbuilderID = 0;

            try
            {
                List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >();
                param.Add(new KeyValuePair <string, object>("@PortalID", objWebBuilder.PortalID));
                param.Add(new KeyValuePair <string, object>("@UserModuleID", objWebBuilder.UserModuleID));
                param.Add(new KeyValuePair <string, object>("@Culture", objWebBuilder.Culture));
                param.Add(new KeyValuePair <string, object>("@Settings", objWebBuilder.Settings));
                param.Add(new KeyValuePair <string, object>("@PageName", objWebBuilder.PageName));
                SQLHandler sagesql = new SQLHandler();
                sagesql.ExecuteNonQuery("[dbo].[usp_WebBuilder_UpdateSettings]", param);
            }
            catch
            {
                throw;
            }
            return(webbuilderID);
        }
示例#4
0
        public WebBuilderInfo GetPublishedViewDOMByID(WebBuilderInfo obj)
        {
            WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider();

            return(objDataProvider.GetPublishedViewDOMByID(obj));
        }
示例#5
0
        public int UpdateSettings(WebBuilderInfo obj)
        {
            WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider();

            return(objDataProvider.UpdateSettings(obj));
        }
示例#6
0
        public int AddUpdate(WebBuilderInfo obj)
        {
            WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider();

            return(objDataProvider.AddUpdate(obj));
        }