已重命名4个文件
已修改12个文件
已添加5个文件
| | |
| | | , VersionTo := versionto, IsActive := versionflag ); |
| | | loginfo.AOnlineAndMOfflinePlanMS64( relinsert, ms64 ); |
| | | traverse( products, Elements, product, product.IsLeaf() ){ |
| | | ms64.MS64Data( relnew, Product := product.ID() ); |
| | | if( werk = 'All' ){ |
| | | ms64.MS64Data( relnew, Product := product.ID(), Werk := '8200' ); |
| | | ms64.MS64Data( relnew, Product := product.ID(), Werk := '8201' ); |
| | | }else{ |
| | | ms64.MS64Data( relnew, Product := product.ID(), Werk := ms64.Werk() ); |
| | | } |
| | | |
| | | } |
| | | loginfo.TotalRow( ms64.MS64Data( relsize ) ); |
| | | InterfaceLoginfo::CallInterfaceForSAPGet( owner, loginfo ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Werk |
| | | { |
| | | #keys: '3[415136.0.1273010070][415136.0.1273010069][415136.0.1273010071]' |
| | | Description: 'å·¥å' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: Werk |
| | | } |
| | |
| | | loginfo.AOnlineAndMOfflinePlanPIR( relinsert, pir ); |
| | | traverse( owner, AssemblyOnlinePlanVersion, verison, not verison.IsShow() ){ |
| | | traverse( verison, Column, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() and column.StartDate() >= startdate and column.StartDate() <= enddate ){ |
| | | traverse( column, Cell, cell, ( werk = 'All' or cell.Row().ProductionLine().FindString( werk, 0 ) > -1 ) |
| | | and cell.Row().Type() = '1' ){ |
| | | traverse( column, Cell, cell, ( werk = 'All' or cell.Row().Unit().FindString( werk, 0 ) > -1 ) ){ |
| | | quantityrow := cell.Row(); |
| | | rowwerk := ifexpr( quantityrow.ProductionLine().FindString( "CC", 0 ) > -1, AOnlineAndMOfflinePlanPIR::GetWerk( FinancialProductionReport::GetDefaultCCUnit() ), AOnlineAndMOfflinePlanPIR::GetWerk( FinancialProductionReport::GetDefaultDLUnit() ) ); |
| | | if( not exists( productids, Elements, e, e = quantityrow.ProductID() ) ){ |
| | | productids.Add( quantityrow.ProductID() ); |
| | | } |
| | | |
| | | pir.PIRData( relnew, Product := quantityrow.ProductID() |
| | | , PlanningDate := column.StartDate() |
| | | , PlanningQty := [Number]cell.Value()); |
| | | pir.PIRData( relnew, Product := quantityrow.ProductID(), PlanningDate := column.StartDate(), PlanningQty := [Number]cell.Value(), Werk := rowwerk ); |
| | | } |
| | | } |
| | | } |
| | | |
| | | 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' ){ |
| | | traverse( column, Cell, cell, ( werk = 'All' or cell.Row().Unit().FindString( werk, 0 ) > -1 ) |
| | | and ( cell.Row().ProductionLine() <> 'DL_MOMO' or cell.Row().ProductionLine() <> 'CC_MOMO' ) ){ |
| | | row := cell.Row(); |
| | | rowwerk := ifexpr( row.ProductionLine().FindString( "CC", 0 ) > -1, AOnlineAndMOfflinePlanPIR::GetWerk( FinancialProductionReport::GetDefaultCCUnit() ), AOnlineAndMOfflinePlanPIR::GetWerk( FinancialProductionReport::GetDefaultDLUnit() ) ); |
| | | 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 := pir.PIRData( relnew, Product := row.ProductID(), PlanningDate := column.StartDate(), PlanningQty := 0, Werk := rowwerk ); |
| | | } |
| | | 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 ) ){ |
| | | pir.PIRData( relnew, Product := e |
| | | , PlanningDate := date |
| | | , PlanningQty := 0 ); |
| | | if( werk = 'All' ){ |
| | | pir.PIRData( relnew, Product := e, PlanningDate := date, PlanningQty := 0, Werk := '8200' ); |
| | | pir.PIRData( relnew, Product := e, PlanningDate := date, PlanningQty := 0, Werk := '8201' ); |
| | | }else{ |
| | | pir.PIRData( relnew, Product := e, PlanningDate := date, PlanningQty := 0, Werk := pir.Werk() ); |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Werk |
| | | { |
| | | #keys: '3[415136.0.1273030043][415136.0.1273030042][415136.0.1273030044]' |
| | | Description: 'å·¥å' |
| | | ValueType: String |
| | | } |
| | |
| | | row := selectobject( this, Row, row, row.ProductID() = aoprow.ProductID() and row.ProductionLine() = aoprow.ProductionLine() and row.Type() = aoprow.Type() ); |
| | | |
| | | if( isnull( row ) ){ |
| | | row := this.Row( relnew, ProductID := aoprow.ProductID(), ProductionLine := aoprow.ProductionLine(), Type := aoprow.Type() ); |
| | | unit := ifexpr( aoprow.ProductionLine().FindString( "CC", 0 ) > -1, FinancialProductionReport::GetDefaultCCUnit(), FinancialProductionReport::GetDefaultDLUnit() ); |
| | | row := this.Row( relnew, ProductID := aoprow.ProductID(), ProductionLine := aoprow.ProductionLine(), Type := aoprow.Type(), Unit := unit ); |
| | | //åå§ååå
æ ¼ |
| | | row.InitializeCell(); |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | //æ ¹æ®å½åçæ¬çè£
é
ä¸çº¿è®¡å |
| | | //interface.AssemblyOnlinePlanVersion( relflush ); |
| | | 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() ); |
| | |
| | | if( isnull( table ) ){ |
| | | showtable := interface.AssemblyOnlinePlanVersion( 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() ); |
| | | aopcolumns := selectuniquevalues( macroPlan, AssemblyOnlinePlanColumn, aopcolumn, aopcolumn.ColumnIndex() > 1 and 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 ){ |
| | | traverse( macroPlan, AssemblyOnlinePlanRow, aoprow, aoprow.Type() = '1' ){ |
| | | row := table.GetRow( aoprow ); |
| | | traverse( aoprow, AssemblyOnlinePlanCell, aopcell ){ |
| | | info( '---------------------', row.Type() ); |
| | | traverse( aoprow, AssemblyOnlinePlanCell, aopcell, aopcell.AssemblyOnlinePlanColumn().ColumnIndex() > 1 ){ |
| | | 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() ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Unit |
| | | { |
| | | #keys: '3[415136.0.1273030019][415136.0.1273030018][415136.0.1273030020]' |
| | | Description: 'å·¥å' |
| | | ValueType: String |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | //// çå
°é¸½ Jul-17-2024 (created) |
| | | jsonarray := JSON::Array().Add( JSON::Object().Add( "product", "DZ948293" ) |
| | | .Add( "demandDate", "2024-10-01" ) |
| | | .Add( "demandQty", 800 ) |
| | | .Add( "versionName", "V2410204" ) |
| | | .Add( "interfaceTime", "2024-10-01 12:00:00" ).Build() ).Build(); |
| | | requestbody := jsonarray.AsString(); |
| | | jsonarray := JSON::Array(); |
| | | traverse( owner, CustomerDemandPPAIDS, ids ){ |
| | | idsjson := JSON::Object().Add( "product", ids.Product() ).Add( "demandDate", ids.DemandDate().Format( 'Y-M2-D2' ) )//"2024-10-01" ) |
| | | .Add( "demandQty", ids.DemandQty() ) |
| | | .Add( "versionName", ids.VersionName() ) |
| | | .Add( "interfaceTime", ids.InterfaceTime().Format( 'Y-M2-D2 H:m:s' ) ).Build();/*"2024-10-01 12:00:00" )*/ |
| | | jsonarray.Add( idsjson ); |
| | | } |
| | | //jsonarray := JSON::Array().Add( JSON::Object().Add( "product", "DZ948293" ) |
| | | // ).Build(); |
| | | requestbody := jsonarray.Build().AsString(); |
| | | info( requestbody ); |
| | | loginfo := owner.InterfaceLoginfo( relnew, ExecuteUser := executor |
| | | , Name := Translations::InterfaceDataset_CustomerDemandPPAIDS_Name() |
| | | , InterfaceDateTime := DateTime::ActualTime() |
| | |
| | | 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 := noprow.ProductID(), ProductionLine := noprow.ProductionLine(), Type := noprow.Type() ); |
| | | unit := ifexpr( noprow.ProductionLine().FindString( "CC", 0 ) > -1, FinancialProductionReport::GetDefaultCCUnit(), FinancialProductionReport::GetDefaultDLUnit() ); |
| | | row := this.Row( relnew, ProductID := noprow.ProductID(), ProductionLine := noprow.ProductionLine(), Type := noprow.Type(), Unit := unit ); |
| | | //åå§ååå
æ ¼ |
| | | row.InitializeCell(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Unit |
| | | { |
| | | #keys: '3[415136.0.1273030029][415136.0.1273030028][415136.0.1273030030]' |
| | | Description: 'å·¥å' |
| | | ValueType: String |
| | | } |
| | |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslMQBMLB |
| | | Component ddslProductLine |
| | | { |
| | | #keys: '[415136.0.1199302073]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'MQB/MLB' |
| | | Label: 'Product line' |
| | | Taborder: 0 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormAssemblyOnlinePlanVersion/Response_PanelProductLine_ddslMQBMLB_OnCreated.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelProductLine/ddslMQBMLB |
| | | Response OnCreated () id:Response_PanelProductLine_ddslMQBMLB_OnCreated |
| | | #parent: PanelProductLine/ddslProductLine |
| | | Response OnCreated () id:Response_PanelProductLine_ddslProductLine_OnCreated |
| | | { |
| | | #keys: '[415136.0.1199302058]' |
| | | CanBindMultiple: false |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormAssemblyOnlinePlanVersion/Response_PanelProductLine_ddslMQBMLB_OnSelectionChanged.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelProductLine/ddslMQBMLB |
| | | Response OnSelectionChanged () id:Response_PanelProductLine_ddslMQBMLB_OnSelectionChanged |
| | | #parent: PanelProductLine/ddslProductLine |
| | | Response OnSelectionChanged () id:Response_PanelProductLine_ddslProductLine_OnSelectionChanged |
| | | { |
| | | #keys: '[415136.0.1199302057]' |
| | | CanBindMultiple: false |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | values := selectuniquevalues( InterfaceDataset, AssemblyOnlinePlanVersion.Row, row, true, row.Type() ); |
| | | valueString := "All"; |
| | | |
| | | valueString := values.Concatenate( ";" ); |
| | | valueString := selectuniquevalues( valueString.Tokenize( ";" ), Elements, tempS, true, tempS ).Concatenate( ";" ); |
| | | |
| | | valueString := "<All>" + ifexpr( valueString = "", "", ";" ) + valueString; |
| | | |
| | | this.Strings( valueString ); |
| | | this.Strings( valueString.Concat( ";" ).Concat( FinancialProductionReport::GetDefaultCCUnit().Concat( ";" ) ).Concat( FinancialProductionReport::GetDefaultDLUnit() ) ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Attributes: 'Value' |
| | | Attributes: 'Quantity;ActualProductionQty' |
| | | Column: 'Column' |
| | | Row: 'Row' |
| | | Taborder: 0 |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | AllowMultipleAttributes: true |
| | | Columns: 'MatrixEditorColumnsTable' |
| | | ContextMenu: 'matrixeditorContextMenuTable' |
| | | Rows: 'MatrixEditorRowsTable' |
| | |
| | | [ |
| | | FixedSize: false |
| | | Label: 'Product' |
| | | Sorting: 'none' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslMQBMLB |
| | | Component ddsProductLine |
| | | { |
| | | #keys: '[415136.0.1252790298]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'MQB/MLB' |
| | | Label: 'Product line' |
| | | Taborder: 0 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanArchive/Response_PanelProductLine_603_ddslMQBMLB_OnCreated.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelProductLine_603/ddslMQBMLB |
| | | Response OnCreated () id:Response_PanelProductLine_603_ddslMQBMLB_OnCreated |
| | | #parent: PanelProductLine_603/ddsProductLine |
| | | Response OnCreated () id:Response_PanelProductLine_603_ddsProductLine_OnCreated |
| | | { |
| | | #keys: '[415136.0.1252790291]' |
| | | CanBindMultiple: false |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanArchive/Response_PanelProductLine_603_ddslMQBMLB_OnSelectionChanged.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelProductLine_603/ddslMQBMLB |
| | | Response OnSelectionChanged () id:Response_PanelProductLine_603_ddslMQBMLB_OnSelectionChanged |
| | | #parent: PanelProductLine_603/ddsProductLine |
| | | Response OnSelectionChanged () id:Response_PanelProductLine_603_ddsProductLine_OnSelectionChanged |
| | | { |
| | | #keys: '[415136.0.1252790290]' |
| | | CanBindMultiple: false |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | values := selectuniquevalues( InterfaceDataset, AssemblyOnlinePlanVersion.Row, row, true, row.Type() ); |
| | | valueString := "All"; |
| | | |
| | | valueString := values.Concatenate( ";" ); |
| | | valueString := selectuniquevalues( valueString.Tokenize( ";" ), Elements, tempS, true, tempS ).Concatenate( ";" ); |
| | | |
| | | valueString := "<All>" + ifexpr( valueString = "", "", ";" ) + valueString; |
| | | |
| | | this.Strings( valueString ); |
| | | this.Strings( valueString.Concat( ";" ).Concat( FinancialProductionReport::GetDefaultCCUnit().Concat( ";" ) ).Concat( FinancialProductionReport::GetDefaultDLUnit() ) ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |