Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev
已重命名7个文件
已复制5个文件
已修改25个文件
已添加37个文件
已删除5个文件
| | |
| | | } |
| | | } |
| | | |
| | | //traverse( version, OfflinePlanTable, table ){ |
| | | // traverse( table, OfflinePlanColumn, column, column.ColumnDate() >= startdate and column.ColumnDate() <= enddate ){ |
| | | // traverse( column, OfflinePlanCell, cell, ( werk = 'All' or cell.OfflinePlanRow().ProductionLine().FindString( werk, 0 ) > -1 ) |
| | | // and ( cell.OfflinePlanRow().ProductionLine() <> 'DL_MOMO' or cell.OfflinePlanRow().ProductionLine() <> 'CC_MOMO' ) |
| | | // and cell.OfflinePlanRow().Type() = '1' ){ |
| | | // row := cell.OfflinePlanRow(); |
| | | // if( not exists( productids, Elements, e, e = row.ProductID() ) ){ |
| | | // productids.Add( row.ProductID() ); |
| | | // } |
| | | // pirdata := selectobject( pir, PIRData, pirdata, pirdata.Product() = row.ProductID() and pirdata.PlanningDate() = column.ColumnDate() ); |
| | | // if( isnull( pirdata ) ){ |
| | | // pirdata := pir.PIRData( relnew, Product := row.ProductID() |
| | | // , PlanningDate := column.ColumnDate() |
| | | // , PlanningQty := 0 ); |
| | | // } |
| | | // pirdata.PlanningQty( pirdata.PlanningQty() + [Number]cell.Value() ); |
| | | // } |
| | | // } |
| | | //} |
| | | traverse( owner, OfflinePlanArchiveVersion, table ){ |
| | | traverse( table, Column, column, column.StartDate() >= startdate and column.StartDate() <= enddate ){ |
| | | traverse( column, Cell, cell, ( werk = 'All' or cell.Row().ProductionLine().FindString( werk, 0 ) > -1 ) |
| | | and ( cell.Row().ProductionLine() <> 'DL_MOMO' or cell.Row().ProductionLine() <> 'CC_MOMO' ) |
| | | and cell.Row().Type() = '1' ){ |
| | | row := cell.Row(); |
| | | if( not exists( productids, Elements, e, e = row.ProductID() ) ){ |
| | | productids.Add( row.ProductID() ); |
| | | } |
| | | pirdata := selectobject( pir, PIRData, pirdata, pirdata.Product() = row.ProductID() and pirdata.PlanningDate() = column.StartDate() ); |
| | | if( isnull( pirdata ) ){ |
| | | pirdata := pir.PIRData( relnew, Product := row.ProductID() |
| | | , PlanningDate := column.StartDate() |
| | | , PlanningQty := 0 ); |
| | | } |
| | | pirdata.PlanningQty( pirdata.PlanningQty() + [Number]cell.Value() ); |
| | | } |
| | | } |
| | | } |
| | | traverse( productids, Elements, e ){ |
| | | for( date := startdate.StartOfWeek(); date <= enddate; date := ( date + Duration::Days( 1 ) ).Date() ){ |
| | | if( not exists( pir, PIRData, pirdata, pirdata.Product() = e and pirdata.PlanningDate() = date ) ){ |
| | |
| | | and tempLCE.StartDate() <= dlerc.StartDate() and tempLCE.EndDate() >= dlerc.StartDate().StartOfNextMonth() ); |
| | | |
| | | // ææ¶ææ¬åæ° |
| | | lcmr := select( macroPlan, LogisticsCostMaterialRack, tempLCMR, tempLCMR.Factory() = "é¿æ¥å·¥å" |
| | | lcmr := select( macroPlan, LogisticsCostMaterialRack, tempLCMR, tempLCMR.Factory() = "大è¿å·¥å" |
| | | and tempLCMR.StartDate() <= dlerc.StartDate() and tempLCMR.EndDate() >= dlerc.StartDate().StartOfNextMonth() ); |
| | | |
| | | // è¿è¾ææ¬åæ° |
| | |
| | | tempPIT.Trip().LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP().ID() = "大è¿å卿ºçé¿æ¥å¤ç§åº", |
| | | tempPIT.Quantity() |
| | | ); |
| | | |
| | | cell.CCLineHaulCost( [Number] ( guard( transportationQuantity2 / lce.PackagingCapacity() / lct1.LoadingCapacity(), 0 ) * guard( lct1.TransportPrice(), 1 ) ) ); |
| | | |
| | | // CCçéè¿è¾è´¹ç¨ï¼è°æ¨æ°é / å
è£
容é / è£
载容é * ææ¶è¿è¾åä»· |
| | |
| | | |
| | | // DLå¤ç§åºå
¥åºè´¹ç¨ï¼å卿ºå
¥åºé / å
è£
容éï¼åä¸åæ´ï¼* ææ¶å
¥åºåä»· |
| | | inventoryQuantity := sum( macroPlan, SalesDemand.astype( Forecast ), tempF, |
| | | tempF.Product_MP().Generation() = dlerr.Generation() and |
| | | tempF.Product_MP().MQBMLB() = dlerr.MLB_MQB() and |
| | | tempF.StockingPointID() = "大è¿å¤ç§åº" and |
| | | ( tempF.StartDate() - 2 ).Year() = dlerc.StartDate().Year() and |
| | | ( tempF.StartDate() - 2 ).Month() = dlerc.StartDate().Month(), |
| | | tempF.Product_MP().Generation() = dlerr.Generation() and |
| | | tempF.Product_MP().MQBMLB() = dlerr.MLB_MQB() and |
| | | tempF.StockingPointID() = "大è¿å¤ç§åº" and |
| | | tempF.StartDate() >= ( dlerc.StartDate() - 2 ) and |
| | | tempF.StartDate() <= ( lastDayOfThisMonth - 2 ), |
| | | tempF.FulfilledQuantity() ); |
| | | // info( "æ¶é´ï¼", dlerc.StartDate().Format( "Y-M2-D2" ), " å
¥åºæ°éï¼", inventoryQuantity, " å
è£
容éï¼", guard( lce.PackagingCapacity(), 0 ), |
| | | // " è£
载容éï¼", guard( lct1.LoadingCapacity(), 0 ) ); // æµè¯è¾åº |
| | | cell.DLStorageFeesForRentedWarehouses( [Number] ( guard( inventoryQuantity / lce.PackagingCapacity(), 0 ) * guard( lcmr.WarehousingPrice(), 1 ) ) ); |
| | | cell.DLStorageFeesForRentedWarehouses( [Number] ( guard( inventoryQuantity / lce.PackagingCapacity(), 0 ) * guard( lce.WarehousingPrice(), 1 ) ) ); |
| | | |
| | | // DLå¤ç§åºåºåºè´¹ç¨ï¼å卿ºåºåºé / ææ¶å®¹éï¼åä¸åæ´ï¼* ææ¶åºåºåä»· |
| | | outboundQuantity := sum( macroPlan, Product_MP.ProductInStockingPoint_MP.ProductInStockingPointInPeriodPlanning.astype( ProductInStockingPointInPeriodPlanningLeaf ), tempPISPIPPL, |
| | | tempPISPIPPL.ProductInStockingPoint_MP().Product_MP().Generation() = dlerr.Generation() and |
| | | tempPISPIPPL.ProductInStockingPoint_MP().Product_MP().MQBMLB() = dlerr.MLB_MQB() and |
| | | tempPISPIPPL.ProductInStockingPoint_MP().StockingPointID() = "大è¿åºå
åº" and |
| | | tempPISPIPPL.ProductInStockingPoint_MP().StockingPointID() = "大è¿åå
åº" and |
| | | tempPISPIPPL.Start().Date() >= dlerc.StartDate() and |
| | | tempPISPIPPL.End().Date() <= lastDayOfThisMonth, |
| | | tempPISPIPPL.NewSupplyQuantity() ); |
| | | // info( "æ°éï¼", outboundQuantity, " å
è£
èåï¼", guard( lce.PackagingCapacity(), 0 ), " åºåºåä»·ï¼", guard( lcmr.OutboundPrice(), 0 ) ); |
| | | cell.DLOutboundExpensesForRentedWarehouses( [Number] ( guard( outboundQuantity / lce.PackagingCapacity(), 0 ) * guard( lcmr.OutboundPrice(), 1 ) ) ); |
| | | |
| | | // DLå¤ç§åºè¿è¾è´¹ç¨ï¼å卿ºè¿è¾é / å
è£
容é / è£
载容éï¼åä¸åæ´ï¼* ææ¶è¿è¾åä»· |
| | |
| | | tempF.Product_MP().Generation() = dlerr.Generation() and |
| | | tempF.Product_MP().MQBMLB() = dlerr.MLB_MQB() and |
| | | tempF.StockingPointID() = "大è¿å卿ºçé¿æ¥å¤ç§åº" and |
| | | ( tempF.StartDate() - 2 ).Year() = dlerc.StartDate().Year() and |
| | | ( tempF.StartDate() - 2 ).Month() = dlerc.StartDate().Month(), |
| | | tempF.FulfilledQuantity() ); |
| | | cell.CleaningCost( [Number] ( guard( clearnQuantity / lce.PackagingCapacity(), 0 ) * guard( lcmr.CleanPrice(), 1 ) ) ); |
| | | tempF.StartDate().Year() = dlerc.StartDate().Year() and |
| | | tempF.StartDate().Month() = dlerc.StartDate().Month(), |
| | | tempF.Quantity() ); |
| | | // info( "æ°éï¼", clearnQuantity, " å
è£
容éï¼", guard( lce.PackagingCapacity(), 0 ), " æ¸
æ´åä»·ï¼", guard( lcmr.CleanPrice(), 0 ) ); |
| | | cell.CCCleaningCost( [Number] ( guard( clearnQuantity / lce.PackagingCapacity(), 0 ) * guard( lcmr.CleanPrice(), 1 ) ) ); |
| | | |
| | | // DLå¤ç§åºæ¸
æ´è´¹ç¨ï¼å卿ºå
¥åºé / å
è£
容é * ææ¶æ¸
æ´åä»·ãå卿ºå
¥åºéåå卿ºééï¼å
è£
容éåèªå卿ºææ¬è¡¨ãææ¶æ¸
æ´åä»·åææ¶ææ¬è¡¨ã |
| | | cell.CleaningCost( [Number] ( guard( outboundQuantity / lce.PackagingCapacity(), 0 ) * guard( lcmr.CleanPrice(), 1 ) ) ); |
| | |
| | | owner.FPImportData( relflush ); |
| | | ccunit := FinancialProductionReport::GetDefaultCCUnit(); |
| | | dlunit := FinancialProductionReport::GetDefaultDLUnit(); |
| | | //allunit := FinancialProductionReport::GetDefaultAllUnit(); |
| | | source := owner.FinancialProductionSource( relnew, IsImport := false, Name := FinancialProductionReport::GetDefaultName() ); |
| | | table := source.FinancialProductionReport( relnew, ID := source.Name(), Name := source.Name(), IsImport := false ); |
| | | source.FinancialProductionReport( relnew, ID := source.Name() + 'Show', Name := source.Name(), IsImport := false, IsShow := true ); |
| | |
| | | |
| | | if( iscc or isdl ){ |
| | | traverse( stockingpoint, ProductInStockingPoint_MP, pisp, pisp.Product_MP().IsLeaf() |
| | | and exists( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and pispip.Period_MP().StartDate() < startofnextyear and pispip.NewSupplyQuantity() <> 0 ) ){ |
| | | and exists( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and ( pispip.Start() + Duration::Days( 1 ) ).Date() < startofnextyear and pispip.NewSupplyQuantity() <> 0 ) ){ |
| | | //è·åå·¥åè¡ |
| | | factoryrow := table.GetRowByUnit( pisp.Product_MP(), ifexpr( iscc, ccunit, dlunit ) ); |
| | | //è·ååè®¡è¡ |
| | | // allrow := table.GetRowByUnit( pisp.Product_MP(), allunit ); |
| | | productids.Add( pisp.ProductID() ); |
| | | //å½product planningçæ¥æåºé´å¨éè¦çæ¥æåºé´å
|
| | | traverse( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and pispip.Period_MP().StartDate() < startofnextyear and pispip.NewSupplyQuantity() <> 0 ){ |
| | | dayperiodtime := pispip.Start().Date(); |
| | | traverse( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and ( pispip.Start() + Duration::Days( 1 ) ).Date() < startofnextyear and pispip.NewSupplyQuantity() <> 0 ){ |
| | | dayperiodtime := ( pispip.Start() + Duration::Days( 1 ) ).Date(); |
| | | dayperiodname := dayperiodtime.Format( "M2/D2/Y" ); |
| | | periodtime := dayperiodtime.StartOfMonth(); |
| | | periodname := periodtime.Format( "M2/D2/Y" ); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | //factorys := selectset( owner, Factory, factory, factory.ID() = FinancialProductionReport::GetDefaultAllUnit() ); |
| | | //showtable.Generate( search, factorys, productids ); |
| | | *] |
| | | } |
| | |
| | | } |
| | | owner.FSImportData( relflush ); |
| | | productids := construct( Strings ); |
| | | //allunit := FinancialSalesReport::GetDefaultAllUnit(); |
| | | ccunit := FinancialSalesReport::GetDefaultCCUnit(); |
| | | dlunit := FinancialSalesReport::GetDefaultDLUnit(); |
| | | ccsalessegment := FinancialSalesReport::GetSalesSegmentCC(); |
| | |
| | | table.GenerateColumn( owner ); |
| | | |
| | | //é¦å
å¨forecastç颿¥æ¾sales segmentä¸ºé¿æ¥çææéæ±ï¼è¯å«åºMLBçææäº§åï¼æ¯ä¸ªäº§åæææ±æ»éæ±æ°é |
| | | traverse( owner, SalesDemand.astype( Forecast ), forecast, not isnull( forecast.SalesSegment_MP() ) and forecast.StartDate() <= startofnextyear and forecast.Quantity() <> 0 |
| | | traverse( owner, SalesDemand.astype( Forecast ), forecast, not isnull( forecast.SalesSegment_MP() ) and ( forecast.StartDate() + Duration::Days( 1 ) ).Date() < startofnextyear and forecast.Quantity() <> 0 |
| | | and exists( forecast, PlanningSalesDemandInPeriod, psdip, psdip.Quantity() <> 0 ) ){ |
| | | salessegment := forecast.SalesSegment_MP(); |
| | | parentsalessegments := salessegment.GetAllParent(); |
| | |
| | | //ForecastçSales Segmentä¸ºé¿æ¥ï¼è¯å«åºMLBçææäº§åæ±æ» |
| | | //大è¿è´¢å¡ééï¼é¦å
å¨forecastç颿¥æ¾Sales Segmentæ¯å¤©æ´¥åä½å±±çææéæ±ï¼æ¯ä¸ªäº§åæææ±æ»éæ±æ°é and forecast.Product_MP().MQBMLB() = 'MLB' ) |
| | | if( ( iscc and product.MQBMLB() = 'MLB' ) or ( isccrent and product.MQBMLB() = 'MQB' ) or isdl ){ |
| | | |
| | | //è·ååè®¡è¡ |
| | | // allrow := table.GetRow( allunit, product ); |
| | | //è·åå·¥åè¡ |
| | | factoryrow := table.GetRow( ifexpr( isdl, dlunit, ccunit ), product ); |
| | | |
| | | productids.Add( forecast.ProductID() ); |
| | | traverse( forecast, PlanningSalesDemandInPeriod, psdip, psdip.Quantity() <> 0 ){ |
| | | dayperiodtime := psdip.StartDate(); |
| | | traverse( forecast, PlanningSalesDemandInPeriod, psdip, psdip.Quantity() <> 0 and ( psdip.StartDate() + Duration::Days( 1 ) ).Date() < startofnextyear ){ |
| | | dayperiodtime := ( psdip.StartDate() + Duration::Days( 1 ) ).Date();//psdip.StartDate(); |
| | | dayperiodname := dayperiodtime.Format( "M2/D2/Y" ); |
| | | periodtime := psdip.StartDate().StartOfMonth(); |
| | | periodtime := dayperiodtime.StartOfMonth(); |
| | | periodname := periodtime.Format( "M2/D2/Y" ); |
| | | // info( '-------------------------', periodname, periodtime ); |
| | | daycolumn := selectobject( table, FinancialSalesColumn, column, column.Name() = dayperiodname and column.Period() = dayperiodtime and column.IsDay() ); |
| | |
| | | |
| | | factoryrow.Initialize( column, quantity ); |
| | | factoryrow.Initialize( daycolumn, quantity ); |
| | | // allrow.Initialize( column, quantity ); |
| | | } |
| | | } |
| | | } |
| | | //ä»Product planningæ¥æ¾åºåç¹ä¸ºå¤§è¿å卿ºçé¿æ¥å¤ç§åºï¼åNew supplyåæ®µæææ±æ»éæ±æ°é |
| | | traverse( owner, StockingPoint_MP, stockingpoint, stockingpoint.ID() = '大è¿å卿ºçé¿æ¥å¤ç§åº' ){ |
| | | traverse( stockingpoint, ProductInStockingPoint_MP, pisp, pisp.Product_MP().IsLeaf() |
| | | and exists( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and pispip.Period_MP().StartDate() < startofnextyear |
| | | and exists( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and ( pispip.Start() + Duration::Days( 1 ) ).Date() < startofnextyear |
| | | and ( pispip.DependentDemandAndSalesDemandQuantity() <> 0 or pispip.NewSupplyQuantity() <> 0 ) ) ){//产å为MQB |
| | | product := pisp.Product_MP(); |
| | | // allrow := table.GetRow( allunit, product ); |
| | | factoryrow := table.GetRow( dlunit, product ); |
| | | productids.Add( pisp.ProductID() ); |
| | | traverse( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() |
| | | and pispip.Period_MP().StartDate() < startofnextyear |
| | | and ( pispip.Start() + Duration::Days( 1 ) ).Date() < startofnextyear |
| | | and ( pispip.DependentDemandAndSalesDemandQuantity() <> 0 or pispip.NewSupplyQuantity() <> 0 ) ){ |
| | | dayperiodtime := pispip.Start().Date(); |
| | | dayperiodtime := ( pispip.Start() + Duration::Days( 1 ) ).Date();//pispip.Start().Date(); |
| | | dayperiodname := dayperiodtime.Format( "M2/D2/Y" ); |
| | | periodtime := dayperiodtime.StartOfMonth(); |
| | | periodname := periodtime.Format( "M2/D2/Y" ); |
| | |
| | | |
| | | factoryrow.Initialize( column, quantity );//åTotal Demandåæ®µæææ±æ»éæ±æ°é |
| | | factoryrow.Initialize( daycolumn, quantity ); |
| | | // allrow.Initialize( column, quantity ); |
| | | } |
| | | } |
| | | // } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute LineLayingOrEmptying |
| | | { |
| | | #keys: '3[415754.0.554840210][415754.0.554840209][415754.0.554840211]' |
| | | Description: 'éºçº¿æè
æç©º' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod PostLayingProcessing ( |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | Description: 'éºçº¿åç»å¤ç' |
| | | } |
| | |
| | | // info( "å½å产线ï¼", pl, " å¤çæç©º--------------------------" ); |
| | | traverse ( drainPs, Elements, p ) { |
| | | traverse ( p, ExplicitTimeInterval, eti ) { |
| | | // 设置åå
æ ¼ä¸ºæç©º |
| | | NewAssemblyOnlinePlanCell::SetLineLayingOrEmptyingStatus( macroPlan, eti.Start().Date(), "æç©º", pl ); |
| | | |
| | | // info( "å¼å§æ¶é´ï¼", eti.Start().Format( "Y-M2-D2" ), " ç»ææ¶é´ï¼", eti.End().Format( "Y-M2-D2" ) ); |
| | | naopc := select( macroPlan, NewAssemblyOnlinePlanColumn, tempNAOPC, tempNAOPC.StartDate() = ( eti.Start().Date() - 1 ) ); |
| | | |
| | |
| | | // å¤çéºçº¿ |
| | | traverse ( lineLyingPs, Elements, p ) { |
| | | traverse ( p, ExplicitTimeInterval, eti ) { |
| | | // 设置åå
æ ¼ä¸ºæç©º |
| | | NewAssemblyOnlinePlanCell::SetLineLayingOrEmptyingStatus( macroPlan, eti.Start().Date(), "éºçº¿", pl ); |
| | | |
| | | info( "å¼å§æ¶é´ï¼", eti.Start().Format( "Y-M2-D2" ), " ç»ææ¶é´ï¼", eti.End().Format( "Y-M2-D2" ) ); |
| | | |
| | | cell := minselect( macroPlan, NewAssemblyOnlinePlanRow.NewAssemblyOnlinePlanCell, tempNAOPCell, |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | // å¤çéºçº¿åç»å¤ç |
| | | NewAssemblyOnlinePlanCell::PostLayingProcessing( macroPlan ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SetLineLayingOrEmptyingStatus ( |
| | | MacroPlan macroPlan, |
| | | Date date, |
| | | String status, |
| | | String pl |
| | | ) |
| | | { |
| | | Description: '设置åå
æ ¼éºçº¿æè
æç©ºç¶æ' |
| | | TextBody: |
| | | [* |
| | | cells := selectset( macroPlan, NewAssemblyOnlinePlanRow.NewAssemblyOnlinePlanCell, tempNAOPCell, |
| | | tempNAOPCell.NewAssemblyOnlinePlanRow().ProductionLine() = pl and |
| | | tempNAOPCell.NewAssemblyOnlinePlanColumn().StartDate() = date and |
| | | tempNAOPCell.NewAssemblyOnlinePlanRow().Type() = "1" ); |
| | | |
| | | traverse ( cells, Elements, c ) { |
| | | c.LineLayingOrEmptying( status ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method GetRow ( |
| | | const AssemblyOnlinePlanRow aoprow |
| | | const NewOfflinePlanRow noprow |
| | | ) as OfflinePlanArchiveRow |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Oct-11-2024 (created) |
| | | row := selectobject( this, Row, row, row.ProductID() = aoprow.ProductID() and row.ProductionLine() = aoprow.ProductionLine() and row.Type() = aoprow.Type() ); |
| | | row := selectobject( this, Row, row, row.ProductID() = noprow.ProductID() and row.ProductionLine() = noprow.ProductionLine() and row.Type() = noprow.Type() ); |
| | | |
| | | if( isnull( row ) ){ |
| | | row := this.Row( relnew, ProductID := aoprow.ProductID(), ProductionLine := aoprow.ProductionLine(), Type := aoprow.Type() ); |
| | | row := this.Row( relnew, ProductID := noprow.ProductID(), ProductionLine := noprow.ProductionLine(), Type := noprow.Type() ); |
| | | //åå§ååå
æ ¼ |
| | | row.InitializeCell(); |
| | | } |
| | |
| | | { |
| | | TextBody: |
| | | [* |
| | | //æ ¹æ®å½åçæ¬çè£
é
ä¸çº¿è®¡å |
| | | allunit := AssemblyOnlinePlanVersion::GetDefaultAllUnit(); |
| | | name := AssemblyOnlinePlanVersion::GetDefaultName(); |
| | | search := interface.AssemblyOnlinePlanVersionSearch( relnew, Product := allunit, ProductionLine := allunit, TimeUnit := Translations::MP_GlobalParameters_Day(), Unit := allunit, StartDate := Date::MinDate(), EndDate := Date::MaxDate() ); |
| | | table := selectobject( interface, AssemblyOnlinePlanVersion, version, not version.IsShow() ); |
| | | //æ ¹æ®å½åçæ¬çä¸çº¿è®¡å |
| | | allunit := OfflinePlanArchiveVersion::GetDefaultAllUnit(); |
| | | name := OfflinePlanArchiveVersion::GetDefaultName(); |
| | | search := interface.OfflinePlanArchiveSearch( relnew, Product := allunit, ProductionLine := allunit, TimeUnit := Translations::MP_GlobalParameters_Day(), Unit := allunit, StartDate := Date::MinDate(), EndDate := Date::MaxDate() ); |
| | | table := selectobject( interface, OfflinePlanArchiveVersion, version, not version.IsShow() ); |
| | | if( isnull( table ) ){ |
| | | table := interface.AssemblyOnlinePlanVersion( relnew, ID := name, Name := name ); |
| | | table := interface.OfflinePlanArchiveVersion( relnew, ID := name, Name := name ); |
| | | } |
| | | showtable := selectobject( interface, AssemblyOnlinePlanVersion, version, version.IsShow() ); |
| | | showtable := selectobject( interface, OfflinePlanArchiveVersion, version, version.IsShow() ); |
| | | if( isnull( table ) ){ |
| | | showtable := interface.AssemblyOnlinePlanVersion( relnew, ID := name, Name := name, IsShow := true ); |
| | | showtable := interface.OfflinePlanArchiveVersion( relnew, ID := name, Name := name, IsShow := true ); |
| | | } |
| | | aopcolumns := selectuniquevalues( macroPlan, AssemblyOnlinePlanColumn, aopcolumn, not exists( table, Column, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() and column.StartDate() = aopcolumn.ColumnDate() ), aopcolumn.ColumnDate() ); |
| | | table.GenerateColumn( aopcolumns, search.TimeUnit(), search.StartDate(), search.EndDate() ); |
| | | traverse( macroPlan, AssemblyOnlinePlanRow, aoprow ){ |
| | | row := table.GetRow( aoprow ); |
| | | traverse( aoprow, AssemblyOnlinePlanCell, aopcell ){ |
| | | column := selectobject( table, Column, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() and column.StartDate() = aopcell.AssemblyOnlinePlanColumn().ColumnDate() ); |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | cell.InventoryWeight( aopcell.InventoryWeight() ); |
| | | cell.ProductionSerialNumber( aopcell.ProductionSerialNumber() ); |
| | | cell.Quantity( aopcell.Quantity() ); |
| | | cell.Shift( aopcell.Shift() ); |
| | | cell.Value( aopcell.Value() ); |
| | | nopcolumns := selectuniquevalues( macroPlan, NewOfflinePlanTable.NewOfflinePlanColumn, nopcolumn, not exists( table, Column, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() and column.StartDate() = nopcolumn.StartDate() ), nopcolumn.StartDate() ); |
| | | table.GenerateColumn( nopcolumns, search.TimeUnit(), search.StartDate(), search.EndDate() ); |
| | | traverse( macroPlan, NewOfflinePlanTable, noptable ){ |
| | | |
| | | traverse( noptable, NewOfflinePlanRow, noprow ){ |
| | | row := table.GetRow( noprow ); |
| | | traverse( noprow, NewOfflinePlanCell, nopcell ){ |
| | | column := selectobject( table, Column, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() and column.StartDate() = nopcell.NewOfflinePlanColumn().StartDate() ); |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | cell.InventoryWeight( nopcell.InventoryWeight() ); |
| | | // cell.ProductionSerialNumber( nopcell.ProductionSerialNumber() ); |
| | | cell.Quantity( nopcell.Quantity() ); |
| | | // cell.Shift( nopcell.Shift() ); |
| | | // cell.Value( nopcell.Value() ); |
| | | } |
| | | } |
| | | } |
| | | //showtable.Generate( search, products ); |
| | |
| | | |
| | | value := ifexpr( this.PackagingPlanRow().Factory() = "é¿æ¥å·¥å", this.CC_PackagingInventory(), |
| | | this.InitialPackagingInventory() + guard( this.Previous().PackagingInventory() + |
| | | guard( this.Package(), 0.0 ) - |
| | | ifexpr( this.TransferIn() > 0.0, 0, this.Unpacking() ), |
| | | 0.0 ) |
| | | - this.Out() |
| | | this.TransferIn() + |
| | | guard( this.Package(), 0.0 ) - |
| | | ifexpr( this.TransferIn() > 0.0, 0, this.Unpacking() ), |
| | | 0.0 ) |
| | | - this.Out() |
| | | ); |
| | | |
| | | this.PackagingInventory( value ); |
| | |
| | | // åéæ±&å©ä½åºå&ä¾åºé |
| | | cell.NetDemand( cell.NetDemand() + pispipl.DependentDemandAndSalesDemandQuantity() ); |
| | | cell.EndingInventory( cell.EndingInventory() + pispipl.InventoryLevelEnd() ); |
| | | cell.NewSupply( cell.NewSupply() + pispipl.NewSupplyQuantity() ); |
| | | } |
| | | |
| | | // é¿æ¥å·¥åè®¾ç½®å¼ |
| | | if ( factory = "é¿æ¥å·¥å" ) { |
| | | // å©ä½åºå&ä¾åºé |
| | | cell.EndingInventory( cell.EndingInventory() + pispipl.InventoryLevelEnd() ); |
| | | cell.NewSupply( cell.NewSupply() + pispipl.NewSupplyQuantity() ); |
| | | |
| | | // åéæ±ãåªå线边åºã&å
è£
åºå&éå
è£
åºå |
| | | if ( pisp.StockingPointID().Regex( "å¤ç§åº" ) ) { |
| | |
| | | } |
| | | } |
| | | |
| | | // 设置New Supplyï¼çº¯çäº§å¼ |
| | | traverse ( pispipl, NewSupply, ns, ns.PeriodTask_MP().istype( PeriodTaskOperation ) ) { |
| | | cell.NewSupply( cell.NewSupply() + ns.Quantity() ); |
| | | } |
| | | |
| | | // 设置åä¸å¤©åºå |
| | | if ( pispipl.Start().Date() = macroPlan.StartOfPlanning().Date() ) { |
| | | prePISPIPL := pispipl.PreviousPlanningPISPIP().astype( ProductInStockingPointInPeriodPlanningLeaf ); // åä¸ä¸ªpispippl |
| | |
| | | #parent: #root |
| | | TypeRepresentation NewAssemblyOnlinePlanCell |
| | | { |
| | | AttributeRepresentation LineLayingOrEmptying |
| | | { |
| | | Alignment: 'Right' |
| | | AttributeKey: '[415754.0.554840209]' |
| | | } |
| | | AttributeRepresentation Order |
| | | { |
| | | Alignment: 'Right' |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component ButtonOfflinePlanArchiveReport |
| | | { |
| | | #keys: '[415136.0.1255420048]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'PAPER_JET' |
| | | Label: 'Offline plan archive' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ActionBarGroupArchiveReport/ButtonOfflinePlanArchiveReport |
| | | Response OnClick () id:Response_MacroPlanner_ActionBarGroupArchiveReport_ButtonOfflinePlanArchiveReport_OnClick |
| | | { |
| | | #keys: '[415136.0.1255420166]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ApplicationScope.ViewManager().ResetUserViewById( "Offline__plan_archive_report", true); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ActionBarGroupPublish/ButtonPublish |
| | | Response OnClick () id:Response_MacroPlanner_ActionBarGroupPublish_ButtonPublish_OnClick |
| | | { |
| | | #keys: '[415136.0.1255982999]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogPublishPlan ); |
| | | |
| | | ApplicationMacroPlanner.ShowFormModal( dlg ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/Component_pnlActions.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlActions |
| | | { |
| | | #keys: '[413988.0.1292313213]' |
| | | #keys: '[415136.0.1255981718]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component btnOk |
| | | { |
| | | #keys: '[413988.0.1292313217]' |
| | | #keys: '[415136.0.1255981722]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | |
| | | } |
| | | Component btnCancel |
| | | { |
| | | #keys: '[413988.0.1292313219]' |
| | | #keys: '[415136.0.1255981724]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlAll id:pnlAll_720 |
| | | { |
| | | #keys: '[415136.0.1255982465]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lblAll |
| | | { |
| | | #keys: '[415136.0.1255982466]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'All' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component cbAll |
| | | { |
| | | #keys: '[415136.0.1255982467]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 5 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlAssembleOnlinePlan id:pnlAssembleOnlinePlan_679 |
| | | { |
| | | #keys: '[415136.0.1255982426]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lblAssembleOnlinePlan |
| | | { |
| | | #keys: '[415136.0.1255982427]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'è£
é
ä¸çº¿è®¡å' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component cbAssembleOnlinePlan |
| | | { |
| | | #keys: '[415136.0.1255982428]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 3 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlContent |
| | | { |
| | | #keys: '[415136.0.1255981716]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: pnlCustomDemand_462 |
| | | #child: pnlOfflinePlan_520 |
| | | #child: pnlAssembleOnlinePlan_679 |
| | | #child: pnlInventoryPlan_119 |
| | | #child: pnlAll_720 |
| | | #child: pnlShiftPlan_780 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Padding: 'true' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlCustomDemand id:pnlCustomDemand_462 |
| | | { |
| | | #keys: '[415136.0.1255981813]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lblCustomDemand |
| | | { |
| | | #keys: '[415136.0.1255981814]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'å
¨å¹´æ¥åº¦éæ±' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component cbCustomDemand |
| | | { |
| | | #keys: '[415136.0.1255981815]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlInventoryPlan id:pnlInventoryPlan_119 |
| | | { |
| | | #keys: '[415136.0.1255982447]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lblInventoryPlan |
| | | { |
| | | #keys: '[415136.0.1255982448]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: '计ååºå' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component cbInventoryPlan |
| | | { |
| | | #keys: '[415136.0.1255982449]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 4 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlOfflinePlan id:pnlOfflinePlan_520 |
| | | { |
| | | #keys: '[415136.0.1255981829]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lblOfflinePlan |
| | | { |
| | | #keys: '[415136.0.1255981830]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'ä¸çº¿è®¡å' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component cbOfflinePlan |
| | | { |
| | | #keys: '[415136.0.1255981831]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlShiftPlan id:pnlShiftPlan_780 |
| | | { |
| | | #keys: '[415136.0.1255982410]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lblShiftPlan |
| | | { |
| | | #keys: '[415136.0.1255982411]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'çæ¬¡è®¡å' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component cbShiftPlan |
| | | { |
| | | #keys: '[415136.0.1255982412]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method OnOK () id:Method_DialogPublishPlan_OnOK |
| | | { |
| | | #keys: '[415136.0.1255982634]' |
| | | Body: |
| | | [* |
| | | this.ApplyChanges(); |
| | | |
| | | showlabel := 'æ¯å¦åé'; |
| | | plannames := construct( Strings ); |
| | | if( cbCustomDemand.Checked() ){ |
| | | plannames.Add( lblCustomDemand.Label() ); |
| | | } |
| | | if( cbOfflinePlan.Checked() ){ |
| | | plannames.Add( lblOfflinePlan.Label() ); |
| | | } |
| | | if( cbShiftPlan.Checked() ){ |
| | | plannames.Add( lblShiftPlan.Label() ); |
| | | } |
| | | if( cbAssembleOnlinePlan.Checked() ){ |
| | | plannames.Add( lblAssembleOnlinePlan.Label() ); |
| | | } |
| | | if( cbInventoryPlan.Checked() ){ |
| | | plannames.Add( lblInventoryPlan.Label() ); |
| | | } |
| | | |
| | | showlabel := showlabel.Concat( plannames.Concatenate( "ã" ) ).Concat( 'ï¼' ); |
| | | |
| | | if( WebMessageBox::Question( this, showlabel, 'OK|Cancel' ) = 0 ){ |
| | | } |
| | | |
| | | this.Close(); |
| | | *] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/Response_pnlActions_btnCancel_OnClick.def ÐÞ¸Ä |
| | |
| | | #parent: pnlActions/btnCancel |
| | | Response OnClick () id:Response_pnlActions_btnCancel_OnClick |
| | | { |
| | | #keys: '[413988.0.1292313223]' |
| | | #keys: '[415136.0.1255981728]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions/btnOk |
| | | Response OnClick () id:Response_pnlActions_btnOk_OnClick |
| | | { |
| | | #keys: '[415136.0.1255981727]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not ( not cbCustomDemand.Checked() and not cbOfflinePlan.Checked() and not cbShiftPlan.Checked() and not cbAssembleOnlinePlan.Checked() and not cbInventoryPlan.Checked() ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.OnOK(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlAll_720/cbAll |
| | | Response OnChanged () id:Response_pnlAll_720_cbAll_OnChanged |
| | | { |
| | | #keys: '[415136.0.1255982464]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebCheckbox_OnChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( this.Checked() ){ |
| | | cbCustomDemand.Checked( true ); |
| | | cbOfflinePlan.Checked( true ); |
| | | cbShiftPlan.Checked( true ); |
| | | cbAssembleOnlinePlan.Checked( true ); |
| | | cbInventoryPlan.Checked( true ); |
| | | }else{ |
| | | cbCustomDemand.Checked( false ); |
| | | cbOfflinePlan.Checked( false ); |
| | | cbShiftPlan.Checked( false ); |
| | | cbAssembleOnlinePlan.Checked( false ); |
| | | cbInventoryPlan.Checked( false ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
copy from _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/_ROOT_Component_DialogUpperLimitOfTransferCapacity.def
copy to _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/_ROOT_Component_DialogPublishPlan.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/_ROOT_Component_DialogUpperLimitOfTransferCapacity.def ¸´ÖÆ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent DialogUpperLimitOfTransferCapacity |
| | | OrphanComponent DialogPublishPlan |
| | | { |
| | | #keys: '[413988.0.1292313209]' |
| | | #keys: '[415136.0.1255981714]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | |
| | | EnterButton: 'btnOk' |
| | | EscapeButton: 'btnCancel' |
| | | ExcludeFromActiveComponent: true |
| | | Image: 'INBOX_OUT' |
| | | Padding: 'false' |
| | | Title: 'åå¸è®¡å' |
| | | ] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | this.ApplyChanges(); |
| | | info( '------------------',cbCustomDemand.Checked() |
| | | ,cbOfflinePlan.Checked() |
| | | ,cbShiftPlan.Checked() |
| | | ,cbAssembleOnlinePlan.Checked() |
| | | ,cbInventoryPlan.Checked() |
| | | ,cbTRCDemand.Checked() |
| | | ,cbTransferPlan.Checked() |
| | | ,cbPackagePlan.Checked() ); |
| | | showlabel := 'æ¯å¦åæ¡£'; |
| | | if( cbCustomDemand.Checked() |
| | | or cbOfflinePlan.Checked() |
| | | or cbShiftPlan.Checked() |
| | | or cbAssembleOnlinePlan.Checked() |
| | | or cbInventoryPlan.Checked() |
| | | or cbTRCDemand.Checked() |
| | | or cbTransferPlan.Checked() |
| | | or cbPackagePlan.Checked() ){ |
| | | |
| | | //showlabel := 'æ¯å¦åæ¡£'; |
| | | //if( cbCustomDemand.Checked() |
| | | // or cbOfflinePlan.Checked() |
| | | // or cbShiftPlan.Checked() |
| | | // or cbAssembleOnlinePlan.Checked() |
| | | // or cbInventoryPlan.Checked() |
| | | // or cbTRCDemand.Checked() |
| | | // or cbTransferPlan.Checked() |
| | | // or cbPackagePlan.Checked() ){ |
| | | showlabel := 'æ¯å¦åæ¡£'; |
| | | plannames := construct( Strings ); |
| | | if( cbCustomDemand.Checked() ){ |
| | |
| | | plannames.Add( lblPackagePlan.Label() ); |
| | | } |
| | | showlabel := showlabel.Concat( plannames.Concatenate( "ã" ) ).Concat( 'ï¼' ); |
| | | info( '*****************************' ); |
| | | // info( '*****************************' ); |
| | | if( WebMessageBox::Question( this, showlabel, 'OK|Cancel' ) = 0 ){ |
| | | } |
| | | }else{ |
| | | info( '************###########*****************' ); |
| | | WebMessageBox::Information( this, 'æªéæ©ä»»ä½è®¡åè¿è¡åæ¡£' ) |
| | | } |
| | | |
| | | //}else{ |
| | | // info( '************###########*****************' ); |
| | | // WebMessageBox::Information( this, 'æªéæ©ä»»ä½è®¡åè¿è¡åæ¡£' ) |
| | | //} |
| | | this.Close(); |
| | | *] |
| | | } |
| | |
| | | { |
| | | #keys: '[415136.0.1249021383]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not ( not cbCustomDemand.Checked() and not cbOfflinePlan.Checked() and not cbShiftPlan.Checked() and not cbAssembleOnlinePlan.Checked() and not cbInventoryPlan.Checked() |
| | | and not cbTRCDemand.Checked() and not cbTransferPlan.Checked() and not cbPackagePlan.Checked() ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/Component_pnlCCFactory.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlCCFactory |
| | | Component pCC id:pCC_847 |
| | | { |
| | | #keys: '[413988.1.30911852]' |
| | | #keys: '[413988.1.37281166]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component npUpperLimitOfTransferCapacityZKGCC |
| | | Component CC_ZKG |
| | | { |
| | | #keys: '[413988.1.30912074]' |
| | | #keys: '[413988.1.37281167]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.UpperLimitOfTransferCapacityZKGCC' |
| | | Label: 'ZKG(pcs)' |
| | | Mask: 'NUMBER' |
| | | Min: '0' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component npUpperLimitOfTransferCapacityZKMCC |
| | | Component CC_ZKM |
| | | { |
| | | #keys: '[413988.1.30912108]' |
| | | #keys: '[413988.1.37281168]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.UpperLimitOfTransferCapacityZKMCC' |
| | | Label: 'ZKM(pcs)' |
| | | Mask: 'NUMBER' |
| | | Min: '0' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component npUpperLimitOfTransferCapacityPLCC |
| | | Component CC_PL |
| | | { |
| | | #keys: '[413988.1.30912136]' |
| | | #keys: '[413988.1.37281169]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.UpperLimitOfTransferCapacityPLCC' |
| | | Label: 'PL(pcs)' |
| | | Mask: 'NUMBER' |
| | | Min: '0' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component npUpperLimitOfTransferCapacityKWCC |
| | | Component CC_KW |
| | | { |
| | | #keys: '[413988.1.30912164]' |
| | | #keys: '[413988.1.37281170]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.UpperLimitOfTransferCapacityKWCC' |
| | | Label: 'KW(pcs)' |
| | | Mask: 'NUMBER' |
| | | Min: '0' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component npUpperLimitOfTransferCapacityAGWCC |
| | | Component CC_AGW |
| | | { |
| | | #keys: '[413988.1.30912192]' |
| | | #keys: '[413988.1.37281171]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.UpperLimitOfTransferCapacityAGWCC' |
| | | Label: 'AGW(pcs)' |
| | | Mask: 'NUMBER' |
| | | Min: '0' |
| | | Taborder: 4 |
| | | ] |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/Component_pnlDLFactory.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlDLFactory |
| | | Component pDL id:pDL_545 |
| | | { |
| | | #keys: '[413988.1.30911840]' |
| | | #keys: '[413988.1.37281160]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component npUpperLimitOfTransferCapacityZKG id:npUpperLimitOfTransferCapacityZKG_715 |
| | | Component DL_ZKG |
| | | { |
| | | #keys: '[413988.1.30911967]' |
| | | #keys: '[413988.1.37281161]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.UpperLimitOfTransferCapacityZKG' |
| | | Label: 'ZKG(pcs)' |
| | | Mask: 'NUMBER' |
| | | Min: '0' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component npUpperLimitOfTransferCapacityZKM id:npUpperLimitOfTransferCapacityZKM_844 |
| | | Component DL_ZKM |
| | | { |
| | | #keys: '[413988.1.30911990]' |
| | | #keys: '[413988.1.37281162]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.UpperLimitOfTransferCapacityZKM' |
| | | Label: 'ZKM(pcs)' |
| | | Mask: 'NUMBER' |
| | | Min: '0' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component npUpperLimitOfTransferCapacityPL id:npUpperLimitOfTransferCapacityPL_603 |
| | | Component DL_PL |
| | | { |
| | | #keys: '[413988.1.30912013]' |
| | | #keys: '[413988.1.37281163]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.UpperLimitOfTransferCapacityPL' |
| | | Label: 'PL(pcs)' |
| | | Mask: 'NUMBER' |
| | | Min: '0' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component npUpperLimitOfTransferCapacityKW id:npUpperLimitOfTransferCapacityKW_858 |
| | | Component DL_KW |
| | | { |
| | | #keys: '[413988.1.30912036]' |
| | | #keys: '[413988.1.37281164]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.UpperLimitOfTransferCapacityKW' |
| | | Label: 'KW(pcs)' |
| | | Mask: 'NUMBER' |
| | | Min: '0' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component npUpperLimitOfTransferCapacityAGW id:npUpperLimitOfTransferCapacityAGW_545 |
| | | Component DL_AGW |
| | | { |
| | | #keys: '[413988.1.30912059]' |
| | | #keys: '[413988.1.37281165]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.UpperLimitOfTransferCapacityAGW' |
| | | Label: 'AGW(pcs)' |
| | | Mask: 'NUMBER' |
| | | Min: '0' |
| | | Taborder: 4 |
| | | ] |
copy from _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/Component_pnlActions.def
copy to _Main/UI/MacroPlannerWebApp/Component_DialogULOTC/Component_pnlActions.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/Component_pnlActions.def ¸´ÖÆ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlActions |
| | | { |
| | | #keys: '[413988.0.1292313213]' |
| | | #keys: '[413988.1.35911888]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component btnOk |
| | | { |
| | | #keys: '[413988.0.1292313217]' |
| | | #keys: '[413988.1.35911892]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | |
| | | } |
| | | Component btnCancel |
| | | { |
| | | #keys: '[413988.0.1292313219]' |
| | | #keys: '[413988.1.35911894]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlContent |
| | | { |
| | | #keys: '[413988.1.35911886]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: pnlContent481 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Padding: 'true' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlContent481 |
| | | { |
| | | #keys: '[413988.1.37281159]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: pDL_545 |
| | | #child: pCC_847 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'tab' |
| | | Padding: 'true' |
| | | Taborder: 0 |
| | | ] |
| | | } |
copy from _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/Response_pnlActions_btnCancel_OnClick.def
copy to _Main/UI/MacroPlannerWebApp/Component_DialogULOTC/Response_pnlActions_btnCancel_OnClick.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/Response_pnlActions_btnCancel_OnClick.def ¸´ÖÆ |
| | |
| | | #parent: pnlActions/btnCancel |
| | | Response OnClick () id:Response_pnlActions_btnCancel_OnClick |
| | | { |
| | | #keys: '[413988.0.1292313223]' |
| | | #keys: '[413988.1.35911898]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/Response_pnlActions_btnOk_OnClick.def ÐÞ¸Ä |
| | |
| | | #parent: pnlActions/btnOk |
| | | Response OnClick () id:Response_pnlActions_btnOk_OnClick |
| | | { |
| | | #keys: '[413988.0.1292313222]' |
| | | #keys: '[413988.1.35911897]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogUpperLimitOfTransferCapacity/_ROOT_Component_DialogUpperLimitOfTransferCapacity.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent DialogUpperLimitOfTransferCapacity |
| | | OrphanComponent DialogULOTC |
| | | { |
| | | #keys: '[413988.0.1292313209]' |
| | | #keys: '[413988.1.35911884]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().ProductionLine() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().ProductionLine() <> selection ){ |
| | | dhSearch.Data().ProductionLine( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Product() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Product() <> selection ){ |
| | | dhSearch.Data().Product( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Unit() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Unit() <> selection ){ |
| | | dhSearch.Data().Unit( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | #child: PanelGeneration743 |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Generation() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Generation() <> selection ){ |
| | | dhSearch.Data().Generation( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().MqbMlb() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().MqbMlb() <> selection ){ |
| | | dhSearch.Data().MqbMlb( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Power() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Power() <> selection ){ |
| | | dhSearch.Data().Power( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Product() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Product() <> selection ){ |
| | | dhSearch.Data().Product( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | #keys: '[415136.0.1121750597]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'CustomerDemandIDSSearch' |
| | | Children: |
| | | [ |
| | | Component deSearch |
| | | { |
| | | #keys: '[415136.0.1256142023]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | Source: 'InterfaceDataset' |
| | | Taborder: 0 |
| | | Transformation: 'CustomerDemandIDSSearch' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component MatrixEditorTable |
| | | { |
| | | #keys: '[415136.0.1252790401]' |
| | | BaseType: 'WebMatrixEditor' |
| | | Children: |
| | | [ |
| | | Component MatrixEditorCellTable |
| | | { |
| | | #keys: '[415136.0.1252790402]' |
| | | BaseType: 'WebMatrixEditorCell' |
| | | Children: |
| | | [ |
| | | Component DataExtractorCells |
| | | { |
| | | #keys: '[415136.0.1252790403]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | FilterArguments: 'search:QMacroPlanner::FormAssemblyOnlinePlanVersion.dhSearch' |
| | | FixedFilter: 'object.Column().TimeUnit() = search.TimeUnit() and object.Column().StartDate() >= search.StartDate() and object.Column().StartDate() <= search.EndDate()' |
| | | Source: 'InterfaceDataset' |
| | | Taborder: 0 |
| | | Transformation: 'OfflinePlanArchiveVersion.Row.Cell' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Attributes: 'Value' |
| | | Column: 'Column' |
| | | Row: 'Row' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component MatrixEditorRowsTable |
| | | { |
| | | #keys: '[415136.0.1252790404]' |
| | | BaseType: 'WebMatrixEditorHeaderLevel' |
| | | Children: |
| | | [ |
| | | Component DataExtractorRows |
| | | { |
| | | #keys: '[415136.0.1252790405]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | Description: "( search.Generation() = '<All>' or object.Product_MP().Generation() = search.Generation() ) and ( search.MqbMlb() = '<All>' or object.Product_MP().MQBMLB() = search.MqbMlb() ) and ( search.Power() = '<All>' or object.Product_MP().Power() = search.Power() )" |
| | | FilterArguments: 'search:QMacroPlanner::FormAssemblyOnlinePlanVersion.dhSearch' |
| | | FixedFilter: "( search.Product() = '<All>' or object.ProductID() = search.Product() ) and ( search.ProductionLine() = '<All>' or object.ProductionLine() = search.ProductionLine() )" |
| | | Source: 'InterfaceDataset' |
| | | Taborder: 0 |
| | | Transformation: 'OfflinePlanArchiveVersion.Row' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Legend: 'ProductID' |
| | | SortCriteria: 'ProductID' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component MatrixEditorColumnsTable |
| | | { |
| | | #keys: '[415136.0.1252790406]' |
| | | BaseType: 'WebMatrixEditorHeaderLevel' |
| | | Children: |
| | | [ |
| | | Component DataExtractorColumns |
| | | { |
| | | #keys: '[415136.0.1252790407]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | FilterArguments: 'search:QMacroPlanner::FormAssemblyOnlinePlanVersion.dhSearch' |
| | | FixedFilter: 'object.TimeUnit() = search.TimeUnit() and object.StartDate() >= search.StartDate() and object.StartDate() <= search.EndDate()' |
| | | Source: 'InterfaceDataset' |
| | | Taborder: 0 |
| | | Transformation: 'OfflinePlanArchiveVersion.Column' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Legend: 'ColumnName' |
| | | SortCriteria: 'StartDate' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | #child: matrixEditorActionBarPageTable |
| | | #child: matrixeditorContextMenuTable |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: 'MatrixEditorColumnsTable' |
| | | ContextMenu: 'matrixeditorContextMenuTable' |
| | | Rows: 'MatrixEditorRowsTable' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelHeader |
| | | { |
| | | #keys: '[415136.0.1252790294]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: PanelProduct |
| | | #child: PanelPeriod_858 |
| | | #child: PanelTimeUnit |
| | | #child: PanelOperation |
| | | #child: PanelProductLine_603 |
| | | #child: PanelUnit_844 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelOperation |
| | | { |
| | | #keys: '[415136.0.1252790299]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ButtonSearch |
| | | { |
| | | #keys: '[415136.0.1252790300]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'VIEW' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 5 |
| | | Visible: false |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelPeriod id:PanelPeriod_858 |
| | | { |
| | | #keys: '[415136.0.1252790303]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component DateSelectorStart |
| | | { |
| | | #keys: '[415136.0.1252790304]' |
| | | BaseType: 'WebDateSelector' |
| | | Properties: |
| | | [ |
| | | Label: 'Start date' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component DateSelectorEnd |
| | | { |
| | | #keys: '[415136.0.1252790305]' |
| | | BaseType: 'WebDateSelector' |
| | | Properties: |
| | | [ |
| | | Date: 9999-12-31 |
| | | Label: 'End date' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 3 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelProduct |
| | | { |
| | | #keys: '[415136.0.1252790306]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslProduct |
| | | { |
| | | #keys: '[415136.0.1252790307]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | FixedSize: false |
| | | Label: 'Product' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelProductLine id:PanelProductLine_603 |
| | | { |
| | | #keys: '[415136.0.1252790297]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslMQBMLB |
| | | { |
| | | #keys: '[415136.0.1252790298]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'MQB/MLB' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelTable |
| | | { |
| | | #keys: '[415136.0.1252790400]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: MatrixEditorTable |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelTimeUnit |
| | | { |
| | | #keys: '[415136.0.1252790301]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component RadioButtonGroupUseForTimeUnit |
| | | { |
| | | #keys: '[415136.0.1252790302]' |
| | | BaseType: 'WebRadioButtonGroup' |
| | | Properties: |
| | | [ |
| | | ButtonLabels: 'Day;Week;Month' |
| | | ButtonValues: 'Day;Week;Month' |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | Title: 'Periods' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelUnit id:PanelUnit_844 |
| | | { |
| | | #keys: '[415136.0.1252790295]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslUnit |
| | | { |
| | | #keys: '[415136.0.1252790296]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'Unit' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component matrixEditorActionBarPageTable |
| | | { |
| | | #keys: '[415136.0.1252790408]' |
| | | BaseType: 'matrixEditorActionBarPage' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component matrixeditorContextMenuTable |
| | | { |
| | | #keys: '[415136.0.1252790409]' |
| | | BaseType: 'matrixeditorContextMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelPeriod_858/DateSelectorEnd |
| | | Response OnChanged () id:Response_PanelPeriod_858_DateSelectorEnd_OnChanged |
| | | { |
| | | #keys: '[415136.0.1252790286]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDateTimeFieldBase_OnChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | //æ¥ææ¹ååå·æ°æ¾ç¤º |
| | | if( this.Date() < DateSelectorStart.Date() ){ |
| | | this.HintError( 'The end date cannot be less than the start date!' ); |
| | | }else{ |
| | | if( dhSearch.Data().EndDate() <> this.Date() ){ |
| | | dhSearch.Data().EndDate( this.Date() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelPeriod_858/DateSelectorStart |
| | | Response OnChanged () id:Response_PanelPeriod_858_DateSelectorStart_OnChanged |
| | | { |
| | | #keys: '[415136.0.1252790287]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDateTimeFieldBase_OnChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | //æ¥ææ¹ååå·æ°æ¾ç¤º |
| | | if( this.Date() > DateSelectorEnd.Date() ){ |
| | | this.HintError( 'The start date cannot be later than the end date!' ); |
| | | }else{ |
| | | if( dhSearch.Data().StartDate() <> this.Date() ){ |
| | | dhSearch.Data().StartDate( this.Date() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
copy from _Main/UI/MacroPlannerWebApp/Component_FormCustomerDemandPPAIDS/Response_PanelGeneration743_ddslGeneration859_OnCreated.def
copy to _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanArchive/Response_PanelProductLine_603_ddslMQBMLB_OnCreated.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_FormCustomerDemandPPAIDS/Response_PanelGeneration743_ddslGeneration859_OnCreated.def ¸´ÖÆ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelGeneration743/ddslGeneration859 |
| | | Response OnCreated () id:Response_PanelGeneration743_ddslGeneration859_OnCreated |
| | | #parent: PanelProductLine_603/ddslMQBMLB |
| | | Response OnCreated () id:Response_PanelProductLine_603_ddslMQBMLB_OnCreated |
| | | { |
| | | #keys: '[415136.0.1137311845]' |
| | | #keys: '[415136.0.1252790291]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | values := selectuniquevalues( MacroPlan, Product_MP, tempPMP, true, tempPMP.Generation() ); |
| | | values := selectuniquevalues( InterfaceDataset, AssemblyOnlinePlanVersion.Row, row, true, row.ProductionLine() ); |
| | | |
| | | valueString := values.Concatenate( ";" ); |
| | | valueString := selectuniquevalues( valueString.Tokenize( ";" ), Elements, tempS, true, tempS ).Concatenate( ";" ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelProductLine_603/ddslMQBMLB |
| | | Response OnSelectionChanged () id:Response_PanelProductLine_603_ddslMQBMLB_OnSelectionChanged |
| | | { |
| | | #keys: '[415136.0.1252790290]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownStringList_OnSelectionChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().ProductionLine() <> selection ){ |
| | | dhSearch.Data().ProductionLine( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormCustomerDemandPPAIDS/Response_PanelGeneration743_ddslGeneration859_OnCreated.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelGeneration743/ddslGeneration859 |
| | | Response OnCreated () id:Response_PanelGeneration743_ddslGeneration859_OnCreated |
| | | #parent: PanelProduct/ddslProduct |
| | | Response OnCreated () id:Response_PanelProduct_ddslProduct_OnCreated |
| | | { |
| | | #keys: '[415136.0.1137311845]' |
| | | #keys: '[415136.0.1252790285]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | values := selectuniquevalues( MacroPlan, Product_MP, tempPMP, true, tempPMP.Generation() ); |
| | | values := selectuniquevalues( InterfaceDataset, AssemblyOnlinePlanVersion.Row, row, true, row.ProductID() ); |
| | | |
| | | valueString := values.Concatenate( ";" ); |
| | | valueString := selectuniquevalues( valueString.Tokenize( ";" ), Elements, tempS, true, tempS ).Concatenate( ";" ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelProduct/ddslProduct |
| | | Response OnSelectionChanged () id:Response_PanelProduct_ddslProduct_OnSelectionChanged |
| | | { |
| | | #keys: '[415136.0.1252790284]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownStringList_OnSelectionChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Product() <> selection ){ |
| | | dhSearch.Data().Product( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelTimeUnit/RadioButtonGroupUseForTimeUnit |
| | | Response OnChanged () id:Response_PanelTimeUnit_RadioButtonGroupUseForTimeUnit_OnChanged |
| | | { |
| | | #keys: '[415136.0.1252790289]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebRadioButtonGroup_OnChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | //åºé´æ¹ååå·æ°æ¾ç¤º |
| | | if( dhSearch.Data().TimeUnit() <> this.BoundValue() ){ |
| | | dhSearch.Data().TimeUnit( this.BoundValue() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelTimeUnit/RadioButtonGroupUseForTimeUnit |
| | | Response OnCreated () id:Response_PanelTimeUnit_RadioButtonGroupUseForTimeUnit_OnCreated |
| | | { |
| | | #keys: '[415136.0.1252790288]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.ButtonValues( Translations::MP_GlobalParameters_Day() + ';' + Translations::MP_GlobalParameters_Week() + ';' + Translations::MP_GlobalParameters_Month() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
copy from _Main/UI/MacroPlannerWebApp/Component_FormCustomerDemandPPAIDS/Response_PanelGeneration743_ddslGeneration859_OnCreated.def
copy to _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanArchive/Response_PanelUnit_844_ddslUnit_OnCreated.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_FormCustomerDemandPPAIDS/Response_PanelGeneration743_ddslGeneration859_OnCreated.def ¸´ÖÆ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelGeneration743/ddslGeneration859 |
| | | Response OnCreated () id:Response_PanelGeneration743_ddslGeneration859_OnCreated |
| | | #parent: PanelUnit_844/ddslUnit |
| | | Response OnCreated () id:Response_PanelUnit_844_ddslUnit_OnCreated |
| | | { |
| | | #keys: '[415136.0.1137311845]' |
| | | #keys: '[415136.0.1252790293]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | values := selectuniquevalues( MacroPlan, Product_MP, tempPMP, true, tempPMP.Generation() ); |
| | | values := selectuniquevalues( InterfaceDataset, AssemblyOnlinePlanVersion.Row, row, true, row.Type() ); |
| | | |
| | | valueString := values.Concatenate( ";" ); |
| | | valueString := selectuniquevalues( valueString.Tokenize( ";" ), Elements, tempS, true, tempS ).Concatenate( ";" ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelUnit_844/ddslUnit |
| | | Response OnSelectionChanged () id:Response_PanelUnit_844_ddslUnit_OnSelectionChanged |
| | | { |
| | | #keys: '[415136.0.1252790292]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownStringList_OnSelectionChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Unit() <> selection ){ |
| | | dhSearch.Data().Unit( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent FormOfflinePlanArchive |
| | | { |
| | | #keys: '[415136.0.1252790190]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | Component dhSearch id:dhSearch_715 |
| | | { |
| | | #keys: '[415136.0.1252790226]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'OfflinePlanArchiveSearch' |
| | | Children: |
| | | [ |
| | | Component deSearch |
| | | { |
| | | #keys: '[415136.0.1252790227]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | Source: 'InterfaceDataset' |
| | | Taborder: 0 |
| | | Transformation: 'OfflinePlanArchiveSearch' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | #child: PanelHeader |
| | | #child: PanelTable |
| | | ] |
| | | Properties: |
| | | [ |
| | | Image: 'PAPER_JET' |
| | | Title: 'Offline plan archive' |
| | | ] |
| | | } |
| | |
| | | #keys: '[413988.0.1292330611]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogUpperLimitOfTransferCapacity ); |
| | | dlg := construct( DialogULOTC ); |
| | | |
| | | ApplicationMacroPlanner.ShowFormModal( dlg ); |
| | | *] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | { |
| | | viewcontents |
| | | { |
| | | forms |
| | | { |
| | | form_FormOfflinePlanArchive |
| | | { |
| | | title: 'QMacroPlanner::FormOfflinePlanArchive' |
| | | shown: true |
| | | componentID: 'QMacroPlanner::FormOfflinePlanArchive' |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 1 |
| | | rowSpan: 15 |
| | | columnPosition: 1 |
| | | columnSpan: 12 |
| | | } |
| | | components |
| | | { |
| | | FormOfflinePlanArchive_PanelHeader |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOfflinePlanArchive_PanelUnit |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOfflinePlanArchive_PanelProductLine |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOfflinePlanArchive_PanelProduct |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOfflinePlanArchive_PanelPeriod |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOfflinePlanArchive_PanelTimeUnit |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOfflinePlanArchive_PanelOperation |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOfflinePlanArchive_PanelTable |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOfflinePlanArchive_MatrixEditorTable |
| | | { |
| | | gridColor: '#c4c4c4' |
| | | totalHeaderWidth: 200 |
| | | attributeHeaderWidthRatio: 0.6 |
| | | nameHeaderWidthRatio: 0.4 |
| | | columnWidth: 100 |
| | | horizontalGrid: true |
| | | verticalGrid: true |
| | | backendState |
| | | { |
| | | componentId: 'QMacroPlanner::FormOfflinePlanArchive.MatrixEditorTable' |
| | | state |
| | | { |
| | | cells |
| | | { |
| | | attributes |
| | | { |
| | | attribute_Value |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 0 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'Value' |
| | | } |
| | | } |
| | | } |
| | | columns |
| | | { |
| | | sorting |
| | | { |
| | | criteria: "datamember:'StartDate'" |
| | | } |
| | | } |
| | | rows |
| | | { |
| | | sorting |
| | | { |
| | | criteria: "datamember:'ProductID'" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | page: '' |
| | | group: '' |
| | | index: 30 |
| | | image: 'PAPER_JET' |
| | | description: '' |
| | | } |
| | | formatversion: 2 |
| | | id: 'Offline__plan_archive_report' |
| | | name: 'Offline plan archive report' |
| | | isglobal: false |
| | | isroot: true |
| | | } |
| | |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormPackagingPlan_MatrixEditor493 |
| | | { |
| | | gridColor: '#c4c4c4' |
| | | totalHeaderWidth: 224 |
| | | attributeHeaderWidthRatio: 0.6 |
| | | nameHeaderWidthRatio: 0.4 |
| | | columnWidth: 100 |
| | | horizontalGrid: true |
| | | verticalGrid: true |
| | | backendState |
| | | { |
| | | componentId: 'QMacroPlanner::FormPackagingPlan.MatrixEditor493' |
| | | state |
| | | { |
| | | cells |
| | | { |
| | | attributes |
| | | { |
| | | attribute_NetDemand |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 0 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'NetDemand' |
| | | } |
| | | attribute_NewSupply |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 1 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'NewSupply' |
| | | } |
| | | attribute_EndingInventory |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 2 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'EndingInventory' |
| | | } |
| | | attribute_Out |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 3 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'Out' |
| | | } |
| | | attribute_TransferIn |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 4 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'TransferIn' |
| | | } |
| | | attribute_UnpackagedInventory |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 5 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'UnpackagedInventory' |
| | | } |
| | | attribute_PackagingInventory |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 6 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'PackagingInventory' |
| | | } |
| | | attribute_Package |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 7 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'Package' |
| | | } |
| | | attribute_Unpacking |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 8 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'Unpacking' |
| | | } |
| | | } |
| | | } |
| | | columns |
| | | { |
| | | sorting |
| | | { |
| | | criteria: "datamember:'StartDate'" |
| | | } |
| | | } |
| | | rows |
| | | { |
| | | sorting |
| | | { |
| | | criteria: "datamember:'ProductID';datamember:'StockingPointID'" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormGeneralSettings |