private static DcbOpticonJobBEO PopulateImportRequest(ProfileBEO profiledata) { var request = new DcbOpticonJobBEO(); request.JobTypeName = profiledata.ImportTypeName; request.JobName = profiledata.ImportJobName; request.SysDocId = profiledata.SysDocID; request.SysImportType = profiledata.SysImportTypeID; // Default settings request.StatusBrokerType = BrokerType.Database; request.CommitIntervalBrokerType = BrokerType.ConfigFile; request.CommitIntervalSettingType = SettingType.CommonSetting; //MatterName request.MatterName = profiledata.DatasetDetails.Matter.FolderName; //Source Path request.DcbSourcePath = profiledata.Locations[0]; //For log. // TODO //JobLogInfo.AddParameters(Constants.SourcePath, profiledata.Locations[0].ToString()); //Target DatasetId request.TargetDatasetId = profiledata.DatasetDetails.CollectionId; //DatasetFolderId request.DatasetFolderId = profiledata.DatasetDetails.FolderID; //fieldMappinga request.FieldMappings = profiledata.FieldMapping; //ContentFieldMappings request.ContentFields = profiledata.ContentFields; request.MatterId = profiledata.DatasetDetails.Matter.FolderID; request.IncludeTags = profiledata.IncludeAssociatedTags; request.IncludeNotes = profiledata.IncludeNotes; request.DcbCredentialList = profiledata.DcbUNPWs; request.NativeFilePath = profiledata.NativeFilePathField; request.ImageSetName = profiledata.ImageSetName; request.ImportImages = profiledata.IsImportImages; request.NewImageset = profiledata.IsNewImageSet; request.JobName = profiledata.ImportJobName; //Populate Family Info request.IsImportFamilies = profiledata.IsImportFamilyRelations; request.FamilyRelations = profiledata.FamilyRelations; return(request); }
private DcbOpticonJobBEO PopulateImportRequest(ProfileBEO profiledata) { DcbOpticonJobBEO request = new DcbOpticonJobBEO(); request.JobTypeName = profiledata.ImportTypeName; request.JobName = profiledata.ImportJobName; request.SysDocId = profiledata.SysDocID; request.SysImportType = profiledata.SysImportTypeID; // Default settings request.StatusBrokerType = BrokerType.Database; request.CommitIntervalBrokerType = BrokerType.ConfigFile; request.CommitIntervalSettingType = SettingType.CommonSetting; //MatterName request.MatterName = profiledata.DatasetDetails.Matter.FolderName; //Source Path request.DcbSourcePath = profiledata.Locations[0].ToString(CultureInfo.InvariantCulture); //Target DatasetId request.TargetDatasetId = profiledata.DatasetDetails.CollectionId; //DatasetFolderId request.DatasetFolderId = profiledata.DatasetDetails.FolderID; //fieldMappinga request.FieldMappings = profiledata.FieldMapping; //ContentFieldMappings request.ContentFields = profiledata.ContentFields; request.MatterId = profiledata.DatasetDetails.Matter.FolderID; request.IncludeTags = profiledata.IncludeAssociatedTags; request.IncludeNotes = profiledata.IncludeNotes; request.DcbCredentialList = profiledata.DcbUNPWs; request.NativeFilePath = profiledata.NativeFilePathField; request.ImageSetName = profiledata.ImageSetName; request.ImportImages = profiledata.IsImportImages; request.NewImageset = profiledata.IsNewImageSet; request.JobName = profiledata.ImportJobName; _dataset = DataSetBO.GetDataSetDetailForDataSetId(request.DatasetFolderId); //Populate Family Info request.IsImportFamilies = profiledata.IsImportFamilyRelations; request.FamilyRelations = profiledata.FamilyRelations; return request; }