protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Model.manager admin_info = GetAdminInfo(); //管理员信息 //登录信息 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, DTEnums.ActionEnum.Login.ToString()); if (model1 != null) { //本次登录 litIP.Text = model1.user_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, DTEnums.ActionEnum.Login.ToString()); if (model2 != null) { //上一次登录 litBackIP.Text = model2.user_ip; litBackTime.Text = model2.add_time.ToString(); } } //LitUpgrade.Text = Utils.GetDomainStr(DTKeys.CACHE_OFFICIAL_UPGRADE, DESEncrypt.Decrypt(DTKeys.FILE_URL_UPGRADE_CODE, "DT")); //LitNotice.Text = Utils.GetDomainStr(DTKeys.CACHE_OFFICIAL_NOTICE, DESEncrypt.Decrypt(DTKeys.FILE_URL_NOTICE_CODE, "DT")); //Utils.GetDomainStr("dt_cache_domain_info", "http://www.dtcms.net/upgrade.ashx?u=" + Request.Url.DnsSafeHost + "&i=" + Request.ServerVariables["LOCAL_ADDR"]);//臭狗屎 } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Model.manager admin_info = GetAdminInfo(); //管理员信息 //登录信息 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, DTEnums.ActionEnum.Login.ToString()); if (model1 != null) { //本次登录 litIP.Text = model1.user_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, DTEnums.ActionEnum.Login.ToString()); if (model2 != null) { //上一次登录 litBackIP.Text = model2.user_ip; litBackTime.Text = model2.add_time.ToString(); } } //LitUpgrade.Text = Utils.GetDomainStr(DTKeys.CACHE_OFFICIAL_UPGRADE, DESEncrypt.Decrypt(DTKeys.FILE_URL_UPGRADE_CODE, "DT")); //LitNotice.Text = Utils.GetDomainStr(DTKeys.CACHE_OFFICIAL_NOTICE, DESEncrypt.Decrypt(DTKeys.FILE_URL_NOTICE_CODE, "DT")); //Utils.GetDomainStr("dt_cache_domain_info", "http://www.dtcms.net/upgrade.ashx?u=" + Request.Url.DnsSafeHost + "&i=" + Request.ServerVariables["LOCAL_ADDR"]); } }
protected void Page_Load(object sender, EventArgs e) { HttpCookie cookie = HttpContext.Current.Request.Cookies["lang"]; string lang = cookie != null ? cookie.Value : "pl-PL"; Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(lang); if (!Page.IsPostBack) { Model.manager admin_info = GetAdminInfo(); //管理员信息 //登录信息 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, AXEnums.ActionEnum.Login.ToString()); if (model1 != null) { //本次登录 litIP.Text = model1.user_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, AXEnums.ActionEnum.Login.ToString()); if (model2 != null) { //上一次登录 litBackIP.Text = model2.user_ip; litBackTime.Text = model2.add_time.ToString(); } } //LitUpgrade.Text = Utils.GetDomainStr(AXKeys.CACHE_OFFICIAL_UPGRADE, DESEncrypt.Decrypt(AXKeys.FILE_URL_UPGRADE_CODE, "DT")); //LitNotice.Text = Utils.GetDomainStr(AXKeys.CACHE_OFFICIAL_NOTICE, DESEncrypt.Decrypt(AXKeys.FILE_URL_NOTICE_CODE, "DT")); //Utils.GetDomainStr("ax_cache_domain_info", "http://www.net/upgrade.ashx?u=" + Request.Url.DnsSafeHost + "&i=" + Request.ServerVariables["LOCAL_ADDR"]); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Model.manager admin_info = GetAdminInfo(); //管理员信息 //登录信息 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, DTEnums.ActionEnum.Login.ToString()); if (model1 != null) { //本次登录 litIP.Text = model1.user_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, DTEnums.ActionEnum.Login.ToString()); if (model2 != null) { //上一次登录 litBackIP.Text = model2.user_ip; litBackTime.Text = model2.add_time.ToString(); } } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { admin_info = GetAdminInfo(); //管理員資料 //登入資料 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, "login"); if (model1 != null) { //本次登入 litIP.Text = bll.GetModel(admin_info.user_name, 1, "login").login_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, "login"); if (model2 != null) { //上一次登入 litBackIP.Text = model2.login_ip; litBackTime.Text = model2.login_time.ToString(); } } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { admin_info = GetAdminInfo(); //管理员信息 //登录信息 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, "login"); if (model1 != null) { //本次登录 litIP.Text = bll.GetModel(admin_info.user_name, 1, "login").login_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, "login"); if (model2 != null) { //上一次登录 litBackIP.Text = model2.login_ip; litBackTime.Text = model2.login_time.ToString(); } } LitUpgrade.Text = "暂无更新"; LitNotice.Text = "<li>网站系统维护QQ:<a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=11680335&site=qq&menu=yes\">11680335</a></li><li>业务联系电话:13723707989 晏浩然</li>"; Utils.GetDomainStr("dt_cache_domain_info", "http://www.dtcms.net/upgrade.ashx?u=" + Request.Url.DnsSafeHost + "&i=" + Request.ServerVariables["LOCAL_ADDR"]); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { admin_info = GetAdminInfo(); //管理员信息 //登录信息 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, "login"); if (model1 != null) { //本次登录 litIP.Text = bll.GetModel(admin_info.user_name, 1, "login").login_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, "login"); if (model2 != null) { //上一次登录 litBackIP.Text = model2.login_ip; litBackTime.Text = model2.login_time.ToString(); } } LitUpgrade.Text = "暂无更新"; LitNotice.Text = "<li>网站系统维护QQ:<a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=11680335&site=qq&menu=yes\">11680335</a></li><li>业务联系电话:13723707989 晏浩然</li>"; Utils.GetDomainStr("dt_cache_domain_info", "http://www.dtcms.net/upgrade.ashx?u=" + Request.Url.DnsSafeHost + "&i=" + Request.ServerVariables["LOCAL_ADDR"]); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Model.manager admin_info = GetAdminInfo(); //管理员信息 //登录信息 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, DTEnums.ActionEnum.Login.ToString()); if (model1 != null) { //本次登录 litIP.Text = model1.user_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, DTEnums.ActionEnum.Login.ToString()); if (model2 != null) { //上一次登录 litBackIP.Text = model2.user_ip; litBackTime.Text = model2.add_time.ToString(); } } LitUpgrade.Text = FileHelper.GetDomainStr(DTKeys.CACHE_OFFICIAL_UPGRADE, DESEncrypt.Decrypt(DTKeys.FILE_URL_UPGRADE_CODE, "DT")); LitNotice.Text = FileHelper.GetDomainStr(DTKeys.CACHE_OFFICIAL_NOTICE, DESEncrypt.Decrypt(DTKeys.FILE_URL_NOTICE_CODE, "DT")); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { admin_info = GetAdminInfo(); //管理员信息 unpayli.Visible = false; if (new BLL.permission().checkHasPermission(admin_info, "0404")) { unpayli.Visible = true; labUnCheckCount.Text = new BLL.ReceiptPay().getUnPaycount().ToString(); } //登录信息 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, DTEnums.ActionEnum.Login.ToString()); if (model1 != null) { //本次登录 litIP.Text = model1.user_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, DTEnums.ActionEnum.Login.ToString()); if (model2 != null) { //上一次登录 litBackIP.Text = model2.user_ip; litBackTime.Text = model2.add_time.ToString(); } } } }
protected void Page_Load(object sender, EventArgs e) { // if (!Page.IsPostBack) // { Model.manager admin_info = GetAdminInfo(); //管理员信息 //登录信息 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, MXEnums.ActionEnum.Login.ToString()); if (model1 != null) { //本次登录 litIP.Text = model1.user_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, MXEnums.ActionEnum.Login.ToString()); if (model2 != null) { //上一次登录 litBackIP.Text = model2.user_ip; litBackTime.Text = model2.add_time.ToString(); } if (IsWeiXinCode()) { _userType = "ScenicAdmin"; //景区管理员 } else if (IsShopAdmin(admin_info.id)) { _userType = "ShopAdmin"; //餐饮管理员 } else if (IsHotelAdmin(admin_info.id)) { _userType = "HotelAdmin"; //酒店管理员 } } //LitUpgrade.Text = Utils.GetDomainStr(MXKeys.CACHE_OFFICIAL_UPGRADE, DESEncrypt.Decrypt(MXKeys.FILE_URL_UPGRADE_CODE)); //LitNotice.Text = Utils.GetDomainStr(MXKeys.CACHE_OFFICIAL_NOTICE, DESEncrypt.Decrypt(MXKeys.FILE_URL_NOTICE_CODE)); //Utils.GetDomainStr("dt_cache_domain_info", "http://www.WeiXinPF.net/upgrade.ashx?u=" + Request.Url.DnsSafeHost + "&i=" + Request.ServerVariables["LOCAL_ADDR"]); // } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { admin_info = GetAdminInfo(); //管理员信息 //登录信息 if (admin_info != null) { BLL.manager_log bll = new BLL.manager_log(); Model.manager_log model1 = bll.GetModel(admin_info.user_name, 1, DTEnums.ActionEnum.Login.ToString()); if (model1 != null) { //本次登录 litIP.Text = model1.user_ip; } Model.manager_log model2 = bll.GetModel(admin_info.user_name, 2, DTEnums.ActionEnum.Login.ToString()); if (model2 != null) { //上一次登录 litBackIP.Text = model2.user_ip; litBackTime.Text = model2.add_time.ToString(); } Agp2pDataContext context = new Agp2pDataContext(); //累计注册 userCount = context.dt_users.Count(); //累计支付利息 totalProfit = context.QueryTotalProfit().ToString("c"); //累计投资 totalInvested = context.QueryTotalInvested().ToString("c"); //累计待收本金 totalInvesting = context.QueryTotalInvesting().ToString("c"); //昨日成交量 tradingVolume = context.QueryTradingVolume(1).ToString("c"); //站岗资金 totalIdle = context.li_wallets.Select(w => w.idle_money).AsEnumerable().DefaultIfEmpty(0).Sum().ToString("c"); //累计充值 totalRecharge = context.li_wallets.Select(w => w.total_charge).AsEnumerable().DefaultIfEmpty(0).Sum().ToString("c"); //累计提现 totalWithDraw = context.li_wallets.Select(w => w.total_withdraw).AsEnumerable().DefaultIfEmpty(0).Sum().ToString("c"); //标的总数 projectCount = context.li_projects.Count(p => p.status >= (int)Agp2pEnums.ProjectStatusEnum.Financing); //票据理财总额(募集中、还款中) var pjProjects = context.li_projects.Where( p => p.category_id == 62 && (p.status == (int)Agp2pEnums.ProjectStatusEnum.ProjectRepaying || p.status == (int)Agp2pEnums.ProjectStatusEnum.Financing)); totalPjProjectAmount = pjProjects.Any() ? pjProjects.Sum(p => p.financing_amount) .ToString("c") : "0"; //今日登陆人数 BLL.user_login_log bllLog = new user_login_log(); totalLoginCount = bllLog.GetList("user_id", "CONVERT(varchar(10),login_time,121)='" + DateTime.Now.ToString("yyyy-MM-dd") + "'").Tables[0].Rows.Count; //今日注册人数 totalRegisterCount = context.dt_users.Where(w => Convert.ToDateTime(w.reg_time).Date == DateTime.Now.Date).Select(r => r.user_name).Distinct().Count();//.Count(c => Convert.ToDateTime(c.reg_time).Date == DateTime.Now.Date);//logbll.GetList(0, "CONVERT(varchar(10),add_time,121)=CONVERT(varchar(10),'" + DateTime.Now + "',121) and SUBSTRING(remark,1,2)='登录'", "add_time desc").Tables[0].Rows.Count; } Utils.GetDomainStr("dt_cache_domain_info", "http://www.dtcms.net/upgrade.ashx?u=" + Request.Url.DnsSafeHost + "&i=" + Request.ServerVariables["LOCAL_ADDR"]); } }