/// <summary>
        /// 点击添加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Modules.ArticleModule.Domain.Article domainArticle     = new ZhuJi.Modules.ArticleModule.Domain.Article();
                    ZhuJi.Modules.Core.Domain.ContentBase      domainContentBase = new ZhuJi.Modules.Core.Domain.ContentBase();
                    UIMapping.BindControlsToObject(domainArticle, this);
                    UIMapping.BindControlsToObject(domainContentBase, this);
                    domainArticle.ContentBaseInfo = domainContentBase;

                    ZhuJi.Modules.ArticleModule.IDAL.IArticle article = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Modules.ArticleModule.NHibernateDAL.Article)) as ZhuJi.Modules.ArticleModule.IDAL.IArticle;
                    article.Insert(domainArticle);

                    _identity = domainArticle.Id;
                    Edit();
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                    return;
                }
            }
        }
Пример #2
0
        /// <summary>
        /// 点击编辑按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Modules.VoteModule.Domain.VoteSubject domainVoteSubject = new ZhuJi.Modules.VoteModule.Domain.VoteSubject();
                    UIMapping.BindControlsToObject(domainVoteSubject, this);

                    ZhuJi.Modules.VoteModule.IDAL.IVoteSubject voteSubject = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Modules.VoteModule.NHibernateDAL.VoteSubject)) as ZhuJi.Modules.VoteModule.IDAL.IVoteSubject;
                    voteSubject.Update(domainVoteSubject);
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
Пример #3
0
        /// <summary>
        /// 点击编辑按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Portal.Domain.Skin domainSkin = new ZhuJi.Portal.Domain.Skin();
                    UIMapping.BindControlsToObject(domainSkin, this);

                    ZhuJi.Portal.IDAL.ISkin skin = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Portal.NHibernateDAL.Skin)) as ZhuJi.Portal.IDAL.ISkin;
                    skin.Update(domainSkin);
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
Пример #4
0
        /// <summary>
        /// 点击编辑按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Portal.Domain.Plugin domainPlugin = new ZhuJi.Portal.Domain.Plugin();
                    UIMapping.BindControlsToObject(domainPlugin, this);

                    ZhuJi.Portal.IDAL.IPlugin plugin = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Portal.NHibernateDAL.Plugin)) as ZhuJi.Portal.IDAL.IPlugin;
                    plugin.Update(int.Parse(rblCurrentNode.SelectedValue), domainPlugin);
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
        /// <summary>
        /// 点击编辑按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.UUMS.Domain.PermissionByMethods domainPermissionByMethods = new ZhuJi.UUMS.Domain.PermissionByMethods();
                    UIMapping.BindControlsToObject(domainPermissionByMethods, this);

                    ZhuJi.UUMS.IDAL.IPermissionByMethods permissionByMethods = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.UUMS.NHibernateDAL.PermissionByMethods)) as ZhuJi.UUMS.IDAL.IPermissionByMethods;
                    permissionByMethods.Update(domainPermissionByMethods);
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
Пример #6
0
        /// <summary>
        /// 点击编辑按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Portal.Domain.ContentItem domainContentItem = new ZhuJi.Portal.Domain.ContentItem();
                    UIMapping.BindControlsToObject(domainContentItem, this);

                    ZhuJi.Portal.IDAL.IContentItem contentItem = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Portal.NHibernateDAL.ContentItem)) as ZhuJi.Portal.IDAL.IContentItem;
                    contentItem.Update(domainContentItem);
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
        /// <summary>
        /// 点击编辑按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Modules.AdsModule.Domain.AdsInfor domainAdsInfor = new ZhuJi.Modules.AdsModule.Domain.AdsInfor();
                    UIMapping.BindControlsToObject(domainAdsInfor, this);

                    ZhuJi.Modules.AdsModule.IDAL.IAdsInfor adsInfor = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Modules.AdsModule.NHibernateDAL.AdsInfor)) as ZhuJi.Modules.AdsModule.IDAL.IAdsInfor;
                    adsInfor.Update(domainAdsInfor);
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
        /// <summary>
        /// 点击添加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.UUMS.Domain.PermissionByCommon domainPermissionByCommon = new ZhuJi.UUMS.Domain.PermissionByCommon();
                    UIMapping.BindControlsToObject(domainPermissionByCommon, this);

                    ZhuJi.UUMS.IDAL.IPermissionByCommon permissionByCommon = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.UUMS.NHibernateDAL.PermissionByCommon)) as ZhuJi.UUMS.IDAL.IPermissionByCommon;
                    permissionByCommon.Insert(domainPermissionByCommon);
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
                Response.Redirect(Request.Url.ToString(), true);
            }
        }
