private void ShowInfo(long sta_id)
 {
     WalleProject.BLL.t_staff   bll   = new WalleProject.BLL.t_staff();
     WalleProject.Model.t_staff model = bll.GetModel(sta_id);
     this.txtsta_userName.Text      = model.sta_userName;
     this.txtsta_maritalStatus.Text = model.sta_maritalStatus;
     this.txtsta_IDNumber.Text      = model.sta_IDNumber;
     this.txtsta_homeAddress.Text   = model.sta_homeAddress;
     this.txtsta_phone.Text         = model.sta_phone;
     this.txtsta_name.Text          = model.sta_name;
     this.staffid.InnerText         = model.sta_id.ToString();
 }
 private void ShowInfo(long sta_id)
 {
     WalleProject.BLL.t_staff   bll   = new WalleProject.BLL.t_staff();
     WalleProject.Model.t_staff model = bll.GetModel(sta_id);
     this.imgPhoto.Src              = new BLL.t_picture().GetModel(int.Parse(model.sta__pic_id.ToString())).pic_valid;
     this.lblsta_id.Text            = model.sta_id.ToString();
     this.lblsta_userName.Text      = model.sta_userName;
     this.lblsta_entryDate.Text     = model.sta_entryDate.ToString();
     this.lblsta_maritalStatus.Text = model.sta_maritalStatus;
     this.lblsta_IDNumber.Text      = model.sta_IDNumber;
     this.lblsta_homeAddress.Text   = model.sta_homeAddress;
     this.lblsta_phone.Text         = model.sta_phone;
     this.lblsta_name.Text          = model.sta_name;
     this.lblsta_lastLogindate.Text = model.sta_lastLogindate.ToString();
     this.lblsta_salary.Text        = model.sta_salary.ToString();
 }
Example #3
0
 private void ShowInfoEdit(long sta_id)
 {
     WalleProject.BLL.t_staff   bll   = new WalleProject.BLL.t_staff();
     WalleProject.Model.t_staff model = bll.GetModel(sta_id);
     this.lblsta_id.Text                 = model.sta_id.ToString();
     this.txtEdit_sta_userName.Text      = model.sta_userName;
     this.txtEdit_sta_entryDate.Text     = model.sta_entryDate.ToString();
     this.txtEdit_sta_passWord.Text      = MD5Enctypt.MD5.Md5Decrypt(model.sta_passWord);
     this.txtEdit_sta_maritalStatus.Text = model.sta_maritalStatus;
     this.txtEdit_sta_IDNumber.Text      = model.sta_IDNumber;
     this.txtEdit_sta_homeAddress.Text   = model.sta_homeAddress;
     this.txtEdit_sta_phone.Text         = model.sta_phone;
     this.txtEdit_sta_name.Text          = model.sta_name;
     this.txtEdit_sta_tra_id.Text        = model.sta_tra_id.ToString();
     this.txtEdit_sta_lastLogindate.Text = model.sta_lastLogindate.ToString();
     this.txtEdit_sta_salary.Text        = model.sta_salary.ToString();
 }