コード例 #1
0
        private List <SubmissionSetDocumentFolder> GetSubmissionSetDocumentFolderDetails(List <StoredQueryParameter> lstStoredQueryParameter)
        {
            List <SubmissionSetDocumentFolder> lstSubmissionSetDocumentFolder = null;
            RegistryStoredQueryDataAccess      objStoredQueryDAL = null;
            string paramValue = null;
            string entryUUID  = null;
            string uniqueID   = null;

            //Prepare SQL IN Param Value
            paramValue = PrepareForSqlInStatement(lstStoredQueryParameter[0].ParameterValue);

            if (lstStoredQueryParameter[0].ParameterName == "$XDSDocumentEntryEntryUUID")
            {
                entryUUID = paramValue;
            }
            else
            {
                uniqueID = paramValue;
            }

            objStoredQueryDAL = new RegistryStoredQueryDataAccess();
            lstSubmissionSetDocumentFolder = objStoredQueryDAL.GetSubmissionSetDocumentFolderByEntryUUIDorUniqueID(entryUUID, uniqueID);

            return(lstSubmissionSetDocumentFolder);
        }
コード例 #2
0
        private List <SubmissionSetDocumentFolder> GetSubmissionSetDocumentFolderDetails(List <StoredQueryParameter> lstStoredQueryParameter)
        {
            List <SubmissionSetDocumentFolder> lstSubmissionSetDocumentFolder = null;
            RegistryStoredQueryDataAccess      objStoredQueryDAL = null;
            string paramValue       = null;
            string entryUUID        = null;
            string uniqueID         = null;
            string associationTypes = null;

            for (int count = 0; count < lstStoredQueryParameter.Count; count++)
            {
                //Prepare SQL IN Param Value
                paramValue = PrepareForSqlInStatement(lstStoredQueryParameter[count].ParameterValue);

                if (lstStoredQueryParameter[count].ParameterName == "$XDSDocumentEntryEntryUUID")
                {
                    entryUUID = paramValue;
                }
                else if (lstStoredQueryParameter[count].ParameterName == "$XDSDocumentEntryUniqueId")
                {
                    uniqueID = paramValue;
                }
                else if (lstStoredQueryParameter[count].ParameterName == "$AssociationTypes")
                {
                    associationTypes = PrepareForSqlInStatement(paramValue);
                }
            }

            objStoredQueryDAL = new RegistryStoredQueryDataAccess();
            lstSubmissionSetDocumentFolder = objStoredQueryDAL.GetSubmissionSetDocumentFolderByEntryUUIDorUniqueID(entryUUID, uniqueID, associationTypes);

            return(lstSubmissionSetDocumentFolder);
        }