91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 15.13MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-06-29
  • 語言: C#
  • 標簽: asp.net??

資源簡介

該系統業務上針對加油站行業的故障報修,石油故障的登記、流轉,以及報表分析功能, 系統采用經典三層架構,修改方便、簡單,注釋齊全。全套源代碼提供,不封裝任何一句代碼。在實際應用中已經與呼叫中心進行了集成,并在國內最大的石油公司得到了應用。

資源截圖

代碼片段和文件信息

using?AppBox.Model;
using?FineUI;
using?System;
using?System.Collections.Generic;
using?System.Security.Principal;
using?System.Text;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Management;
using?System.Data;
using?AppBox.DBUtility;
//www.51aspx.com
namespace?AppBox
{
????public?partial?class?_default?:?Pagebase
????{???????
????????LogHelper?Log?=?new?LogHelper();
????????private?BLL.X_User?bllUser?=?new?BLL.X_User();
????????#region?Page_Load

????????protected?void?Page_Load(object?sender?EventArgs?e)
????????{
????????????if?(!IsPostBack)
????????????{
??????????????LoadData();
??????????????Button2.OnClientClick?=?Form3.GetResetReference();
????????????}
????????}

????????private?void?LoadData()
????????{
????????????//string[]?loginImages?=?new?string[]?{?“login_1.png“?“login_2.png“?“login_3.png“?“login_4.png“?“login_6.png“?};
????????????//imageLogin.ImageUrl?=?“~/res/images/login/“?+?loginImages[new?Random().Next(0?loginImages.Length)];

????????????//?如果用戶已經登錄,則重定向到管理首頁
????????????if?(User.Identity.IsAuthenticated)
????????????{
????????????????Response.Redirect(FormsAuthentication.DefaultUrl);
????????????}

????????}

????????#endregion?Page_Load

????????#region?Events

????????protected?void?btnSubmit_Click(object?sender?EventArgs?e)
????????{

????????????string?userName?=?tbxUserName.Text.Trim();
????????????string?password?=?tbxPassword.Text.Trim();

????????????
????????????X_User?user?=?bllUser.GetModel(userName);
????????????
????????????????if?(user?!=?null)
????????????????{
????????????????????if?(PasswordUtil.ComparePasswords(user.Password?password))
????????????????????{
????????????????????????if?(!user.Enabled)
????????????????????????{
????????????????????????????Alert.Show(“用戶未啟用,請聯系管理員!“);
????????????????????????}
????????????????????????else
????????????????????????{
????????????????????????????//?登錄成功
????????????????????????????Log.WriteLog(“信息“?String.Format(“登錄成功:用戶“{0}”“?user.Name)?GetUserIP()?user.ChineseName?GetRequestUrl());

????????????????????????????LoginSuccess(user);

????????????????????????????return;
????????????????????????}
????????????????????}
????????????????????else
????????????????????{
????????????????????????Log.WriteLog(“警告“?String.Format(“登錄失敗:用戶“{0}”“?userName)?GetUserIP()?user.ChineseName?GetRequestUrl());
????????????????????????Alert.Show(“用戶名或密碼錯誤!“);
????????????????????????return;
????????????????????}
????????????????}
????????????????else
????????????????{
????????????????????Log.WriteLog(“警告“?String.Format(“登錄失敗:用戶“{0}”不存在“?userName)?GetUserIP()?userName?GetRequestUrl());
????????????????????Alert.Show(“用戶名或密碼錯誤!“);
????????????????????return;
????????????????}
????????????
????????}

????????private?void?LoginSuccess(X_User?user)
????????{
????????????Session[“UserPassword“]?=?tbxPassword.Text.T

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????8746??2013-10-24?10:43??default.aspx.cs

?????文件???????4116??2013-10-24?09:41??default.aspx.designer.cs

?????文件???????8376??2013-10-28?15:40??default.aspx

-----------?---------??----------?-----??----

????????????????21238????????????????????3


評論

共有 條評論