public override MembershipUser GetUser(object providerUserKey, bool userIsOnline)
 {
     eProtocolData.Entities.tblEmployeeDap newDap = new tblEmployeeDap();
     tblEmployee emp = newDap.GetByfldEmployeeID((long) providerUserKey);
     return GetMembershipUser(emp);
 }
 public override bool ValidateUser(string username, string password)
 {
     eProtocolData.Entities.tblEmployeeDap newDap = new tblEmployeeDap();
     return newDap.ValidateEmployee(username, password);
     // return true;
 }
 public override MembershipUser GetUser(string username, bool userIsOnline)
 {
     eProtocolData.Entities.tblEmployeeDap newDap = new tblEmployeeDap();
     tblEmployee emp = newDap.GetByfldLoginNameIndex(username);
     return GetMembershipUser(emp);
 }
 public override bool ChangePassword(string username, string oldPassword, string newPassword)
 {
     eProtocolData.Entities.tblEmployee newEmployee = new tblEmployee();
     eProtocolData.Entities.tblEmployeeDap newDap = new tblEmployeeDap();
     newEmployee = newDap.GetByfldLoginNameIndex(username);
     if (newEmployee != null)
     {
         if (newEmployee.fldPassword == oldPassword)
         {
             newEmployee.fldPassword = newPassword;
             newDap.Update(newEmployee);
             return true;
         }
         else
         {
             return false;
         }
     }
     else
     {
         return false;
     }
 }
        private void FillGrids()
        {
            List<vwvwProjectFile> listOfFiles = new List<vwvwProjectFile>();
            vwvwProjectFileDap newDap = new vwvwProjectFileDap();
            listOfFiles = newDap.GetProjectFiles(_tblProject.fldProjectID);
            bsFiles.DataSource = listOfFiles;

            List<tblTask> listOfTasks = new List<tblTask>();
            tblTaskDap newTaskDap = new tblTaskDap();
            listOfTasks = newTaskDap.GetByfldProjectID(_tblProject.fldProjectID);
            bsTasks.DataSource = listOfTasks;

            List<tblEmployee> listOfEmployees = new List<tblEmployee>();
            tblEmployeeDap newEmployeeDap = new tblEmployeeDap();
            listOfEmployees = newEmployeeDap.GetAll();
            bsEmployee.DataSource = listOfEmployees;
        }
 private void FillCombos()
 {
     List<tblEmployee> listOfEmployees = new List<tblEmployee>();
     tblEmployeeDap newDap = new tblEmployeeDap();
     listOfEmployees = newDap.GetAll();
     bindingSource1.DataSource = listOfEmployees;
 }
 public tblEmployee GettblEmployeeByfldEmployeeID(Int64 fldEmployeeID)
 {
     using (var dap = new tblEmployeeDap(this))
     {
         return dap.GetByfldEmployeeID(fldEmployeeID);
     }
 }