Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev
| | |
| | | .Add( "planningQty", aopdata.PlanningQty() ) |
| | | .Add( "sequence", aopdata.Sequence() ) |
| | | .Add( "factoryName", aopdata.FactoryName() ) |
| | | .Add( "Remark", aopdata.Note() ) |
| | | .Add( "remark", aopdata.Note() ) |
| | | .Add( "fac", aopdata.Fac() ) |
| | | .Add( "versionName", aopdata.VersionName() ) |
| | | .Add( "interfaceTime", aopdata.InterfaceTime().Format( 'Y-M2-D2 H:m:s' ) ).Build();/*"2024-10-01 12:00:00" )*/ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GenerateReport ( |
| | | MacroPlan macroPlan |
| | | MacroPlan macroPlan, |
| | | InterfaceDataset interfaceDataset |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // åå»ºæ°æ® |
| | | PackagingPlanCell::CreateData( macroPlan ); |
| | | //PackagingPlanCell::CreateData( macroPlan ); |
| | | |
| | | // 设置å
è£
&æå
-æ°éï¼å¤§è¿å·¥åï¼ |
| | | PackagingPlanCell::SetPackagingAndUnpackingValuesDL( macroPlan ); |
| | | //PackagingPlanCell::SetPackagingAndUnpackingValuesDL( macroPlan ); |
| | | |
| | | // 设置å
è£
&æå
-æ°éï¼é¿æ¥å·¥åï¼ |
| | | PackagingPlanCell::SetPackagingAndUnpackingValuesCC( macroPlan ); |
| | | //PackagingPlanCell::SetPackagingAndUnpackingValuesCC( macroPlan ); |
| | | |
| | | // 设置起å§å
è£
åºå |
| | | PackagingPlanCell::SetInitialPackagingInventory( macroPlan, interfaceDataset ); |
| | | |
| | | //traverse ( macroPlan, PackagingPlanRow, ppr, ( ppr.ProductID() = "Windshield" and ppr.StockingPointID() = "Bosch" ) or ( ppr.ProductID() = "Windshield" and ppr.StockingPointID() = "Components (Spain)" ) ) { |
| | | // traverse ( ppr, PackagingPlanCell, ppc/*, ppc.StartDate() = Date::Construct( 2020, 4, 1 )*/ ) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SetInitialPackagingInventory ( |
| | | MacroPlan macroPlan, |
| | | InterfaceDataset interfaceDataset |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | iids := maxset( interfaceDataset, InventoryInterfaceData, tempIID, true, tempIID.Date() ); |
| | | |
| | | traverse ( iids, Elements, iid, exists( iid, InventoryInterfaceDataDetail, tempIIDD, tempIIDD.InventoryPoint() = "SMEC" or tempIIDD.InventoryPoint() = "PMTL" ) ) { |
| | | traverse ( iid, InventoryInterfaceDataDetail, iidd, iidd.InventoryPoint() = "SMEC" or iidd.InventoryPoint() = "PMTL" ) { |
| | | factory := ifexpr( iidd.InventoryPoint() = "SMEC", "é¿æ¥å·¥å", "大è¿å·¥å" ); |
| | | |
| | | ppcell := select( macroPlan, PackagingPlanRow.PackagingPlanCell, tempPPCell, |
| | | tempPPCell.PackagingPlanRow().ProductID() = iidd.PartNumber() and |
| | | tempPPCell.PackagingPlanColumn().StartDate() = ( macroPlan.StartOfPlanning().Date() - 1 ) and |
| | | tempPPCell.PackagingPlanRow().Factory() = factory ); |
| | | ppcell.PackagingInventory( iidd.Quantity() ); |
| | | } |
| | | } |
| | | *] |
| | | } |
| | |
| | | if( ccplannames.Size() > 0 ){ |
| | | showlabel := showlabel.Concat( ccshowname.Concat( ccplannames.Concatenate( "ã" ) ) ).Concat( "ï¼"); |
| | | } |
| | | showlabel := showlabel.Concat( 'ã' ); |
| | | showlabel := showlabel.Replace( showlabel.Length() - 1, 1, 'ã' ); |
| | | currentuser := QuintiqUser::CurrentUser().DisplayName(); |
| | | if( WebMessageBox::Question( this, showlabel, 'OK|Cancel' ) = 0 ){ |
| | | InterfaceDataset.PublishPlanReportData( MacroPlan,Archive, cbCustomDemand.Checked() |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Product","title":"产å","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Product"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Factory","title":"å·¥å","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Factory"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StartDate","title":"å¼å§æ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StartDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"ç»ææ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EndDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PackagingCapacity","title":"å
è£
容é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PackagingCapacity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"WarehousingPrice","title":"å
¥åºåä»·(RMB/æ)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"WarehousingPrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OutboundPrice","title":"åºåºåä»·(RMB/æ)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OutboundPrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PackagePrice","title":"å
è£
åä»·(RMB/pcs)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PackagePrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnpackingPrice","title":"æå
åä»·(RMB/pcs)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"UnpackingPrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"BufferPaperPrice","title":"ç¼å²çº¸åä»·(RMB/æ)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"BufferPaperPrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StoragePrice","title":"ä»å¨åä»·(RMB/æ)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StoragePrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"WoodenCratePrice","title":"æ¨ç®±åä»·","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"WoodenCratePrice"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Product","title":"产å","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Product"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Factory","title":"å·¥å","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Factory"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StartDate","title":"å¼å§æ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StartDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"ç»ææ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EndDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PackagingCapacity","title":"å
è£
容é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PackagingCapacity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"WarehousingPrice","title":"å
¥åºåä»·(RMB/æ)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"WarehousingPrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OutboundPrice","title":"åºåºåä»·(RMB/æ)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OutboundPrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PackagePrice","title":"å
è£
åä»·(RMB/pcs)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PackagePrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnpackingPrice","title":"æå
åä»·(RMB/pcs)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"UnpackingPrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"BufferPaperPrice","title":"ç¼å²çº¸åä»·(RMB/pcs)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"BufferPaperPrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StoragePrice","title":"ä»å¨åä»·(RMB/æ)","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StoragePrice"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"WoodenCratePrice","title":"æ¨ç®±åä»·","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"WoodenCratePrice"}}]' |
| | | ContextMenu: 'listContextMenuLogisticsCostMachining' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | return not isnull( MacroPlan ) and not isnull( InterfaceDataset ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | PackagingPlanCell::GenerateReport( MacroPlan ); |
| | | PackagingPlanCell::GenerateReport( MacroPlan, InterfaceDataset ); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | *] |
| | |
| | | dataType: 'real' |
| | | index: 9 |
| | | subtotals: '' |
| | | width: 135 |
| | | width: 146 |
| | | } |
| | | column_StoragePrice |
| | | { |