Example #1
0
        private void SaveByClient(int ClientId, List <int> ProjectIds)
        {
            var id = Convert.ToInt32(drpClient.SelectedValue);

            ClientXProjectDataManager.DeleteByClient(id, SessionVariables.RequestProfile.AuditId);
            ClientXProjectDataManager.CreateByClient(id, ProjectIds.ToArray(), SessionVariables.RequestProfile);
        }
Example #2
0
 private void UpdatedFKDepenedencies(int oldId, int newId)
 {
     try
     {
         var clientxprojectdt = ClientXProjectDataManager.GetByClient(oldId, SessionVariables.RequestProfile.AuditId);
         var projectIds       = new int[clientxprojectdt.Rows.Count];
         for (var i = 0; i < clientxprojectdt.Rows.Count; i++)
         {
             projectIds[i] = int.Parse(clientxprojectdt.Rows[i][ClientXProjectDataModel.DataColumns.ProjectId].ToString());
         }
         if (projectIds.Length > 0)
         {
             ClientXProjectDataManager.DeleteByClient(oldId, SessionVariables.RequestProfile.AuditId);
             ClientXProjectDataManager.CreateByClient(newId, projectIds, SessionVariables.RequestProfile);
         }
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
Example #3
0
 private void SaveClientXProject(int clientId, List <int> projectIds)
 {
     ClientXProjectDataManager.DeleteByClient(clientId, SessionVariables.RequestProfile.AuditId);
     ClientXProjectDataManager.CreateByClient(clientId, projectIds.ToArray(), SessionVariables.RequestProfile);
 }