WebSite/Handlers/Reports/ClientTime.aspx.cs

(开头部分) 7KB

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

using BLL;
using BLL.system;
using Common;
using System;
using System.Web.UI;
using System.Configuration;
namespace CRMSYS.Handlers.Reports
{


    public partial class ClientTime : Page
    {
        private static string Edition = DESEncrypt.Decrypt(ConfigurationManager.AppSettings["Edition"]);

        protected void Page_Load(object sender, EventArgs e)
        {
            string strMethod = base.Request["method"].ToString();
            if (strMethod != null)
            {
                string srvid;
                string startTime;
                string endTime;
                string sqlWhere;
                string userID;
                string MyIds;
                TCWL_B_ClientTime kh;
                if (!(strMethod == "StaticAll"))
                {
                    TCWL_B_Unit b;
                    if (strMethod == "StaticInd")
                    {
                        base.Response.Clear();
                        srvid = "";
                        if (Edition == "0")
                        {
                            srvid = DESEncrypt.Decrypt(base.Request["srvid"].ToString());
                        }
                        startTime = (base.Request.Form["TStart"] == null) ? "" : base.Request.Form["TStart"].ToString();
                        endTime = (base.Request.Form["TEnd"] == null) ? "" : (base.Request.Form["TEnd"].ToString() + " 23:59:59");
                        string userids = (base.Request.Form["userids"] == null) ? "" : base.Request.Form["userids"].ToString();
                        userID = (base.Request["userID"] == null) ? "" : base.Request["userID"].ToString().Trim();
                        sqlWhere = string.Format("and k.TimeStr between  '{0}' and '{1}'", startTime, endTime);
                        if (base.Request.Form["userids"] != null)
                        {
                            if (base.Request.Form["userids"].ToString() != "")
                            {
                                sqlWhere = sqlWhere + " and u.userName in (" + userids + ")";
                            }
                        }
                        else
                        {
                            b = new TCWL_B_Unit();
                            MyIds = b.GetUsers(userID, "1");
                            sqlWhere = sqlWhere + string.Format(" and k.ChuangJianRen in ({0}) ", MyIds);
                        }
                        string sqlLoad = "and DATEDIFF(year,k.TimeStr,GETDATE())=0";
                        kh = new TCWL_B_ClientTime();
                        if (base.Request.Form["ddlType"] != null)
                        {
                            string type = base.Request.Form["ddlType"].ToString();
后面还有 88 行代码,购买后查看完整代码

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

AI 解读 AI

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

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