- accountplussource.zip
- AccountPlusSource
- AccountPlus.BusinessLogic
- AccountPlus.Configurations
- AccountPlus.DataAccess
- AccountPlus.Formatting
- AccountPlus.Messaging
- AccountPlus.Setup
- AccountPlus.sln
- AccountPlus.UserInterface
- Assemblies
- log4net.dll
- database.zip
- Database
- MS Access
- AccountPlus.mdb
- MySQL
- SQL Server
- Backup
- AccountPlus.bak
- Script
- setup.zip
- Setup
- Setup.msi
- accountplus.zip
- AccountPlus
- AccountPlus
- Source_Code.zip
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using AccountPlus.BusinessLogic;
using AccountPlus.Messaging;
using AccountPlus.Formatting;
namespace AccountPlus.UI
{
public partial class Profile : AccountPlusBase
{
public Profile()
{
InitializeComponent();
}
private void chkChangePassword_CheckedChanged(object sender, EventArgs e)
{
if (chkChangePassword.Checked)
{
txtOldPassword.Enabled = true;
txtPAssword.Enabled = true;
txtConfirmPassword.Enabled = true;
txtOldPassword.Clear();
txtPAssword.Clear();
txtConfirmPassword.Clear();
}
else
{
txtOldPassword.Enabled = false;
txtPAssword.Enabled = false;
txtConfirmPassword.Enabled = false;
txtOldPassword.Clear();
txtPAssword.Clear();
txtConfirmPassword.Clear();
}
}
private void Profile_Load(object sender, EventArgs e)
{
base.SetBGColor(this);
InitScreenData();
}
private void InitScreenData()
{
Users manageProfile = new Users();
DataTable dtUserProfile = manageProfile.GetUserProfile(SessionParameters.UserID);
txtUserID.Text = DataFormat.GetString(dtUserProfile.Rows[0]["User_Name"]);
txtFName.Text = DataFormat.GetString(dtUserProfile.Rows[0]["First_Name"]);
txtLName.Text = DataFormat.GetString(dtUserProfile.Rows[0]["Last_Name"]);
txtEmail.Text = DataFormat.GetString(dtUserProfile.Rows[0]["email"]);
txtMobile.Text = DataFormat.GetString(dtUserProfile.Rows[0]["mobile"]);
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
private void btnSubmit_Click(object sender, EventArgs e)
{
lblMessage.Clear();
errorProvider1.Clear();
string firstName = txtFName.Text.Trim();
string lastName = txtLName.Text.Trim();
string oldPassword = txtOldPassword.Text.Trim();
string newPassword = txtPAssword.Text.Trim();
string confirmNewPassword = txtConfirmPassword.Text.Trim();
string email = txtEmail.Text.Trim();
string mobile = txtMobile.Text.Trim();
string message = string.Empty;
if (firstName == string.Empty)
{
message = MessageManager.GetMessage("46");
errorProvider1.SetError(txtFName, message);
lblMessage.MessageText = message;
return;
}
if (chkChangePassword.Checked)
{
if (oldPassword == string.Empty)
{
message = MessageManager.GetMessage("47");
errorProvider1.SetError(txtOldPassword, message);
lblMessage.MessageText = message;
return;
}
if (newPassword == string.Empty)
{
message = MessageManager.GetMessage("48");
errorProvider1.SetError(txtPAssword, message);
lblMessage.MessageText = message;
return;
}
if (confirmNewPassword == string.Empty)
{
message = MessageManager.GetMessage("49");
errorProvider1.SetError(txtConfirmPassword, message);
lblMessage.MessageText = message;
return;
}
if (string.Compare(newPassword, confirmNewPassword, true) != 0)
{
message = MessageManager.GetMessage("50");
errorProvider1.SetError(txtConfirmPassword, message);
lblMessage.MessageText = message;
return;
}
if(!_manageProfile.IsValidPassword(SessionParameters.UserID, oldPassword))
{
message = MessageManager.GetMessage("51");
errorProvider1.SetError(txtOldPassword, message);
lblMessage.MessageText = message;
return;
}
}
bool status = false;
status = chkChangePassword.Checked ? _manageProfile.UpdateUserProfile(SessionParameters.UserID, firstName, lastName, newPassword, email, mobile) : _manageProfile.UpdateUserProfile(SessionParameters.UserID, firstName, lastName, email, mobile);
if (status)
lblMessage.MessageText = MessageManager.GetMessage("52");
else
lblMessage.MessageText = MessageManager.GetMessage("53");
}
Users _manageProfile = new Users();
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
this.Dispose();
}
private void txtMobile_KeyPress(object sender, KeyPressEventArgs e)
{
if (DataFormat.IsInteger(e.KeyChar) != true && (Keys)e.KeyChar != Keys.Back)
e.Handled = true;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
• 8 years of experience in IT Industry as a Developer.
• Experience of End-To-End Software Development and Implementation (Entire SDLC i.e Software Development Life Cycle)
• Real time Exposure to Banking, Finance and Energy industry.
• Expertise in distributed application architecture as well as web based applications using Microsoft.NET platform.
• Expertise in database design, SQL programming and SQL performance tuning.
• Expertise in Web Services and WCF Services.
• Experience of Rich Internet Application using Adobe Flex.
• Experience in migration of legacy application to latest technology, migration of VB application to .NET.
• Knowledge of OOPS and Design Concepts.
• Expertise in Agile/ Scrum software development processes.
Specialties
• Languages\ Technologies-
.NET Framework 1.1/2.0/3.0/3.5, C#.NET, VB.NET, ASP.NET, VB6, AJAX, ASP.NET, Adobe Flex 3.0, Web Services, Windows Communication Foundation (WCF), LINQ, SQL Server, Oracle, MySql, MS Access, HTML, XML, JavaScript, C# Script, CSS and XSLT.
• Methodology/ Concepts-
OOPS, Data Structures, Design Concepts and Agile/ Scrum Software Development