示例#1
0
        protected void InitExport(UserExport biz, string datasetSql, ArrayList selectedTableNames)
        {
            DataView view = new UserExport[] { biz }.AsDataView();

            //this.ValidatePrivacyLevel(biz.DataSourceView.Table);
            this.ValidatePrivacyLevel(view.Table);

            selectedTables = ConvertNamesToTables(selectedTableNames);
            this.AddParentTables(selectedTables);

            exportUserId = this.LogUserExport(biz);

            this.SetNewDBName(exportUserId);

            //DataRow dr = biz.Tables[UserExport.Table_UserExport].Rows[0];
            UserExportPatientsDa tmp = new UserExportPatientsDa();

            tmp.CreateTable(datasetSql, exportUserId);
        }
示例#2
0
        private int InitializeExport()
        {
            userExport[UserExport.DiseaseType]      = diseaseType;
            userExport[UserExport.ExportDate]       = DateTime.Now;
            userExport[UserExport.IRB_ApprovalDate] = irbApprovalDate;
            userExport[UserExport.IRB_ApprovalType] = irbApprovalType;
            userExport[UserExport.PrivacyLevel]     = privacyLevel;
            userExport[UserExport.Purpose]          = purpose;
            userExport[UserExport.UserLoginId]      = userLoginId;

            userExport.Save();

            int userExportId = (int)userExport[UserExport.UserExportId];

            UserExportPatientsDa da = new UserExportPatientsDa();

            da.CreateTable(datasetSql, userExportId);

            return(userExportId);
        }