Beispiel #1
0
        protected void btnSaveSPMemo_Click(object sender, DirectEventArgs e)
        {
            try
            {
                SPMemoWrapper obj = new SPMemoWrapper();
                obj.Title       = this.txtTitle.Text.Trim();
                obj.MemoContent = this.txtMemoContent.Text.Trim();



                SPMemoWrapper.Save(obj);

                winSPMemoAdd.Hide();
            }
            catch (Exception ex)
            {
                ResourceManager.AjaxSuccess      = false;
                ResourceManager.AjaxErrorMessage = "错误信息:" + ex.Message;
            }
        }
        protected void btnSaveSPMemo_Click(object sender, AjaxEventArgs e)
        {
            try
            {
                SPMemoWrapper obj = new SPMemoWrapper();
                obj.Title       = this.txtTitle.Text.Trim();
                obj.MemoContent = this.txtMemoContent.Text.Trim();
                obj.CreateDate  = this.txtCreateDate.SelectedDate;



                SPMemoWrapper.Save(obj);

                winSPMemoAdd.Hide();
            }
            catch (Exception ex)
            {
                Coolite.Ext.Web.ScriptManager.AjaxSuccess      = false;
                Coolite.Ext.Web.ScriptManager.AjaxErrorMessage = "错误信息:" + ex.Message;
            }
        }