Пример #1
0
        /// <summary>
        /// Get all the modelTechnicalEvaluationRequest.
        /// </summary>
        /// <param name="modelTechnicalEvaluationRequest">modelTechnicalEvaluationRequest Identifier</param>
        /// <returns></returns>
        public List <SOFTTEK.SCMS.Entity.FA.TechnicalEvaluationRequest> SearchTechnicalEvaluationRequests(SOFTTEK.SCMS.Entity.FA.TechnicalEvaluationRequest modelTechnicalEvaluationRequest)
        {
            List <SOFTTEK.SCMS.Entity.FA.TechnicalEvaluationRequest> listTechnicalEvaluationRequests = new List <SOFTTEK.SCMS.Entity.FA.TechnicalEvaluationRequest>();

            return(context.Execute(() =>
            {
                using (dataSource = new FAMDataContext(context.SecurityContext))
                {
                    dataSource.ConnectionString = "SRA";
                    dataSource.DefaultUser = System.Configuration.ConfigurationManager.AppSettings["S_APP_UID"];
                    dataSource.Initialize();

                    var results = dataSource.GetTechnicalEvaluationRequests(modelTechnicalEvaluationRequest);
                    listTechnicalEvaluationRequests = results;
                }

                return listTechnicalEvaluationRequests;
            }, "Retrieve the registered TechnicalEvaluationRequests in system."));
        }