_Main/BL/InfoMessages.qbl
@@ -4,7 +4,7 @@ { InfoMessage A_VWED_GeneralExcelImportAndExportDataSource_UploadError1 { DefaultText: 'Please upload a file in the format xlsx or xls' DefaultText: 'Please upload a file in the format xlsx' } InfoMessage A_VWED_GeneralExcelImportAndExportDataSource_UploadError2 { _Main/BL/Type_Archive/StaticMethod_VerifyTheFileName.qbl
@@ -10,7 +10,7 @@ fileNameSuffix := fileNames.Element( fileNames.Size() - 1 ); if ( fileNameSuffix <> "xlsx" and fileNameSuffix <> "xls" ) { if ( fileNameSuffix <> "xlsx" ) { error( Translations::A_VWED_GeneralExcelImportAndExportDataSource_UploadError1() ); } *] _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Component_pBudget.def
@@ -48,6 +48,26 @@ Taborder: 0 ] } Component dhBinaryDataBudget { #keys: '[413988.0.1186302663]' BaseType: 'WebDataHolder' Databinding: 'BinaryData*' Properties: [ Taborder: 4 ] } Component dhOriginalFileNameBudget { #keys: '[413988.0.1186121268]' BaseType: 'WebDataHolder' Databinding: 'String*' Properties: [ Taborder: 5 ] } ] Properties: [ _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Component_pCurve.def
@@ -37,6 +37,26 @@ Taborder: 0 ] } Component dhBinaryDataCurve { #keys: '[413988.0.1186330961]' BaseType: 'WebDataHolder' Databinding: 'BinaryData*' Properties: [ Taborder: 3 ] } Component dhOriginalFileNameCurve { #keys: '[413988.0.1187151501]' BaseType: 'WebDataHolder' Databinding: 'String*' Properties: [ Taborder: 4 ] } ] Properties: [ _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Component_pIDS.def
@@ -37,6 +37,26 @@ Taborder: 0 ] } Component dhBinaryDataIDS { #keys: '[413988.0.1186390982]' BaseType: 'WebDataHolder' Databinding: 'BinaryData*' Properties: [ Taborder: 3 ] } Component dhOriginalFileNameIDS { #keys: '[413988.0.1187214517]' BaseType: 'WebDataHolder' Databinding: 'String*' Properties: [ Taborder: 4 ] } ] Properties: [ _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Component_pPP.def
@@ -48,6 +48,26 @@ Taborder: 0 ] } Component dhBinaryDataPP { #keys: '[413988.0.1186302619]' BaseType: 'WebDataHolder' Databinding: 'BinaryData*' Properties: [ Taborder: 4 ] } Component dhOriginalFileNamePP { #keys: '[413988.0.1186363668]' BaseType: 'WebDataHolder' Databinding: 'String*' Properties: [ Taborder: 5 ] } ] Properties: [ _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Component_pPPA.def
@@ -48,6 +48,26 @@ Taborder: 0 ] } Component dhBinaryDataPPA { #keys: '[413988.0.1186330911]' BaseType: 'WebDataHolder' Databinding: 'BinaryData*' Properties: [ Taborder: 4 ] } Component dhOriginalFileNamePPA { #keys: '[413988.0.1187121752]' BaseType: 'WebDataHolder' Databinding: 'String*' Properties: [ Taborder: 5 ] } ] Properties: [ _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Component_pPR.def
@@ -48,6 +48,26 @@ Taborder: 0 ] } Component dhBinaryDataPR { #keys: '[413988.0.1186120299]' BaseType: 'WebDataHolder' Databinding: 'BinaryData*' Properties: [ Taborder: 4 ] } Component dhOriginalFileNamePR { #keys: '[413988.0.1186971485]' BaseType: 'WebDataHolder' Databinding: 'String*' Properties: [ Taborder: 5 ] } ] Properties: [ _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pBudget_bBudget_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,33 @@ Quintiq file version 2.0 #parent: pBudget/bBudget Response OnClick () id:Response_pBudget_bBudget_OnClick { #keys: '[413988.0.1186730624]' CanBindMultiple: false DefinitionID: 'Responsedef_WebButton_OnClick' QuillAction { Body: [* try { uploadJsonString := Application.GetFile(); if ( uploadJsonString <> "" ) { uploadJson := JSON::Parse( uploadJsonString ); Archive::VerifyTheFileName( uploadJson ); fileName := uploadJson.Get( "name" ).GetString(); base64String := uploadJson.Get( "data" ).GetString(); webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ); efBudget.Text( fileName ); dhOriginalFileNameBudget.Data( fileName ); dhBinaryDataBudget.Data( &webFileBinaryData ); } } onerror { WebMessageBox::Error( e.GeneralInformation() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pBudget_efBudget_OnUserChanged.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,25 @@ Quintiq file version 2.0 #parent: pBudget/efBudget Response OnUserChanged () id:Response_pBudget_efBudget_OnUserChanged { #keys: '[413988.0.1186913945]' CanBindMultiple: false DefinitionID: 'Responsedef_WebEditField_OnUserChanged' QuillAction { Body: [* source := this.Text(); flag := not this.Text().EndsWith( ".xlsx" ); if ( flag ) { WebMessageBox::Warning( "æä»¶éè¦ä»¥.xlsx为åç¼" ); this.Text( dhOriginalFileNameBudget.Data() ); } else { dhOriginalFileNameBudget.Data( this.Text() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pCurveEnable_cCurveEnable_OnChanged.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,16 @@ Quintiq file version 2.0 #parent: pCurveEnable/cCurveEnable Response OnChanged () id:Response_pCurveEnable_cCurveEnable_OnChanged { #keys: '[413988.0.1188750240]' CanBindMultiple: false DefinitionID: 'Responsedef_WebCheckbox_OnChanged' QuillAction { Body: [* efCurve.Enabled( this.Checked(), "" ); *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pCurve_bCurve_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,37 @@ Quintiq file version 2.0 #parent: pCurve/bCurve Response OnClick () id:Response_pCurve_bCurve_OnClick { #keys: '[413988.0.1186362682]' CanBindMultiple: false DefinitionID: 'Responsedef_WebButton_OnClick' Precondition: [* return cCurveEnable.Checked(); *] QuillAction { Body: [* try { uploadJsonString := Application.GetFile(); if ( uploadJsonString <> "" ) { uploadJson := JSON::Parse( uploadJsonString ); Archive::VerifyTheFileName( uploadJson ); fileName := uploadJson.Get( "name" ).GetString(); base64String := uploadJson.Get( "data" ).GetString(); webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ); efCurve.Text( fileName ); dhBinaryDataCurve.Data( &webFileBinaryData ); dhOriginalFileNameCurve.Data( fileName ); } } onerror { WebMessageBox::Error( e.GeneralInformation() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pCurve_efCurve_OnUserChanged.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,25 @@ Quintiq file version 2.0 #parent: pCurve/efCurve Response OnUserChanged () id:Response_pCurve_efCurve_OnUserChanged { #keys: '[413988.0.1187151551]' CanBindMultiple: false DefinitionID: 'Responsedef_WebEditField_OnUserChanged' QuillAction { Body: [* source := this.Text(); flag := not this.Text().EndsWith( ".xlsx" ); if ( flag ) { WebMessageBox::Warning( "æä»¶éè¦ä»¥.xlsx为åç¼" ); this.Text( dhOriginalFileNameCurve.Data() ); } else { dhOriginalFileNameCurve.Data( this.Text() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pIDS_bIDS_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,33 @@ Quintiq file version 2.0 #parent: pIDS/bIDS Response OnClick () id:Response_pIDS_bIDS_OnClick { #keys: '[413988.0.1185074879]' CanBindMultiple: false DefinitionID: 'Responsedef_WebButton_OnClick' QuillAction { Body: [* try { uploadJsonString := Application.GetFile(); if ( uploadJsonString <> "" ) { uploadJson := JSON::Parse( uploadJsonString ); Archive::VerifyTheFileName( uploadJson ); fileName := uploadJson.Get( "name" ).GetString(); base64String := uploadJson.Get( "data" ).GetString(); webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ); efIDS.Text( fileName ); dhBinaryDataIDS.Data( &webFileBinaryData ); dhOriginalFileNameIDS.Data( fileName ); } } onerror { WebMessageBox::Error( e.GeneralInformation() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pIDS_efIDS_OnUserChanged.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,25 @@ Quintiq file version 2.0 #parent: pIDS/efIDS Response OnUserChanged () id:Response_pIDS_efIDS_OnUserChanged { #keys: '[413988.0.1187183547]' CanBindMultiple: false DefinitionID: 'Responsedef_WebEditField_OnUserChanged' QuillAction { Body: [* source := this.Text(); flag := not this.Text().EndsWith( ".xlsx" ); if ( flag ) { WebMessageBox::Warning( "æä»¶éè¦ä»¥.xlsx为åç¼" ); this.Text( dhOriginalFileNameIDS.Data() ); } else { dhOriginalFileNameIDS.Data( this.Text() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pPPAEnable_cPPAEnable_OnChanged.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,17 @@ Quintiq file version 2.0 #parent: pPPAEnable/cPPAEnable Response OnChanged () id:Response_pPPAEnable_cPPAEnable_OnChanged { #keys: '[413988.0.1188711785]' CanBindMultiple: false DefinitionID: 'Responsedef_WebCheckbox_OnChanged' QuillAction { Body: [* efPPA.Enabled( this.Checked(), "" ); cPPA.Enabled( this.Checked(), "" ); *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pPPA_bPPA_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,37 @@ Quintiq file version 2.0 #parent: pPPA/bPPA Response OnClick () id:Response_pPPA_bPPA_OnClick { #keys: '[413988.0.1186822434]' CanBindMultiple: false DefinitionID: 'Responsedef_WebButton_OnClick' Precondition: [* return cPPAEnable.Checked(); *] QuillAction { Body: [* try { uploadJsonString := Application.GetFile(); if ( uploadJsonString <> "" ) { uploadJson := JSON::Parse( uploadJsonString ); Archive::VerifyTheFileName( uploadJson ); fileName := uploadJson.Get( "name" ).GetString(); base64String := uploadJson.Get( "data" ).GetString(); webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ); efPPA.Text( fileName ); dhBinaryDataPPA.Data( &webFileBinaryData ); dhOriginalFileNamePPA.Data( fileName ); } } onerror { WebMessageBox::Error( e.GeneralInformation() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pPPA_cPPA_OnCreated.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,16 @@ Quintiq file version 2.0 #parent: pPPA/cPPA Response OnCreated () id:Response_pPPA_cPPA_OnCreated { #keys: '[413988.0.1190422426]' CanBindMultiple: false DefinitionID: 'Responsedef_WebComponent_OnCreated' QuillAction { Body: [* this.Enabled( cPPAEnable.Checked(), "" ); *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pPPA_efPPA_OnUserChanged.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,25 @@ Quintiq file version 2.0 #parent: pPPA/efPPA Response OnUserChanged () id:Response_pPPA_efPPA_OnUserChanged { #keys: '[413988.0.1187121790]' CanBindMultiple: false DefinitionID: 'Responsedef_WebEditField_OnUserChanged' QuillAction { Body: [* source := this.Text(); flag := not this.Text().EndsWith( ".xlsx" ); if ( flag ) { WebMessageBox::Warning( "æä»¶éè¦ä»¥.xlsx为åç¼" ); this.Text( dhOriginalFileNamePPA.Data() ); } else { dhOriginalFileNamePPA.Data( this.Text() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pPP_bPP_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,33 @@ Quintiq file version 2.0 #parent: pPP/bPP Response OnClick () id:Response_pPP_bPP_OnClick { #keys: '[413988.0.1186700628]' CanBindMultiple: false DefinitionID: 'Responsedef_WebButton_OnClick' QuillAction { Body: [* try { uploadJsonString := Application.GetFile(); if ( uploadJsonString <> "" ) { uploadJson := JSON::Parse( uploadJsonString ); Archive::VerifyTheFileName( uploadJson ); fileName := uploadJson.Get( "name" ).GetString(); base64String := uploadJson.Get( "data" ).GetString(); webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ); efPP.Text( fileName ); dhOriginalFileNamePP.Data( fileName ); dhBinaryDataPP.Data( &webFileBinaryData ); } } onerror { WebMessageBox::Error( e.GeneralInformation() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pPP_efPP_OnUserChanged.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,25 @@ Quintiq file version 2.0 #parent: pPP/efPP Response OnUserChanged () id:Response_pPP_efPP_OnUserChanged { #keys: '[413988.0.1186363797]' CanBindMultiple: false DefinitionID: 'Responsedef_WebEditField_OnUserChanged' QuillAction { Body: [* source := this.Text(); flag := not this.Text().EndsWith( ".xlsx" ); if ( flag ) { WebMessageBox::Warning( "æä»¶éè¦ä»¥.xlsx为åç¼" ); this.Text( dhOriginalFileNamePP.Data() ); } else { dhOriginalFileNamePP.Data( this.Text() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pPR_bPR_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,33 @@ Quintiq file version 2.0 #parent: pPR/bPR Response OnClick () id:Response_pPR_bPR_OnClick { #keys: '[413988.0.1186120890]' CanBindMultiple: false DefinitionID: 'Responsedef_WebButton_OnClick' QuillAction { Body: [* try { uploadJsonString := Application.GetFile(); if ( uploadJsonString <> "" ) { uploadJson := JSON::Parse( uploadJsonString ); Archive::VerifyTheFileName( uploadJson ); fileName := uploadJson.Get( "name" ).GetString(); base64String := uploadJson.Get( "data" ).GetString(); webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ); efPR.Text( fileName ); dhOriginalFileNamePR.Data( fileName ); dhBinaryDataPR.Data( &webFileBinaryData ); } } onerror { WebMessageBox::Error( e.GeneralInformation() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pPR_efPR_OnUserChanged.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,25 @@ Quintiq file version 2.0 #parent: pPR/efPR Response OnUserChanged () id:Response_pPR_efPR_OnUserChanged { #keys: '[413988.0.1186643093]' CanBindMultiple: false DefinitionID: 'Responsedef_WebEditField_OnUserChanged' QuillAction { Body: [* source := this.Text(); flag := not this.Text().EndsWith( ".xlsx" ); if ( flag ) { WebMessageBox::Warning( "æä»¶éè¦ä»¥.xlsx为åç¼" ); this.Text( dhOriginalFileNamePR.Data() ); } else { dhOriginalFileNamePR.Data( this.Text() ); } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pnlActionsLeft_bCurveTemplateDownload_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,18 @@ Quintiq file version 2.0 #parent: pnlActionsLeft/bCurveTemplateDownload Response OnClick () id:Response_pnlActionsLeft_bCurveTemplateDownload_OnClick { #keys: '[413988.0.1185011957]' CanBindMultiple: false DefinitionID: 'Responsedef_WebButton_OnClick' QuillAction { Body: [* binaryValue := TemplateManager::GetCurveTemplate(); Application.Download( "Curveä¸ä¼ 模æ¿.xlsx", binaryValue.AsBinaryData() ); *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pnlActionsLeft_bIDSTemplateDownload_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,18 @@ Quintiq file version 2.0 #parent: pnlActionsLeft/bIDSTemplateDownload Response OnClick () id:Response_pnlActionsLeft_bIDSTemplateDownload_OnClick { #keys: '[413988.0.1185012200]' CanBindMultiple: false DefinitionID: 'Responsedef_WebButton_OnClick' QuillAction { Body: [* binaryValue := TemplateManager::GetIDSTemplate( 14 ); Application.Download( "IDSä¸ä¼ 模æ¿.xlsx", binaryValue.AsBinaryData() ); *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogRequirementUpload/Response_pnlActionsLeft_bPPATemplateDownload_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,18 @@ Quintiq file version 2.0 #parent: pnlActionsLeft/bPPATemplateDownload Response OnClick () id:Response_pnlActionsLeft_bPPATemplateDownload_OnClick { #keys: '[413988.0.1185011800]' CanBindMultiple: false DefinitionID: 'Responsedef_WebButton_OnClick' QuillAction { Body: [* binaryValue := TemplateManager::GetPPATemplate(); Application.Download( "PPAä¸ä¼ 模æ¿.xlsx", binaryValue.AsBinaryData() ); *] GroupServerCalls: false } }