Exemple #1
0
        public void changePassword()
        {
            try
            {
                string record = this.Request["record"];

                Hashtable ht = JavaScriptConvert.DeserializeObject <Hashtable>(record);

                stusrinfBll bll  = new stusrinfBll();
                string      note = bll.ChangeUserPassword(Function.GetCurrentUser(), ht["opwd"].ToString(), ht["npwd"].ToString(), ConfigReader.getAppName());

                Response.Write("{status:'success',msg:'" + note.EscapeHtml() + "'}");
            }
            catch (Exception ex)
            {
                string message = "{status:'failure',msg:'" + ExceptionPaser.Parse(HRMSRes.Public_Message_QueryFail, ex, true) + "'}";
                Response.Output.Write(message);
            }
        }
Exemple #2
0
        public void getUserInfo()
        {
            try
            {
                string record = this.Request["record"];

                Hashtable ht = JavaScriptConvert.DeserializeObject <Hashtable>(record);

                stusrinfBll bll = new stusrinfBll();
                string      msg = bll.GetUserInformation(Function.GetCurrentUser(), ConfigReader.getAppName());

                Response.Write(msg);
            }
            catch (Exception ex)
            {
                string message = ExceptionPaser.Parse(HRMSRes.Public_Message_QueryFail, ex, true);
                Response.Output.Write(message);
            }
        }