| | |
| | | String versionto, |
| | | Boolean versionflag, |
| | | const Product_MPs products, |
| | | String executor |
| | | ) as String |
| | | String executor, |
| | | String feedback |
| | | ) as InterfaceLoginfo |
| | | { |
| | | TextBody: |
| | | [* |
| | |
| | | |
| | | } |
| | | loginfo.TotalRow( ms64.MS64Data( relsize ) ); |
| | | return AOnlineAndMOfflinePlanMS64::Publish( owner, loginfo ); |
| | | feedback := AOnlineAndMOfflinePlanMS64::Publish( owner, loginfo ); |
| | | return loginfo; |
| | | //InterfaceLoginfo::CallInterfaceForSAPGet( owner, loginfo ); |
| | | *] |
| | | } |
| | |
| | | String version, |
| | | Date startdate, |
| | | Date enddate, |
| | | String executor |
| | | ) as String |
| | | String executor, |
| | | String feedback |
| | | ) as InterfaceLoginfo |
| | | { |
| | | TextBody: |
| | | [* |
| | |
| | | } |
| | | } |
| | | loginfo.TotalRow( pir.PIRData( relsize ) ); |
| | | return AOnlineAndMOfflinePlanPIR::Publish( owner, loginfo ); |
| | | feedback := AOnlineAndMOfflinePlanPIR::Publish( owner, loginfo ); |
| | | return loginfo; |
| | | *] |
| | | } |
| | |
| | | item := data.Get( i ); |
| | | sapresponse.Add( InterfaceSAPResponseLoginfo::GenerateData( loginfo, item ) ); |
| | | } |
| | | sucproduct := selectuniquevalues( sapresponse, Elements, e, e.IsSuccess(), e.Msg_v1() ); |
| | | failmssages := selectuniquevalues( sapresponse, Elements, e, not e.IsSuccess(), ifexpr( e.Msg().FindString( e.Msg_v1(), 0 ) > -1, e.Msg().ReplaceAll( e.Msg_v1(), '*' ), e.Msg() ) ); |
| | | feedback := feedback.Concat( '产品' ).Concat( sucproduct.Concatenate( "、" ) ).Concat( '推送成功' ).Concat( ';' ); |
| | | Transaction::Transaction().Propagate( attribute( InterfaceSAPResponseLoginfo, IsSuccess ) ); |
| | | // sucproduct := selectuniquevalues( sapresponse, Elements, e, e.IsSuccess(), e.Msg_v1() ); |
| | | failmssages := selectuniquevalues( sapresponse, Elements, e, not e.IsSuccess(), ifexpr( e.Msg().FindString( e.Msg_v1(), 0 ) > -1, e.Msg().ReplaceAll( e.Msg_v1(), '*' ), e.Msg_v2() ) ); |
| | | // if( sucproduct.Size() > 0 ){ |
| | | // feedback := feedback.Concat( '产品' ).Concat( sucproduct.Concatenate( "、" ) ).Concat( '推送成功' ).Concat( ';' ); |
| | | // } |
| | | traverse( failmssages, Elements, failmsg ){ |
| | | failproduct := selectuniquevalues( sapresponse, Elements, e, not e.IsSuccess() and ( failmsg = e.Msg() or failmsg = e.Msg().ReplaceAll( e.Msg_v1(), '*' ) ), e.Msg_v1() ); |
| | | failproduct := selectuniquevalues( sapresponse, Elements, e, not e.IsSuccess() and ( failmsg = e.Msg_v2() or failmsg = e.Msg().ReplaceAll( e.Msg_v1(), '*' ) ), e.Msg_v1() ); |
| | | if( failmsg.FindString( '*', 0 ) > -1 ){ |
| | | feedback := feedback.Concat( failmsg.ReplaceAll( '*', failproduct.Concatenate( '、' ) ) ).Concat( ';' ); |
| | | }else{ |
| | |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'dhDialogData.Data.Quantity' |
| | | Label: 'Quantity' |
| | | Mask: 'REAL' |
| | | Taborder: 0 |
| | | ] |
| | |
| | | { |
| | | #keys: '[415136.0.1345221306]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.ApplyChanges(); |
| | | Form.Close(); |
| | | Form.OnOK(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | Form.ApplyChanges(); |
| | | //componentmds := ApplicationScope.ComponentMDS(); |
| | | //mdsinstanceF := select( componentmds, ComponentMDSKinds.ComponentMDSInstances, m, m.MDSID().MDSKey() = ddlOriginMacroPlan.Data().DatasetMDSID() ); |
| | | //handleF := mdsinstanceF.GetMDSHandle() |
| | | //macroplanF := handleF.AsMacroPlan(); |
| | | // |
| | | //mdsinstanceT := select( componentmds, ComponentMDSKinds.ComponentMDSInstances, m, m.MDSID().MDSKey() = ddlDestinationMacroPlan.Data().DatasetMDSID() ); |
| | | //handleT := mdsinstanceT.GetMDSHandle() |
| | | //macroplanT := handleT.AsMacroPlan(); |
| | | |
| | | if( WebMessageBox::Question( this, '是否确认推送', 'OK|Cancel' ) = 0 ){ |
| | | currentuser := QuintiqUser::CurrentUser().DisplayName(); |
| | | |
| | | msg := AOnlineAndMOfflinePlanMS64::GenerateData( InterfaceDataset, ddslFactory.Text(), dsStartDate.Date(), dsEndDate.Date(), efVersionFrom.Text(), efVersionTo.Text(), cbActiveVersion.Checked(), dhProducts.Data(), currentuser ); |
| | | WebMessageBox::Warning( ApplicationMacroPlanner, msg, 'Yes|No' ) |
| | | msg := ''; |
| | | loginfo := AOnlineAndMOfflinePlanMS64::GenerateData( InterfaceDataset, ddslFactory.Text(), dsStartDate.Date(), dsEndDate.Date(), efVersionFrom.Text(), efVersionTo.Text(), cbActiveVersion.Checked(), dhProducts.Data(), currentuser, msg ); |
| | | sucproduct := selectuniquevalues( loginfo, SAPResponseLoginfo, e, e.IsSuccess(), e.Msg() ); |
| | | // info( '--------------', sucproduct.Size(), loginfo.SAPResponseLoginfo( relsize ), sucproduct.Size() = loginfo.SAPResponseLoginfo( relsize ) ); |
| | | if( sucproduct.Size() = loginfo.SAPResponseLoginfo( relsize ) ){ |
| | | WebMessageBox::Success( ApplicationMacroPlanner, '推送成功' ); |
| | | }else{ |
| | | WebMessageBox::Warning( ApplicationMacroPlanner, msg, 'Yes|No' ); |
| | | } |
| | | } |
| | | Form.Close(); |
| | | *] |
| | |
| | | [* |
| | | Form.ApplyChanges(); |
| | | if( WebMessageBox::Question( this, '是否确认推送', 'OK|Cancel' ) = 0 ){ |
| | | msg := AOnlineAndMOfflinePlanPIR::GenerateData( InterfaceDataset, ddslFactory.Text(), efVersion.Text(), dsStartDate.Date(), dsEndDate.Date(), QuintiqUser::CurrentUser().DisplayName() ); |
| | | WebMessageBox::Warning( ApplicationMacroPlanner, msg, 'Yes|No' ) |
| | | msg := ''; |
| | | loginfo := AOnlineAndMOfflinePlanPIR::GenerateData( InterfaceDataset, ddslFactory.Text(), efVersion.Text(), dsStartDate.Date(), dsEndDate.Date(), QuintiqUser::CurrentUser().DisplayName(), msg ); |
| | | sucproduct := selectuniquevalues( loginfo, SAPResponseLoginfo, e, e.IsSuccess(), e.Msg_v1() ); |
| | | if( sucproduct.Size() = loginfo.SAPResponseLoginfo( relsize ) ){ |
| | | WebMessageBox::Success( ApplicationMacroPlanner, '推送成功' ); |
| | | }else{ |
| | | WebMessageBox::Warning( ApplicationMacroPlanner, msg, 'Yes|No' ); |
| | | } |
| | | } |
| | | Form.Close(); |
| | | *] |