protected static FR_L6DT_GDTIaIWTfDTaACC_1259 Execute(DbConnection Connection, DbTransaction Transaction, P_L6DT_GDTIaIWTfDTaACC_1259 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_L6DT_GDTIaIWTfDTaACC_1259(); //Put your code here L6DT_GDTIaIWTfDTaACC_1259 temp = new L6DT_GDTIaIWTfDTaACC_1259(); P_L6DT_GDTIfDT_1505 parDeveloperTaskInfo = new P_L6DT_GDTIfDT_1505(); parDeveloperTaskInfo.TaskID = Parameter.DeveloperTaskID; parDeveloperTaskInfo.IsBeingPrepared_Only = false; L6DT_GDTIfDT_1505 developerTaskInfo = cls_Get_DeveloperTaskInfo_for_DeveloperTaskID.Invoke(Connection, Transaction, parDeveloperTaskInfo, securityTicket).Result; temp.DeveloperTaskInfo = developerTaskInfo; P_L3DT_GRIfDTID_1408 parameterRecommendations = new P_L3DT_GRIfDTID_1408(); parameterRecommendations.DTaskID = Parameter.DeveloperTaskID; temp.Recommendations = cls_Get_RecommendationsInfo_for_DeveloperTaskID.Invoke(Connection, Transaction, parameterRecommendations, securityTicket).Result; P_L6DT_GDTSHfDT_1646 parStatusHistory = new P_L6DT_GDTSHfDT_1646(); parStatusHistory.DeveloperTaskID = Parameter.DeveloperTaskID; List <L6DT_GDTSHfDT_1646> statusHistoryList = cls_Get_DeveloperTaskStatusHistory_for_DeveloperTaskID.Invoke(Connection, Transaction, parStatusHistory, securityTicket).Result.ToList(); List <L6DT_GDTIaIWTfDTaACC_1259a> tempStatusHistoryList = new List <L6DT_GDTIaIWTfDTaACC_1259a>(); foreach (var currentStatusItem in statusHistoryList) { tempStatusHistoryList.Add(new L6DT_GDTIaIWTfDTaACC_1259a() { Status_ID = currentStatusItem.DeveloperTask_Status_RefID, Status_Name = currentStatusItem.Label, Status_GlobalPropertyMatchingID = currentStatusItem.GlobalPropertyMatchingID, Status_TimeStamp = currentStatusItem.Creation_Timestamp }); } temp.StatusHistory = tempStatusHistoryList.ToArray(); returnValue.Result = temp; return(returnValue); #endregion UserCode }
protected static FR_L6DT_GDTSHaIWTfDT_0913 Execute(DbConnection Connection, DbTransaction Transaction, P_L6DT_GDTSHaIWTfDT_0913 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_L6DT_GDTSHaIWTfDT_0913(); L6DT_GDTSHaIWTfDT_0913 temp = new L6DT_GDTSHaIWTfDT_0913(); P_L6DT_GDTSHfDT_1646 parStatusHistory = new P_L6DT_GDTSHfDT_1646(); parStatusHistory.DeveloperTaskID = Parameter.DeveloperTaskID; List <L6DT_GDTSHfDT_1646> lstStatusHistory = cls_Get_DeveloperTaskStatusHistory_for_DeveloperTaskID.Invoke(Connection, Transaction, parStatusHistory, securityTicket).Result.ToList(); P_L6DT_GIWTfDT_1649 parInvestedTIme = new P_L6DT_GIWTfDT_1649(); parInvestedTIme.DeveloperTaskID = Parameter.DeveloperTaskID; List <L6DT_GIWTfDT_1649> investedWorkTime = cls_Get_InvestedWorkTime_for_DeveloperTaskID.Invoke(Connection, Transaction, parInvestedTIme, securityTicket).Result.ToList(); temp.InvestedWorkTime = investedWorkTime.Sum(x => x.InvestedWorkTime); temp.StatusHistory = lstStatusHistory.ToArray(); returnValue.Result = temp; return(returnValue); #endregion UserCode }