| | |
| | | StaticMethod GenerateData ( |
| | | InterfaceDataset interfaceDataset, |
| | | const MacroPlan macroplan, |
| | | String executor, |
| | | Boolean versionflag |
| | | String executor |
| | | ) |
| | | { |
| | | Description: 'çæå¯ä»¥ä¸åç客æ·éæ±ï¼PPA+IDSï¼æ°æ®' |
| | |
| | | , DemandQty := [Number]cell.Value() |
| | | , VersionName := macroplan.ScenarioName() |
| | | , InterfaceTime := nowdate |
| | | , VersionFlag := versionflag |
| | | // , VersionFlag := versionflag |
| | | ); |
| | | loginfo.CustomerDemandPPAIDS( relinsert, cd ); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method PublishPlanReportData ( |
| | | const MacroPlan macroplan, |
| | | Boolean iscustomdemand, |
| | | Boolean isofflineplan, |
| | | Boolean isshiftplan, |
| | | Boolean isassembleonlineplan, |
| | | Boolean isinventoryplan, |
| | | String executor |
| | | ) |
| | | { |
| | | Description: 'ä¸åè®¡åæ°æ®' |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Oct-30-2024 (created) |
| | | if( iscustomdemand ){//å
¨å¹´æ¥åº¦éæ±/客æ·éæ± |
| | | CustomerDemandPPAIDS::GenerateData( this, macroplan, executor ); |
| | | } |
| | | if( isofflineplan ){//å产线ä¸çº¿è®¡å |
| | | // OfflinePlanArchiveVersion::RefreshData( this, macroplan, archive ); |
| | | } |
| | | if( isshiftplan ){//çæ¬¡è®¡å |
| | | // CustomerDemandIDS::GenerateData( this, recyclebin, archive ); |
| | | } |
| | | if( isassembleonlineplan ){//è£
é
ä¸çº¿è®¡å |
| | | // AssemblyOnlinePlanVersion::RefreshData( this, macroplan ); |
| | | } |
| | | if( isinventoryplan ){//åºå计å |
| | | // CustomerDemandIDS::GenerateData( this, recyclebin, archive ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | currentuser := QuintiqUser::CurrentUser().DisplayName(); |
| | | isactive := ifexpr( rbgVersionFlag.BoundValue() = "true", true, false ); |
| | | if( efInterfacename.Text() = Translations::InterfaceDataset_CustomerDemandPPAIDS_Name() ){//客æ·éæ± |
| | | CustomerDemandPPAIDS::GenerateData( InterfaceDataset, MacroPlan, currentuser, isactive ); |
| | | CustomerDemandPPAIDS::GenerateData( InterfaceDataset, MacroPlan, currentuser ); |
| | | } |
| | | if( efInterfacename.Text() = Translations::InterfaceDataset_AssemblyOnlinePlanPPPSPush_Name()){//è£
é
ä¸çº¿ |
| | | AssemblyOnlinePlanPPPSPush::GenerateData( MacroPlan, InterfaceDataset, currentuser, isactive ); |
| | |
| | | } |
| | | |
| | | showlabel := showlabel.Concat( plannames.Concatenate( "ã" ) ).Concat( 'ï¼' ); |
| | | |
| | | currentuser := QuintiqUser::CurrentUser().DisplayName(); |
| | | if( WebMessageBox::Question( this, showlabel, 'OK|Cancel' ) = 0 ){ |
| | | InterfaceDataset.PublishPlanReportData( MacroPlan, cbCustomDemand.Checked() |
| | | , cbOfflinePlan.Checked() |
| | | , cbShiftPlan.Checked() |
| | | , cbAssembleOnlinePlan.Checked() |
| | | , cbInventoryPlan.Checked() |
| | | , currentuser ); |
| | | } |
| | | |
| | | this.Close(); |