Views/UserCenter/UserPublicInfoChange.ashx

(开头部分) 14KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ WebHandler Language="C#" Class="UserPublicInfoChange" %>

using System;
using System.Web;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using MicroDBHelper;
using MicroDTHelper;
using MicroPublicHelper;
using MicroUserHelper;

public class UserPublicInfoChange : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        string flag = MicroPublic.GetMsg("DenyURLError"),
             Action = context.Server.UrlDecode(context.Request.Form["action"]),
             Type = context.Server.UrlDecode(context.Request.Form["type"]),
             MID = context.Server.UrlDecode(context.Request.Form["mid"]),
             UID = context.Server.UrlDecode(context.Request.Form["uid"]),
             Fields = context.Server.UrlDecode(context.Request.Form["fields"]),
             Date = context.Server.UrlDecode(context.Request.Form["date"]);

        //Action = string.IsNullOrEmpty(Action) == true ? "" : Action.ToLower();

        try
        {
            if (!string.IsNullOrEmpty(Type) && !string.IsNullOrEmpty(UID) && !string.IsNullOrEmpty(Fields) && UID.toInt()!=0)
            {
                Type = Type.ToLower();

                if (Type == "udepts")
                    flag = ModifyUserDepts(UID, Fields);

                if (Type == "ujtitle")
                    flag = ModifyUserJobTitle(UID, Fields);

                if (Type == "uroles")
                    flag = ModifyUserRoles(UID, Fields);

                if (Type == "uworkhoursystem")
                    flag = ModifyUserWorkHourSystem(UID, Fields, Date);

                if (Type == "annualleave")
                    flag = CtrlUserLeave("1", UID, Fields);

            }
        }
        catch (Exception ex)
        {
            flag = ex.ToString();
        }

        context.Response.Write(flag);
    }

    /// <summary>
后面还有 326 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。