public string Save(XmlDocument doc)
        {
            NavigationPortalShortcutInfo param = new NavigationPortalShortcutInfo();

            param = (NavigationPortalShortcutInfo)AjaxUtil.Deserialize(param, doc);

            this.service.Save(param);

            return("{\"message\":{\"returnCode\":0,\"value\":\"�����ɹ���\"}}");
        }
Exemplo n.º 2
0
        // -------------------------------------------------------
        // 添加 删除 修改
        // -------------------------------------------------------

        #region 函数:Save(NavigationPortalShortcutInfo param)
        /// <summary>保存记录</summary>
        /// <param name="param">实例<see cref="NavigationPortalShortcutInfo"/>详细信息</param>
        /// <returns>实例<see cref="NavigationPortalShortcutInfo"/>详细信息</returns>
        public NavigationPortalShortcutInfo Save(NavigationPortalShortcutInfo param)
        {
            if (!this.IsExist(param.Id))
            {
                this.Insert(param);
            }
            else
            {
                this.Update(param);
            }

            return(param);
        }
        public string FindOne(XmlDocument doc)
        {
            StringBuilder outString = new StringBuilder();

            string id = XmlHelper.Fetch("id", doc);

            NavigationPortalShortcutInfo param = this.service.FindOne(id);

            outString.Append("{\"ajaxStorage\":" + AjaxUtil.Parse <NavigationPortalShortcutInfo>(param) + ",");

            outString.Append("\"message\":{\"returnCode\":0,\"value\":\"��ѯ�ɹ���\"}}");

            return(outString.ToString());
        }
        public string CreateNewObject(XmlDocument doc)
        {
            StringBuilder outString = new StringBuilder();

            NavigationPortalShortcutInfo param = new NavigationPortalShortcutInfo();

            param.Id = DigitalNumberContext.Generate("Key_Guid");

            param.Status = 1;

            param.UpdateDate = param.CreateDate = DateTime.Now;

            outString.Append("{\"ajaxStorage\":" + AjaxUtil.Parse <NavigationPortalShortcutInfo>(param) + ",");

            outString.Append("\"message\":{\"returnCode\":0,\"value\":\"�����ɹ���\"}}");

            return(outString.ToString());
        }
Exemplo n.º 5
0
 /// <summary>修改记录</summary>
 /// <param name="param">实例<see cref="NavigationPortalShortcutInfo"/>详细信息</param>
 public void Update(NavigationPortalShortcutInfo param)
 {
     this.ibatisMapper.Update(StringHelper.ToProcedurePrefix(string.Format("{0}_Update", this.tableName)), param);
 }
        // -------------------------------------------------------
        // ���� ɾ��
        // -------------------------------------------------------

        #region 属性:Save(NavigationPortalShortcutInfo param)
        /// <summary>������¼</summary>
        /// <param name="param">ʵ��<see cref="NavigationPortalShortcutInfo"/>��ϸ��Ϣ</param>
        /// <returns>ʵ��<see cref="NavigationPortalShortcutInfo"/>��ϸ��Ϣ</returns>
        public NavigationPortalShortcutInfo Save(NavigationPortalShortcutInfo param)
        {
            return(this.provider.Save(param));
        }