¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Dataset ArchiveExecutionStatus |
| | | { |
| | | #keys: '2[413988.0.1210041499][413988.0.1210041498]' |
| | | DefaultMDSName: 'ArchiveExecutionStatus' |
| | | InstanceType: ArchiveExecutionStatus |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation RequirementImportExecutionStatus_ArchiveExecutionStatus_ArchiveExecutionStatus_RequirementImportExecutionStatus |
| | | { |
| | | #keys: '1[413988.0.1210041505]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide ArchiveExecutionStatus |
| | | { |
| | | #keys: '3[413988.0.1210041507][413988.0.1210041506][413988.0.1210041508]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: RequirementImportExecutionStatus |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide RequirementImportExecutionStatus |
| | | { |
| | | #keys: '3[413988.0.1210041510][413988.0.1210041509][413988.0.1210041511]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: ArchiveExecutionStatus |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
| | |
| | | Archive::WriteTempFile( pathPR, prBinaryValue ); |
| | | |
| | | info( json ); |
| | | |
| | | for ( i := 0; i < 10000; i++ ) { |
| | | for ( j := 0; j < 20000; j++ ) { |
| | | info( i + j ); |
| | | } |
| | | } |
| | | // è°ç¨æ¥å£ |
| | | url := "/PR/Import"; |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod OnException ( |
| | | Exception e, |
| | | ArchiveExecutionStatus archiveExecutionStatus, |
| | | String userName |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | archiveExecutionStatus.RequirementImportExecutionStatus( relnew, |
| | | ExecutionStatus := "Complete", |
| | | ExecutionUserName := userName, |
| | | ExecutionRespMessage := e.Message(), |
| | | ExecutionIsSuccess := false ); |
| | | *] |
| | | } |
| | |
| | | #parent: #root |
| | | StaticMethod RequirementProcessing ( |
| | | Archive archive, |
| | | ArchiveExecutionStatus archiveExecutionStatus, |
| | | MacroPlan macroPlan, |
| | | String userName, |
| | | String prFileName, |
| | |
| | | OS::CreateDirectory( filePath ); |
| | | |
| | | // å建æ§è¡ç¶æ |
| | | archive.RequirementImportExecutionStatus( relnew, |
| | | archiveExecutionStatus.RequirementImportExecutionStatus( relnew, |
| | | ExecutionStatus := "InProgress", |
| | | ExecutionUserName := userName ); |
| | | |
| | | if ( prBinaryValue.Size() > 0 ) { |
| | | archive -> Archive::HandlePR( macroPlan, userName, prFileName, prBinaryValue, isPRArchive, filePath ); |
| | | archive -> Archive::HandlePR( macroPlan, userName, prFileName, prBinaryValue, isPRArchive, filePath ) ->Archive::Success() -> Exception() -> Archive::OnException( archiveExecutionStatus, userName ); |
| | | } else if ( ppBinaryValue.Size() > 0 ) { |
| | | Archive::HandlePP( archive, macroPlan, userName, ppFileName, ppBinaryValue, isPPArchive, filePath ); |
| | | } else if ( budgetBinaryValue.Size() > 0 ) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Success |
| | | { |
| | | TextBody: |
| | | [* |
| | | // lihongji May-25-2024 (created) |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod OnServerStartup |
| | | { |
| | | TextBody: |
| | | [* |
| | | // lihongji May-15-2024 (created) |
| | | folder := DomainModel::Domain().MDSFolderDefinitions().FindFolder( "/root" ); |
| | | |
| | | datasetName := typeof( ArchiveExecutionStatus ).Name(); |
| | | |
| | | oinfo := MDSEditor::Editor().ObjectInfos( datasetName, folder.FolderID(), datasetName ); |
| | | |
| | | o := select( oinfo, Elements, o, not o.IsLoaded() ); |
| | | emptydataset := isnull( o ); |
| | | |
| | | if ( emptydataset ) { |
| | | MDSArchiveExecutionStatus::CreateMDS( datasetName, DMF_Utility::StorageState_MemoryOnly() ); |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ArchiveExecutionStatus |
| | | { |
| | | #keys: '5[413988.0.1210041495][413988.0.1210041493][0.0.0][413988.0.1210041494][413988.0.1210041496]' |
| | | BaseType: Object |
| | | StructuredName: 'ArchiveExecutionStatuss' |
| | | } |
| | |
| | | // åå»ºåæ¡£æ°æ®é |
| | | Archive::OnServerStartup(); |
| | | |
| | | // åå»ºåæ¡£ç¶ææ°æ®é |
| | | ArchiveExecutionStatus::OnServerStartup(); |
| | | |
| | | // Create MPDomainHandler |
| | | MPDomainHandler::OnServerStartup(); |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ExecutionIsSuccess |
| | | { |
| | | #keys: '3[413988.0.1207255621][413988.0.1207255620][413988.0.1207255622]' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Filter ( |
| | | String userName |
| | | ) declarative remote as Boolean |
| | | { |
| | | TextBody: 'return this.ExecutionUserName() = userName;' |
| | | } |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'Archive' |
| | | FilterArguments: 'userName:QLibMacroPlannerWebUI::ApplicationMacroPlanner.ActionBarMacroPlanner.dhUserName' |
| | | FixedFilter: 'object.ExecutionUserName() = userName' |
| | | Source: 'Archive' |
| | | DataType: 'ArchiveExecutionStatus' |
| | | Source: 'ArchiveExecutionStatus' |
| | | Taborder: 0 |
| | | Transformation: 'RequirementImportExecutionStatus' |
| | | ] |
| | |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhUserName |
| | | { |
| | | #keys: '[414996.0.387620508]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: abgRequirementPreprocessing/deRequirementImportExecutionStatus |
| | | Response OnCreated () id:Response_MacroPlanner_abgRequirementPreprocessing_deRequirementImportExecutionStatus_OnCreated |
| | | { |
| | | #keys: '[413988.0.1211520534]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.FixedFilter( "object.Filter( '" + ApplicationMacroPlanner.GetUserName() + "' )" ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if ( not isnull( this.Data() ) ) { |
| | | ries := this.Data(); |
| | | |
| | | info( "æ§è¡ç¨æ·ï¼", this.Data().ExecutionUserName(), " æ§è¡ç¶æï¼", this.Data().ExecutionUserName(), " æ§è¡æ¶æ¯ï¼", this.Data().ExecutionRespMessage() ); |
| | | |
| | | if ( ries.ExecutionIsSuccess() ) { |
| | | |
| | | } else { |
| | | if ( ries.ExecutionStatus() = "InProgress" ) { |
| | | bRequirementUpload.Image( "APPLICATION_STOP" ); |
| | | } else if ( ries.ExecutionStatus() = "Complete" ) { |
| | | bRequirementUpload.Image( "FLASH" ); |
| | | } |
| | | } |
| | | |
| | | this.Data().Delete(); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | |
| | | [* |
| | | Form.ApplyChanges(); |
| | | |
| | | Archive::RequirementProcessing( Archive, MacroPlan, ApplicationMacroPlanner.GetUserName(), |
| | | Archive::RequirementProcessing( Archive, ArchiveExecutionStatus, MacroPlan, ApplicationMacroPlanner.GetUserName(), |
| | | efPR.Text() , guard( dhBinaryDataPR.Data().AsBinaryValue(), BinaryValue::Construct( 0 ) ), cPR.Checked(), |
| | | efPP.Text() , guard( dhBinaryDataPP.Data().AsBinaryValue(), BinaryValue::Construct( 0 ) ), cPP.Checked(), |
| | | efBudget.Text() , guard( dhBinaryDataBudget.Data().AsBinaryValue(), BinaryValue::Construct( 0 ) ), cBudget.Checked(), |