¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation RequirementImportExecutionStatus_Archive_Archive_RequirementImportExecutionStatus |
| | | { |
| | | #keys: '1[414996.0.382770175]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide Archive |
| | | { |
| | | #keys: '3[414996.0.382770177][414996.0.382770176][414996.0.382770178]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: RequirementImportExecutionStatus |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide RequirementImportExecutionStatus |
| | | { |
| | | #keys: '3[414996.0.382770180][414996.0.382770179][414996.0.382770181]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: Archive |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
| | |
| | | info( json ); |
| | | |
| | | // è°ç¨æ¥å£ |
| | | //url := "/PR/Import"; |
| | | //i := HTTPInterface::Create( archive.JavaInterfaceAddress(), archive.JavaInterfacePort() ); |
| | | //i.URL( url ); |
| | | //i.PostMethod( true ); |
| | | // |
| | | //try { |
| | | // i.Call( json ); |
| | | // |
| | | // htmlresult := i.Result(); |
| | | //} onerror { |
| | | // |
| | | //} |
| | | url := "/PR/Import"; |
| | | |
| | | i := HTTPInterface::Create( archive.JavaInterfaceAddress(), archive.JavaInterfacePort() ); |
| | | i.URL( url ); |
| | | i.PostMethod( true ); |
| | | i.MediaType( "application/json" ); |
| | | |
| | | i.Call( json ); |
| | | |
| | | htmlresult := i.Result(); |
| | | |
| | | respJSON := JSON::Parse( htmlresult ); |
| | | code := respJSON.Get( "code" ).GetNumber(); |
| | | message := respJSON.Get( "message" ).GetString(); |
| | | |
| | | if ( code = 200 ) { |
| | | |
| | | } else { |
| | | error( message ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | filePath := archive.FileArchivePath() + "\" + "temp" + "\"; |
| | | OS::CreateDirectory( filePath ); |
| | | |
| | | // å建æ§è¡ç¶æ |
| | | archive.RequirementImportExecutionStatus( relnew, |
| | | ExecutionStatus := "InProgress", |
| | | ExecutionUserName := userName ); |
| | | |
| | | if ( prBinaryValue.Size() > 0 ) { |
| | | Archive::HandlePR( archive, macroPlan, userName, prFileName, prBinaryValue, isPRArchive, filePath ); |
| | | archive -> Archive::HandlePR( macroPlan, userName, prFileName, prBinaryValue, isPRArchive, filePath ); |
| | | } 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 |
| | | Attribute ExecutionRespMessage |
| | | { |
| | | #keys: '3[414996.0.382770258][414996.0.382770257][414996.0.382770259]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ExecutionStatus |
| | | { |
| | | #keys: '3[414996.0.382747512][414996.0.382747511][414996.0.382747513]' |
| | | Description: |
| | | [* |
| | | InProgress // æ§è¡ä¸ |
| | | Complete // æ§è¡å®æ |
| | | *] |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ExecutionUserName |
| | | { |
| | | #keys: '3[414996.0.382747367][414996.0.382747366][414996.0.382747368]' |
| | | Description: 'æ§è¡ç¨æ·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type RequirementImportExecutionStatus |
| | | { |
| | | #keys: '5[414996.0.382770155][414996.0.382770153][0.0.0][414996.0.382770154][414996.0.382770156]' |
| | | BaseType: Object |
| | | StructuredName: 'RequirementImportExecutionStatuss' |
| | | } |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component dhRequirementImportExecutionStatus |
| | | { |
| | | #keys: '[414996.0.387620344]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'RequirementImportExecutionStatus' |
| | | Children: |
| | | [ |
| | | Component deRequirementImportExecutionStatus |
| | | { |
| | | #keys: '[414996.0.387620380]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'Archive' |
| | | FilterArguments: 'userName:QLibMacroPlannerWebUI::ApplicationMacroPlanner.ActionBarMacroPlanner.dhUserName' |
| | | FixedFilter: 'object.ExecutionUserName() = userName' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'RequirementImportExecutionStatus' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhUserName |
| | | { |
| | | #keys: '[414996.0.387620508]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: abgRequirementPreprocessing/dhRequirementImportExecutionStatus |
| | | Response OnDataChanged () id:Response_MacroPlanner_abgRequirementPreprocessing_dhRequirementImportExecutionStatus_OnDataChanged |
| | | { |
| | | #keys: '[414996.0.387621135]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if ( not isnull( this.Data() ) ) { |
| | | |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: abgRequirementPreprocessing/dhUserName |
| | | Response OnCreated () id:Response_MacroPlanner_abgRequirementPreprocessing_dhUserName_OnCreated |
| | | { |
| | | #keys: '[414996.0.387620588]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.Data( ApplicationMacroPlanner.GetUserName() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | Form.ApplyChanges(); |
| | | |
| | | |
| | | Archive::RequirementProcessing( Archive, 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(), |
| | |
| | | efCurve.Text() , guard( dhBinaryDataCurve.Data().AsBinaryValue(), BinaryValue::Construct( 0 ) ), |
| | | efIDS.Text() , guard( dhBinaryDataIDS.Data().AsBinaryValue(), BinaryValue::Construct( 0 ) ) ); |
| | | |
| | | |
| | | Form.Close(); |
| | | *] |
| | | } |