Ejemplo n.º 1
0
        public void AjaxMethod()
        {
            Eastcom.BLL.Sys_User_Info   BLL_model_列表 = new Eastcom.BLL.Sys_User_Info();
            Eastcom.Model.Sys_User_Info model_列表     = null;

            StringBuilder strMsg   = new StringBuilder();
            int           isReload = 0;//0:不刷新父页面   1:刷新父页面
            bool          IsError  = false;

            switch (this.PageType) //this.PageType
            {
            case EnumPageType.修改:
                #region 查看
                model_列表     = BLL_model_列表.GetModel(CommonClass.StringHander.Common.GetInt(CurrentUserModel.UserID));
                model_列表.Pwd = Eastcom.Common.DeseEncode.DESEncryptMethod(txt_password.Text);

                if (BLL_model_列表.Update(model_列表))
                {
                    IsError = false;
                    strMsg.Append("修改成功!");
                }
                else
                {
                    IsError = true;
                    strMsg.Append(strMsg);
                }
                #endregion
                break;

            default:
                strMsg.Append("页面操作类型不明确,操作失败!");
                break;
            }
            CommonClass.Message.Log.WriteMessage(new CommonClass.Message.GoAjaxPara()
            {
                msg      = strMsg.ToString(),
                isReload = isReload,
                isError  = IsError,
                msnLog   = "",
                Data     = null
            });
        }