Пример #9
0
        /// <summary>
        /// 点击编辑按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.UUMS.Domain.Users domainUsers = new ZhuJi.UUMS.Domain.Users();
                    domainUsers.CheckPassword = Password.Enabled;
                    UIMapping.BindControlsToObject(domainUsers, this);

                    ZhuJi.UUMS.IDAL.IUsers users = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.UUMS.NHibernateDAL.Users)) as ZhuJi.UUMS.IDAL.IUsers;
                    users.Update(domainUsers);
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
        /// <summary>
        /// 点击添加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Modules.VoteModule.Domain.VoteItem domainVoteItem = new ZhuJi.Modules.VoteModule.Domain.VoteItem();
                    UIMapping.BindControlsToObject(domainVoteItem, this);

                    ZhuJi.Modules.VoteModule.IDAL.IVoteItem voteItem = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Modules.VoteModule.NHibernateDAL.VoteItem)) as ZhuJi.Modules.VoteModule.IDAL.IVoteItem;
                    voteItem.Insert(domainVoteItem);

                    _identity = domainVoteItem.Id;
                    Edit();
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
        /// <summary>
        /// 点击添加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.UUMS.Domain.Controls domainControls = new ZhuJi.UUMS.Domain.Controls();
                    UIMapping.BindControlsToObject(domainControls, this);

                    ZhuJi.UUMS.IDAL.IControls controls = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.UUMS.NHibernateDAL.Controls)) as ZhuJi.UUMS.IDAL.IControls;
                    controls.Insert(domainControls);

                    _identity = domainControls.Id;
                    Edit();
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
Пример #12
0
        /// <summary>
        /// 点击添加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Modules.AdsModule.Domain.AdsLocation domainAdsLocation = new ZhuJi.Modules.AdsModule.Domain.AdsLocation();
                    UIMapping.BindControlsToObject(domainAdsLocation, this);

                    ZhuJi.Modules.AdsModule.IDAL.IAdsLocation adsLocation = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Modules.AdsModule.NHibernateDAL.AdsLocation)) as ZhuJi.Modules.AdsModule.IDAL.IAdsLocation;
                    adsLocation.Insert(domainAdsLocation);

                    _identity = domainAdsLocation.Id;
                    Edit();
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
        /// <summary>
        /// 点击添加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.UUMS.Domain.PermissionByResource domainPermissionByResource = new ZhuJi.UUMS.Domain.PermissionByResource();
                    UIMapping.BindControlsToObject(domainPermissionByResource, this);

                    ZhuJi.UUMS.IDAL.IPermissionByResource permissionByResource = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.UUMS.NHibernateDAL.PermissionByResource)) as ZhuJi.UUMS.IDAL.IPermissionByResource;
                    permissionByResource.Insert(domainPermissionByResource);

                    _identity = domainPermissionByResource.Id;
                    Edit();
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
Пример #14
0
        /// <summary>
        /// 点击添加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Portal.Domain.Channel domainChannel = new ZhuJi.Portal.Domain.Channel();
                    UIMapping.BindControlsToObject(domainChannel, this);

                    ZhuJi.Portal.IDAL.IChannel channel = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Portal.NHibernateDAL.Channel)) as ZhuJi.Portal.IDAL.IChannel;
                    channel.Insert(int.Parse(rblCurrentNode.SelectedValue), domainChannel);

                    _identity = domainChannel.Id;
                    Edit();
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
Пример #15
0
        /// <summary>
        /// 点击添加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Portal.Domain.Site domainSite = new ZhuJi.Portal.Domain.Site();
                    UIMapping.BindControlsToObject(domainSite, this);

                    ZhuJi.Portal.IDAL.ISite site = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Portal.NHibernateDAL.Site)) as ZhuJi.Portal.IDAL.ISite;
                    site.Insert(domainSite);

                    _identity = domainSite.Id;
                    Edit();
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }
        /// <summary>
        /// 点击添加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Modules.SinglePageModule.Domain.SinglePage domainSinglePage  = new ZhuJi.Modules.SinglePageModule.Domain.SinglePage();
                    ZhuJi.Modules.Core.Domain.ContentBase            domainContentBase = new ZhuJi.Modules.Core.Domain.ContentBase();
                    UIMapping.BindControlsToObject(domainSinglePage, this);
                    UIMapping.BindControlsToObject(domainContentBase, this);
                    domainSinglePage.ContentBaseInfo = domainContentBase;

                    ZhuJi.Modules.SinglePageModule.IDAL.ISinglePage singlePage = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Modules.SinglePageModule.NHibernateDAL.SinglePage)) as ZhuJi.Modules.SinglePageModule.IDAL.ISinglePage;

                    singlePage.Insert(domainSinglePage);
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
                Response.Redirect(Request.Url.ToString(), true);
            }
        }