| | |
| | | Frequency: P1DT0H0M0S |
| | | Priority: 'Default' |
| | | StartDate: 2020-01-01 |
| | | StartTimeOfDay: P0DT10H0M0S |
| | | StartTimeOfDay: P0DT9H30M0S |
| | | Text: |
| | | [* |
| | | options := DatasetFindOptions::Construct( 'InterfaceDataset' ).IncludeOffline( true ); //to load we must search offline datasets. |
| | |
| | | Frequency: P1DT0H0M0S |
| | | Priority: 'Default' |
| | | StartDate: 2024-07-19 |
| | | StartTimeOfDay: P0DT10H0M0S |
| | | StartTimeOfDay: P0DT9H30M0S |
| | | Text: |
| | | [* |
| | | options := DatasetFindOptions::Construct( 'InterfaceDataset' ).IncludeOffline( true ); //to load we must search offline datasets. |
| | |
| | | Frequency: P1DT0H0M0S |
| | | Priority: 'Default' |
| | | StartDate: 2024-07-19 |
| | | StartTimeOfDay: P0DT10H0M0S |
| | | StartTimeOfDay: P0DT9H30M0S |
| | | Text: |
| | | [* |
| | | options := DatasetFindOptions::Construct( 'InterfaceDataset' ).IncludeOffline( true ); //to load we must search offline datasets. |
| | |
| | | Frequency: P1DT0H0M0S |
| | | Priority: 'Default' |
| | | StartDate: 2024-07-19 |
| | | StartTimeOfDay: P0DT10H0M0S |
| | | StartTimeOfDay: P0DT9H30M0S |
| | | Text: |
| | | [* |
| | | options := DatasetFindOptions::Construct( 'InterfaceDataset' ).IncludeOffline( true ); //to load we must search offline datasets. |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation APIRMS64ProductRelation_InterfaceDataset_InterfaceDataset_APIRMS64ProductRelation |
| | | { |
| | | #keys: '1[730572.0.162835510]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide InterfaceDataset |
| | | { |
| | | #keys: '3[730572.0.162835512][730572.0.162835511][730572.0.162835513]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: APIRMS64ProductRelation |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide APIRMS64ProductRelation |
| | | { |
| | | #keys: '3[730572.0.162835515][730572.0.162835514][730572.0.162835516]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: InterfaceDataset |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
| | |
| | | , VersionTo := versionto, IsActive := versionflag ); |
| | | loginfo.AOnlineAndMOfflinePlanMS64( relinsert, ms64 ); |
| | | traverse( products, Elements, product, product.IsLeaf() ){ |
| | | productID := ifexpr( product.ParentID() = "MLB" or product.ParentID() = "MQB", product.Notes(), product.ID() ); |
| | | //productID := ifexpr( product.Notes().TrimBoth() <> "", product.Notes(), product.ID() ); |
| | | if( werk = 'All' ){ |
| | | ms64.MS64Data( relnew, Product := product.ID(), Werk := '8200' ); |
| | | ms64.MS64Data( relnew, Product := product.ID(), Werk := '8201' ); |
| | | ms64.MS64Data( relnew, Product := productID, Werk := '8200' ); |
| | | ms64.MS64Data( relnew, Product := productID, Werk := '8201' ); |
| | | }else{ |
| | | ms64.MS64Data( relnew, Product := product.ID(), Werk := ms64.Werk() ); |
| | | ms64.MS64Data( relnew, Product := productID, Werk := ms64.Werk() ); |
| | | } |
| | | |
| | | } |
| | |
| | | Date enddate, |
| | | String executor, |
| | | String feedback, |
| | | Boolean isPush |
| | | Boolean isPush, |
| | | Product_MPs products |
| | | ) as InterfaceLoginfo |
| | | { |
| | | TextBody: |
| | |
| | | traverse( owner, OfflinePlanArchiveVersion, table, not table.IsShow() ){ |
| | | traverse( table, Column, column, column.StartDate() >= startdate and column.StartDate() <= enddate ){//column.TimeUnit() = Translations::MP_GlobalParameters_Day() and |
| | | 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' ) ){ |
| | | and ( cell.Row().ProductionLine() <> 'DL MoMo' and cell.Row().ProductionLine() <> 'CC MoMo' and cell.Row().ProductionLine() <> 'DL ZKM' ) ){ |
| | | 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() ) ){ |
| | |
| | | loginfo.TotalRow( pir.PIRData( relsize ) ); |
| | | |
| | | if ( isPush ) { |
| | | feedback := AOnlineAndMOfflinePlanPIR::Publish( owner, loginfo ); |
| | | feedback := AOnlineAndMOfflinePlanPIR::Publish( owner, loginfo, products ); |
| | | } |
| | | |
| | | return loginfo; |
| | |
| | | #parent: #root |
| | | StaticMethod Publish ( |
| | | InterfaceDataset owner, |
| | | InterfaceLoginfo loginfo |
| | | InterfaceLoginfo loginfo, |
| | | Product_MPs products |
| | | ) as String |
| | | { |
| | | TextBody: |
| | |
| | | |
| | | traverse( loginfo, AOnlineAndMOfflinePlanPIR, pir ){ |
| | | jsonarray := JSON::Array();//.Add( "dto", JSON::Object().Add( "dday", date.Format( "Y-M2-D2" ) ).Add( "fac", "" ) ).Build(); |
| | | traverse( pir, PIRData, pirdata ){ |
| | | traverse( pir, PIRData, pirdata, exists( products, Elements, tempP, |
| | | ifexpr( tempP.ParentID() = "MLB" or tempP.ParentID() = "MQB", tempP.Notes(), tempP.ID() ) = pirdata.Product() ) ){ |
| | | pirjson := JSON::Object().Add( "product", pirdata.Product() ) |
| | | .Add( "planningDate", pirdata.PlanningDate().Format( 'YM2D2' ) )//"2024-10-01" ) |
| | | .Add( "planningQty", pirdata.PlanningQty() ) |
| | |
| | | .Add( 'dataList', jsonarray ); |
| | | } |
| | | |
| | | loginfo.RequestBody( jsondata.Build().AsString() ); |
| | | //info( loginfo.RequestBody() ); |
| | | // 设置请æ±ä½ |
| | | requestBody := jsondata.Build().AsString(); |
| | | loginfo.RequestBody( requestBody ); |
| | | |
| | | info( loginfo.RequestBody() ); |
| | | data := InterfaceLoginfo::CallInterfaceForSAPGet( owner, loginfo ); |
| | | |
| | | //info( '----------------', data ); |
| | | //data := "Test"; |
| | | |
| | | return data; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Factory |
| | | { |
| | | #keys: '3[730572.0.162836302][730572.0.162836301][730572.0.162836303]' |
| | | Description: |
| | | [* |
| | | å·¥å |
| | | VWED CC |
| | | VWED DL |
| | | *] |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Product |
| | | { |
| | | #keys: '3[730572.0.162836325][730572.0.162836324][730572.0.162836326]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type APIRMS64ProductRelation |
| | | { |
| | | #keys: '5[730572.0.162835490][730572.0.162835488][0.0.0][730572.0.162835489][730572.0.162835491]' |
| | | BaseType: Object |
| | | StructuredName: 'APIRMS64ProductRelations' |
| | | } |
| | |
| | | [* |
| | | // çå
°é¸½ Jul-22-2024 (created) |
| | | address := Translations::InterfaceDataset_SAP_Address(); |
| | | httpinterface := HTTPInterface::Create( address,8080); // æµè¯ |
| | | //httpinterface := HTTPInterface::Create( address,8080); // æµè¯ |
| | | |
| | | //httpinterface := HTTPInterface::Create( "10.120.76.32",8080); // ç产 |
| | | httpinterface := HTTPInterface::Create( "10.120.76.32",8080); // ç产 |
| | | |
| | | httpinterface.PostMethod( true ); ; |
| | | httpinterface.MediaType( Translations::InterfaceDataset_ContentType() ); |
| | |
| | | feedback := feedback.Concat( '产å' ).Concat( failproduct.Concatenate( 'ã' ) ).Concat( 'å 为' ).Concat( failmsg ).Concat( 'æ¨é失败' ).Concat( 'ï¼' ); |
| | | } |
| | | } |
| | | feedback := feedback.Replace( feedback.Length() - 1, 1, 'ã' ); |
| | | // feedback := feedback.Replace( feedback.Length() - 1, 1, 'ã' ); // è¿è¡æ¥é |
| | | } |
| | | |
| | | return feedback; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod UpdateInventoryQuantity ( |
| | | InterfaceDataset interfaceDataset, |
| | | Date startDate, |
| | | Date endDate |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | if ( ( endDate - startDate ) <= 10 ) { |
| | | while ( startDate <= endDate ) { |
| | | feis := selectset( interfaceDataset, InterfaceLoginfo.FinishedEngineInventory, tempFEI, tempFEI.DDay() = startDate ); |
| | | |
| | | msds := selectset( interfaceDataset, InterfaceLoginfo.MachineStockData, tempMSD, tempMSD.DDay() = startDate ); |
| | | |
| | | iids := selectset( interfaceDataset, InventoryInterfaceData, tempIID, tempIID.Date() = startDate ); |
| | | traverse ( iids, Elements, iid ) { |
| | | traverse ( iid, InventoryInterfaceDataDetail, iidd ) { |
| | | iidd.Quantity( sum( feis, Elements, tempFEI, |
| | | tempFEI.DDay() = iidd.Date() and |
| | | tempFEI.FourCode() = iidd.PartNumber() and |
| | | tempFEI.BIPlace() = iidd.InventoryPoint() and |
| | | tempFEI.Fac() = iidd.Fac(), |
| | | tempFEI.Total() ) ); |
| | | |
| | | total := sum( msds, Elements, tempMSD, |
| | | tempMSD.DDay() = iidd.Date() and |
| | | tempMSD.MaterialNo() = iidd.PartNumber() and |
| | | tempMSD.Lgort() = iidd.InventoryPoint() and |
| | | tempMSD.Fac() = iidd.Fac(), |
| | | tempMSD.Total() ); |
| | | iidd.Quantity( ifexpr( total > 0, total, iidd.Quantity() ) ); |
| | | } |
| | | } |
| | | |
| | | startDate := startDate + 1; |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SynchronizeActualInventory ( |
| | | InterfaceDataset interfaceDataset, |
| | | Archive archive |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | //opv := select( interfaceDataset, InventoryPlanArchiveVersion, tempOPAV, not tempOPAV.IsShow() ); |
| | | // |
| | | //mindate := minselect( opv, Column, tempC, true, tempC.StartDate() ).StartDate(); |
| | | //maxdate := maxselect( opv, Column, tempC, true, tempC.StartDate() ).StartDate(); |
| | | // |
| | | ////info( "æå°æ¶é´ï¼", mindate.Format( "Y-M2-D2" ), " æå¤§æ¶é´ï¼", maxdate.Format( "Y-M2-D2" ) ); |
| | | // |
| | | //adpds := selectsortedset( archive, ActualDailyProductionData, tempADPD, |
| | | // tempADPD.ProductionDate() >= mindate and |
| | | // tempADPD.ProductionDate() <= maxdate, |
| | | // tempADPD.ProductionDate() ); |
| | | // |
| | | ////info( "å®é
ç产ç个æ°ï¼", adpds.Size() ); |
| | | // |
| | | //products := construct( Strings ); |
| | | // |
| | | //traverse ( adpds, Elements, adpd |
| | | //// ,( adpd.Fac() + " " + adpd.LineName() + "_" + adpd.ProductNo() ) = "CC MoMo_6909" and adpd.ProductionDate() = Date::Construct( 2025, 4, 1 ) |
| | | // ) { |
| | | //// info( "å·¥åï¼", adpd.Fac(), " 产åï¼", adpd.ProductNo(), " 产线ï¼", adpd.LineName() ); |
| | | // |
| | | // // 产线å¤ç |
| | | // productLine := adpd.Fac() + " " + adpd.LineName() + "_" + adpd.ProductNo(); |
| | | // |
| | | //// info( "nameï¼", productLine, " çææ¥æï¼", adpd.ProductionDate().Format( "Y-M2-D2" ), " æ°éï¼", adpd.ActualOut() ); |
| | | // |
| | | // row := select( opv, Row, tempR, tempR.ShowName().TrimBoth() = productLine.TrimBoth() ); |
| | | // cell := select( row, Cell, tempC, tempC.Column().StartDate() = adpd.ProductionDate() ); |
| | | // |
| | | // // æ¸
0éæ°èµå¼ |
| | | // if ( not isnull( cell ) and not exists( products, Elements, p, p = cell.Key().AsQUILL() ) ) { |
| | | // cell.ActualProductionQty( 0 ); |
| | | // |
| | | // products.Add( cell.Key().AsQUILL() ); |
| | | // } |
| | | // |
| | | // if ( not isnull( cell ) ) { |
| | | // cell.ActualProductionQty( cell.ActualProductionQty() + adpd.ActualOut() ); |
| | | // } |
| | | //} |
| | | *] |
| | | } |
| | |
| | | Method SetQuantity ( |
| | | InventoryPlanArchiveColumn column, |
| | | Real planqty, |
| | | Real actualaty |
| | | Real actualaty, |
| | | NamedValueTree resetNVT |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | |
| | | column.Cell( relinsert, cell ); |
| | | } |
| | | |
| | | // 夿æ¯å¦é置为0 |
| | | resetH := resetNVT.GetHandle( this.ShowName() + column.StartDate().Format( "Y-M2-D2" ) ); |
| | | if ( guard( isnull( resetNVT.Root().Child( resetH ) ), true ) ) { |
| | | cell.PlanQuantity( 0 ); |
| | | |
| | | resetNVT.Root().AddChild( resetH ); |
| | | } |
| | | |
| | | cell.PlanQuantity( cell.PlanQuantity() + planqty ); |
| | | cell.ActualQuantity( cell.ActualQuantity() + actualaty ); |
| | | cell.ActualQuantity( actualaty ); |
| | | *] |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | //interfaceDataset.InventoryPlanArchiveVersion( relflush ); |
| | | info( '-------------------------Start---------------------'); |
| | | machineproductparent := MachiningPipelineReport::GetDefaultProductParent(); |
| | | engineproductparent := EnginePipelineReport::GetDefaultProductParent(); |
| | | allunit := AssemblyOnlinePlanVersion::GetDefaultAllUnit(); |
| | | name := InventoryPlanArchiveVersion::GetDefaultName();//search := |
| | | interfaceDataset.InventoryPlanArchiveVersionSearch( relnew, Product := allunit, Unit := allunit, StartDate := Date::MinDate(), EndDate := Date::MaxDate() );//, TimeUnit := Translations::MP_GlobalParameters_Day() |
| | | info( '-------------------------Start---------------------' ); |
| | | //machineproductparent := MachiningPipelineReport::GetDefaultProductParent(); // æºå ä»¶ |
| | | //engineproductparent := EnginePipelineReport::GetDefaultProductParent(); // å卿º |
| | | allunit := AssemblyOnlinePlanVersion::GetDefaultAllUnit(); // <All> |
| | | name := InventoryPlanArchiveVersion::GetDefaultName(); // Inventory plan archive |
| | | interfaceDataset.InventoryPlanArchiveVersionSearch( relnew, |
| | | Product := allunit, |
| | | Unit := allunit, |
| | | StartDate := Date::MinDate(), |
| | | EndDate := Date::MaxDate() );//, TimeUnit := Translations::MP_GlobalParameters_Day() |
| | | |
| | | // å建æ¾ç¤ºè¡¨æ ¼ |
| | | table := selectobject( interfaceDataset, InventoryPlanArchiveVersion, version, not version.IsShow() ); |
| | | if( isnull( table ) ){ |
| | | table := interfaceDataset.InventoryPlanArchiveVersion( relnew, ID := name, Name := name ); |
| | | } |
| | | |
| | | //showtable := selectobject( interfaceDataset, InventoryPlanArchiveVersion, version, version.IsShow() ); |
| | | //if( isnull( showtable ) ){ |
| | | // showtable := interfaceDataset.InventoryPlanArchiveVersion( relnew, ID := name, Name := name, IsShow := true ); |
| | | //} |
| | | |
| | | // å建ä¸åå¨å |
| | | periods := selectuniquevalues( macroPlan, Period_MP, period, not period.IsHistorical() and period.TimeUnit() = Translations::MP_GlobalParameters_Day() |
| | | and not exists( table, Column, column, column.StartDate() = period.StartDate() ), period.StartDate() );//column.TimeUnit() = Translations::MP_GlobalParameters_Day() and |
| | | if( periods.Size() > 0 ){ |
| | | table.GenerateColumn( periods, false ); |
| | | } |
| | | |
| | | // æå°æ¶é´ |
| | | minDate := minselect( table, Column, tempC, true, tempC.StartDate() ).StartDate(); |
| | | maxDate := maxselect( table, Column, tempC, true, tempC.StartDate() ).StartDate(); |
| | | info( "æå°æ¶é´ï¼", minDate.Format( "Y-M2-D2" ), " æå¤§æ¶é´ï¼", maxDate.Format( "Y-M2-D2" ) ); |
| | | |
| | | actinventorytree := NamedValueTree::Create(); |
| | | inventoryqrys := construct( Reals ); |
| | | inventoryindex := 0; |
| | | traverse( interfaceDataset,InterfaceLoginfo.MachineStockData, actinventory ){ |
| | | inventoryqrys.Add( actinventory.Total() ); |
| | | actinventoryKey := actinventory.MaterialNo() + actinventory.DDay().AsQUILL(); |
| | | // æºå å®é
åºå |
| | | traverse ( interfaceDataset,InterfaceLoginfo.MachineStockData, actinventory, |
| | | // actinventory.Fac() = "CC" and actinventory.MaterialNo() = "06U105101A" and actinventory.DDay() = Date::Construct( 2025, 4, 9 ) and// æµè¯è¿æ»¤ï¼ç产éè¦æ³¨éï¼ |
| | | actinventory.DDay() >= minDate and actinventory.DDay() <= maxDate ) { |
| | | // åºä½æ¯å¦ç»å®åºåç¹ |
| | | iid := select( interfaceDataset, InventoryInterfaceData, tempIID, tempIID.Date() = actinventory.DDay() and |
| | | tempIID.PartNumber() = actinventory.MaterialNo() ); |
| | | iidd := select( iid, InventoryInterfaceDataDetail, tempIIDD, tempIIDD.InventoryPoint() = actinventory.Lgort() and |
| | | tempIIDD.Fac() = actinventory.Fac() ); |
| | | flag := guard( iidd.InventoryPointSelection().IsIncluded(), false ); |
| | | // info( "æ¯å¦è¢«åºåç¹éæ©ï¼", flag, " æ°éï¼", actinventory.Total() ); |
| | | actinventoryKey := ifexpr( actinventory.Fac() = "DL", FinancialProductionReport::GetDefaultDLUnit(), FinancialProductionReport::GetDefaultCCUnit() ) + |
| | | actinventory.MaterialNo() + |
| | | actinventory.DDay().Format( "Y-M2-D2" ); |
| | | actinventoryhandle := actinventorytree.GetHandle( actinventoryKey ); |
| | | actinventorytree.Root().AddChild( actinventoryhandle,inventoryindex ); |
| | | inventoryindex := inventoryindex + 1; |
| | | } |
| | | traverse( interfaceDataset,InterfaceLoginfo.FinishedEngineInventory,actinventory ){ |
| | | product := selectobject( macroPlan, Product_MP, product, product.Notes() = actinventory.FourCode() ); |
| | | if( not isnull( product ) ){ |
| | | inventoryqrys.Add( actinventory.Total() ); |
| | | actinventoryKey := actinventory.FourCode() + actinventory.DDay().AsQUILL(); |
| | | actinventoryhandle := actinventorytree.GetHandle( actinventoryKey ); |
| | | actinventorytree.Root().AddChild( actinventoryhandle,inventoryindex ); |
| | | inventoryindex := inventoryindex + 1; |
| | | if ( guard( actinventorytree.Root().Child( actinventoryhandle ).GetValueAsReal() > 0, false ) ) { // 夿æ¯å¦åå¨ï¼åå¨ |
| | | if ( flag ) { |
| | | targetNV := actinventorytree.Root().Child( actinventoryhandle ); |
| | | targetNV.SetValue( targetNV.GetValueAsReal() + actinventory.Total() ); |
| | | } |
| | | } else { // ä¸åå¨ |
| | | if ( flag ) { |
| | | actinventorytree.Root().AddChild( actinventoryhandle, actinventory.Total() ); |
| | | } |
| | | } |
| | | } |
| | | traverse( macroPlan, Product_MP, product, exists( product.GetAllParent(), Elements, e, e.ID() = machineproductparent or e.ID() = engineproductparent ) ){ |
| | | // å卿ºå®é
åºå |
| | | traverse ( interfaceDataset, InterfaceLoginfo.FinishedEngineInventory, actinventory, |
| | | // actinventory.Fac() = "CC" and actinventory.FourCode() = "6908" and actinventory.DDay() = Date::Construct( 2025, 4, 2 ) and// æµè¯è¿æ»¤ï¼ç产éè¦æ³¨éï¼ |
| | | actinventory.DDay() >= minDate and actinventory.DDay() <= maxDate ) { |
| | | // åºä½æ¯å¦ç»å®åºåç¹ |
| | | iid := select( interfaceDataset, InventoryInterfaceData, tempIID, tempIID.Date() = actinventory.DDay() and |
| | | tempIID.PartNumber() = actinventory.FourCode() ); |
| | | iidd := select( iid, InventoryInterfaceDataDetail, tempIIDD, tempIIDD.InventoryPoint() = actinventory.BIPlace() and |
| | | tempIIDD.Fac() = actinventory.Fac() ); |
| | | flag := guard( iidd.InventoryPointSelection().IsIncluded(), false ); |
| | | |
| | | product := selectobject( macroPlan, Product_MP, product, product.ID() = actinventory.FourCode() ); |
| | | if ( not isnull( product ) ) { |
| | | actinventoryKey := ifexpr( actinventory.Fac() = "DL", FinancialProductionReport::GetDefaultDLUnit(), FinancialProductionReport::GetDefaultCCUnit() ) + |
| | | actinventory.FourCode() + |
| | | actinventory.DDay().Format( "Y-M2-D2" ); |
| | | actinventoryhandle := actinventorytree.GetHandle( actinventoryKey ); |
| | | if ( guard( actinventorytree.Root().Child( actinventoryhandle ).GetValueAsReal() > 0, false ) ) { // 夿æ¯å¦åå¨ï¼åå¨ |
| | | if ( flag ) { |
| | | targetNV := actinventorytree.Root().Child( actinventoryhandle ); |
| | | targetNV.SetValue( targetNV.GetValueAsReal() + actinventory.Total() ); |
| | | } |
| | | } else { // ä¸åå¨ |
| | | if ( flag ) { |
| | | actinventorytree.Root().AddChild( actinventoryhandle, actinventory.Total() ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //handle := actinventorytree.GetHandle( "VWED CC06U105101A2025-04-09" ); |
| | | //info( "æ°éï¼", guard( actinventorytree.Root().Child( handle ).GetValueAsReal(), 0 ) ); |
| | | |
| | | // ä¿åå·²éç½®0ç产å |
| | | resetNVT := NamedValueTree::Create(); |
| | | |
| | | traverse ( macroPlan, Product_MP, product |
| | | // ,product.ID() = "6909" |
| | | ) { |
| | | traverse ( product, ProductInStockingPoint_MP, pispmp, not pispmp.IsSystem() and pispmp.IsLeaf() ) { |
| | | unit := ifexpr( pispmp.StockingPointID().Regex( "大è¿" ) or pispmp.StockingPointID().Regex( "DL" ), FinancialProductionReport::GetDefaultDLUnit(), FinancialProductionReport::GetDefaultCCUnit() ); |
| | | inventoryrow := table.GetRowByUnit( pispmp.Product_MP(), unit ); |
| | | traverse ( pispmp, ProductInStockingPointInPeriodPlanning.astype( ProductInStockingPointInPeriodPlanningLeaf ), pispippl, not pispippl.IsPeriodFrozen() ) { |
| | | unit := ifexpr( pispmp.StockingPointID().Regex( "大è¿" ) or pispmp.StockingPointID().Regex( "DL" ), |
| | | FinancialProductionReport::GetDefaultDLUnit(), |
| | | FinancialProductionReport::GetDefaultCCUnit() ); // å·¥å |
| | | inventoryrow := table.GetRowByUnit( pispmp.Product_MP(), unit ); // å建åºååæ¡£è¡ |
| | | // info( pispmp.Name() ); |
| | | |
| | | traverse ( pispmp, ProductInStockingPointInPeriodPlanning.astype( ProductInStockingPointInPeriodPlanningLeaf ), pispippl, |
| | | // pispmp.ProductID() = "6909" and pispippl.Start().Date() = Date::Construct( 2025, 3, 31 ) and // æµè¯è¿æ»¤ï¼ç产éè¦æ³¨éï¼ |
| | | not pispippl.IsPeriodFrozen() ) { |
| | | startdate := pispippl.Start().Date(); |
| | | daycolumn := table.GetColumnByTimeUnit( Translations::MP_GlobalParameters_Day(), startdate ); |
| | | daycolumn := table.GetColumnByTimeUnit( Translations::MP_GlobalParameters_Day(), startdate ); // è·ååºååæ¡£å |
| | | // weekcolumn := table.GetColumnByTimeUnit( Translations::MP_GlobalParameters_Week(), startdate ); |
| | | // monthcolumn := table.GetColumnByTimeUnit( Translations::MP_GlobalParameters_Month(), startdate ); |
| | | actinventoryKey := pispmp.ProductID() + startdate.AsQUILL(); |
| | | actinventoryKey := unit + pispmp.ProductID() + startdate.Format( "Y-M2-D2" ); |
| | | actinventoryhandle := actinventorytree.GetHandle( actinventoryKey ); |
| | | actinventoryindex := guard( actinventorytree.Root().Child( actinventoryhandle ),null( NamedValue )); |
| | | |
| | | actinventoryqty := 0.0; |
| | | if( not isnull( actinventoryindex )){ |
| | | actinventoryqty := inventoryqrys.Element( actinventoryindex.GetValueAsNumber() ); |
| | | } |
| | | inventoryrow.SetQuantity( daycolumn, pispippl.InventoryLevelEnd(), actinventoryqty ); |
| | | actinventoryQty := guard( actinventorytree.Root().Child( actinventoryhandle ).GetValueAsReal(), 0 ); |
| | | // info( "æ°éï¼", actinventoryQty ); |
| | | inventoryrow.SetQuantity( daycolumn, pispippl.InventoryLevelEnd(), actinventoryQty, resetNVT ); |
| | | // inventoryrow.SetQuantity( weekcolumn, pispippl.InventoryLevelEnd(), actinventoryqty ); |
| | | // inventoryrow.SetQuantity( monthcolumn, pispippl.InventoryLevelEnd(), actinventoryqty ); |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | info( '-------------------------End---------------------'); |
| | | info( '-------------------------End---------------------' ); |
| | | //productids := selectuniquevalues( table, Row, row, row.Name() ); |
| | | //productlines := selectuniquevalues( table, Row, row, row.Unit() ); |
| | | //showtable.Generate( search, productids, productlines ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod DetectingNegativeValues ( |
| | | MacroPlan macroPlan |
| | | ) as String |
| | | { |
| | | Description: 'æ£æµè´å¼' |
| | | TextBody: |
| | | [* |
| | | res := ""; |
| | | |
| | | // 循ç¯éåæç»æ°æ® |
| | | traverse ( macroPlan, NewAssemblyOnlinePlanRow, naopr, naopr.Type() = "1" ) { |
| | | traverse ( naopr, NewAssemblyOnlinePlanCell, naopcell, naopcell.Quantity() < 0 ) { |
| | | res := res + |
| | | "产线ï¼" + naopr.ProductionLine() + " " + |
| | | "产åï¼" + naopr.ProductID() + " " + |
| | | "æ¶é´ï¼" + naopcell.NewAssemblyOnlinePlanColumn().StartDate().Format( "Y-M2-D2" ) + " " + |
| | | "æ°éï¼" + [String]naopcell.Quantity() + "\n"; |
| | | } |
| | | } |
| | | |
| | | if ( res = "" ) { |
| | | res := "ææªåºç°è´å¼"; |
| | | } |
| | | |
| | | return res; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod DetectingNegativeValues ( |
| | | MacroPlan macroPlan |
| | | ) as String |
| | | { |
| | | Description: 'æ£æµè´å¼' |
| | | TextBody: |
| | | [* |
| | | nopt := maxselect( macroPlan, NewOfflinePlanTable, tempOPT, true, tempOPT.SaveDateTime() ); |
| | | |
| | | res := ""; |
| | | |
| | | // 循ç¯éåæç»æ°æ® |
| | | traverse ( nopt, NewOfflinePlanRow, npr, npr.Type() = "1" ) { |
| | | traverse ( npr, NewOfflinePlanCell, npcell, npcell.Quantity() < 0 ) { |
| | | res := res + |
| | | "产线ï¼" + npr.ProductionLine() + " " + |
| | | "产åï¼" + npr.ProductID() + " " + |
| | | "æ¶é´ï¼" + npcell.NewOfflinePlanColumn().StartDate().Format( "Y-M2-D2" ) + " " + |
| | | "æ°éï¼" + [String]npcell.Quantity() + "\n"; |
| | | } |
| | | } |
| | | |
| | | if ( res = "" ) { |
| | | res := "ææªåºç°è´å¼"; |
| | | } |
| | | |
| | | return res; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SynchronizeActualProduction ( |
| | | InterfaceDataset interfaceDataset, |
| | | Archive archive |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | opv := select( interfaceDataset, OfflinePlanArchiveVersion, tempOPAV, not tempOPAV.IsShow() ); |
| | | |
| | | mindate := minselect( opv, Column, tempC, true, tempC.StartDate() ).StartDate(); |
| | | maxdate := maxselect( opv, Column, tempC, true, tempC.StartDate() ).StartDate(); |
| | | |
| | | //info( "æå°æ¶é´ï¼", mindate.Format( "Y-M2-D2" ), " æå¤§æ¶é´ï¼", maxdate.Format( "Y-M2-D2" ) ); |
| | | |
| | | adpds := selectsortedset( archive, ActualDailyProductionData, tempADPD, |
| | | tempADPD.ProductionDate() >= mindate and |
| | | tempADPD.ProductionDate() <= maxdate, |
| | | tempADPD.ProductionDate() ); |
| | | |
| | | //info( "å®é
ç产ç个æ°ï¼", adpds.Size() ); |
| | | |
| | | products := construct( Strings ); |
| | | |
| | | traverse ( adpds, Elements, adpd |
| | | // ,( adpd.Fac() + " " + adpd.LineName() + "_" + adpd.ProductNo() ) = "CC MoMo_6909" and adpd.ProductionDate() = Date::Construct( 2025, 4, 1 ) |
| | | ) { |
| | | // info( "å·¥åï¼", adpd.Fac(), " 产åï¼", adpd.ProductNo(), " 产线ï¼", adpd.LineName() ); |
| | | |
| | | // 产线å¤ç |
| | | productLine := adpd.Fac() + " " + adpd.LineName() + "_" + adpd.ProductNo(); |
| | | |
| | | // info( "nameï¼", productLine, " çææ¥æï¼", adpd.ProductionDate().Format( "Y-M2-D2" ), " æ°éï¼", adpd.ActualOut() ); |
| | | |
| | | row := select( opv, Row, tempR, tempR.ShowName().TrimBoth() = productLine.TrimBoth() ); |
| | | cell := select( row, Cell, tempC, tempC.Column().StartDate() = adpd.ProductionDate() ); |
| | | |
| | | // æ¸
0éæ°èµå¼ |
| | | if ( not isnull( cell ) and not exists( products, Elements, p, p = cell.Key().AsQUILL() ) ) { |
| | | cell.ActualProductionQty( 0 ); |
| | | |
| | | products.Add( cell.Key().AsQUILL() ); |
| | | } |
| | | |
| | | if ( not isnull( cell ) ) { |
| | | cell.ActualProductionQty( cell.ActualProductionQty() + adpd.ActualOut() ); |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod WriteBackTheTransferPlan ( |
| | | MacroPlan macroPlan, |
| | | Product_MPs selectedProducts |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | traverse ( selectedProducts, Elements, p, p.IsLeaf() and exists( macroPlan, TransferPlanRow, tempTPR, tempTPR.ProductID() = p.ID() ) ) { |
| | | tprs := selectset( macroPlan, TransferPlanRow, tempTPR, tempTPR.ProductID() = p.ID() ); |
| | | |
| | | traverse ( tprs, Elements, tpr ) { |
| | | tpcells := selectsortedset( tpr, TransferPlanCell, tempTPCell, guard( [Number]tempTPCell.Value(), 0 ) >= 0.0, tempTPCell.TransferPlanColumn().ColumnDate() ); |
| | | traverse ( tpcells, Elements, tpcell |
| | | // , tpcell.TransferPlanColumn().ColumnDate() = Date::Construct( 2025, 1, 11 ) |
| | | ) { |
| | | // info( "æ¶é´ï¼", tpcell.TransferPlanColumn().ColumnName(), " ", |
| | | // tpcell.TransferPlanRow().SourceStockpoingPointID() + " To " + tpcell.TransferPlanRow().TargetStockpoingPointID(), " ", |
| | | // tpcell.Value() ); |
| | | |
| | | // selecte trip plan |
| | | unitName := tpcell.TransferPlanRow().SourceStockpoingPointID() + " " + "to" + " " + tpcell.TransferPlanRow().TargetStockpoingPointID() + " " + tpcell.TransferPlanRow().Category() + " " + "Transport" |
| | | pit := select( macroPlan, Unit.Lane.LaneLeg.Trip.ProductInTrip, tempPIT, |
| | | tempPIT.Trip().Departure().Date() = tpcell.TransferPlanColumn().ColumnDate() and |
| | | tempPIT.Trip().LaneLeg().Lane().Unit().Name() = unitName and |
| | | tempPIT.ProductID() = tpr.ProductID() |
| | | ); |
| | | if ( not isnull( pit ) ) { // æTripæ
åµ |
| | | // info( pit.Quantity() ); |
| | | if ( [Number]pit.Quantity() <> [Number]tpcell.Value() ) { |
| | | pit.Update( [Real]tpcell.Value(), true ); |
| | | } |
| | | } else { // æ Tripæ
åµ |
| | | // error( "no trip" ); |
| | | // info( tpr.ProductID(), " æ°éï¼", [Number]tpcell.Value() ); |
| | | // |
| | | // t := select( macroPlan, Unit.Lane.LaneLeg.Trip, tempP, |
| | | // tempP.LaneLeg().Lane().Unit().Name() = unitName and |
| | | // tempP.Departure().Date() = tpcell.TransferPlanColumn().ColumnDate() ); |
| | | // p := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = tpr.ProductID() ); |
| | | // info( not isnull( t ) ); |
| | | // if ( [Number]tpcell.Value() > 0 and not isnull( t ) and not isnull( p ) ) { |
| | | // ProductInTrip::CreateOrUpdateForTrip( t, p, [Real]tpcell.Value() ); |
| | | // Transaction::Transaction().PropagateAll(); |
| | | // } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component ActionBarGroupScenarioSelection #extension |
| | | { |
| | | Children: |
| | | [ |
| | | #child: PanelScenarioSelection |
| | | ] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | Component ActionBarPageScenarioSelection #extension |
| | | { |
| | | Children: |
| | | [ |
| | | #child: ActionBarGroupScenarioSelection |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 22 |
| | |
| | | Title: 'SAP MS64' |
| | | ] |
| | | } |
| | | Component mAPIMS64ProductRelation |
| | | { |
| | | #keys: '[730572.0.167360055]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Title: 'å·¥å产å对åºå
³ç³»' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelScenarioSelection #extension |
| | | { |
| | | Children: |
| | | [ |
| | | Component DropDownListScenario id:DropDownListScenario_886 #extension |
| | | { |
| | | Properties: |
| | | [ |
| | | NumberOfColumns: 40 |
| | | ] |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ContextMenuPublishSAP/mAPIMS64ProductRelation |
| | | Response OnClick () id:Response_MacroPlanner_ContextMenuPublishSAP_mAPIMS64ProductRelation_OnClick |
| | | { |
| | | #keys: '[730572.0.167360231]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ApplicationScope.ViewManager().ResetUserViewById( "APIMS64ProductRelation", true ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'external[MacroPlan]' |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'Product_MP' |
| | |
| | | if( sucproduct.Size() = loginfo.SAPResponseLoginfo( relsize ) ){ |
| | | WebMessageBox::Success( ApplicationMacroPlanner, 'æ¨éæå' ); |
| | | }else{ |
| | | WebMessageBox::Warning( ApplicationMacroPlanner, msg, 'Yes|No' ); |
| | | // WebMessageBox::Warning( ApplicationMacroPlanner, msg, 'Yes|No' ); |
| | | WebMessageBox::Success( ApplicationMacroPlanner, Translations::A_VWED_Success() ); |
| | | } |
| | | } |
| | | Form.Close(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: lstRight590 |
| | | Response OnCreated () id:Response_lstRight590_OnCreated |
| | | { |
| | | #keys: '[730572.0.167230490]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.CheckAll(); |
| | | |
| | | apims64pr := selectset( InterfaceDataset, APIRMS64ProductRelation, tempAPIMS64PR, |
| | | ifexpr( ddslFactory.Text() = "All", true, tempAPIMS64PR.Factory() = ddslFactory.Text() ) ); |
| | | |
| | | pmps := selectset( MacroPlan, Product_MP, tempPMP, |
| | | tempPMP.IsLeaf() and |
| | | not exists( apims64pr, Elements, tempAPIMS64PR, tempAPIMS64PR.Product() = tempPMP.ID() ) |
| | | ); |
| | | |
| | | traverse ( pmps, Elements, pmp ) { |
| | | this.UnCheckByKey( pmp.Key() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlLeft_88/ddslFactory |
| | | Response OnSelectionChanged () id:Response_pnlLeft_88_ddslFactory_OnSelectionChanged |
| | | { |
| | | #keys: '[730572.0.167230570]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownStringList_OnSelectionChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | lstRight590.CheckAll(); |
| | | |
| | | apims64pr := selectset( InterfaceDataset, APIRMS64ProductRelation, tempAPIMS64PR, |
| | | ifexpr( this.Text() = "All", true, tempAPIMS64PR.Factory() = this.Text() ) ); |
| | | |
| | | pmps := selectset( MacroPlan, Product_MP, tempPMP, |
| | | tempPMP.IsLeaf() and |
| | | not exists( apims64pr, Elements, tempAPIMS64PR, tempAPIMS64PR.Product() = tempPMP.ID() ) |
| | | ); |
| | | |
| | | traverse ( pmps, Elements, pmp ) { |
| | | lstRight590.UnCheckByKey( pmp.Key() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component abpRight481 id:abpRight481_1 |
| | | { |
| | | #keys: '[730572.0.145570670]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component cmRight681 id:cmRight681_1 |
| | | { |
| | | #keys: '[730572.0.145570672]' |
| | | BaseType: 'listContextMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component lstRight590 id:lstRight590_71 |
| | | { |
| | | #keys: '[730572.0.145570668]' |
| | | BaseType: 'WebList' |
| | | Children: |
| | | [ |
| | | Component deRight862 |
| | | { |
| | | #keys: '[730572.0.145570669]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'Product_MP' |
| | | ] |
| | | } |
| | | #child: abpRight481_1 |
| | | Component dslRight661 |
| | | { |
| | | #keys: '[730572.0.145570671]' |
| | | BaseType: 'WebDataSetLevel' |
| | | Children: |
| | | [ |
| | | #child: cmRight681_1 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ID"}}]' |
| | | ContextMenu: 'cmRight681' |
| | | FixedFilter: "object.IsLeaf() and object.ParentID() <> '紧缺件'" |
| | | SortCriteria: 'ID' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | SelectionCheckboxes: true |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | Children: |
| | | [ |
| | | #child: pnlLeft |
| | | #child: pnlRight_836 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Padding: 'true' |
| | | Taborder: 0 |
| | | ] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Border: true |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlRight id:pnlRight_836 |
| | | { |
| | | #keys: '[730572.0.145570666]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component dhProducts |
| | | { |
| | | #keys: '[730572.0.145570667]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[Product_MP]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | #child: lstRight590_71 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | Title: '产å' |
| | | ] |
| | | } |
| | |
| | | dsEndDate.Date(), |
| | | QuintiqUser::CurrentUser().DisplayName(), |
| | | msg, |
| | | InterfaceDataset.IsPushSAP_PIR() ); |
| | | InterfaceDataset.IsPushSAP_PIR(), |
| | | dhProducts.Data() ); |
| | | sucproduct := selectuniquevalues( loginfo, SAPResponseLoginfo, e, e.IsSuccess(), e.Msg_v1() ); |
| | | if( sucproduct.Size() = loginfo.SAPResponseLoginfo( relsize ) ){ |
| | | WebMessageBox::Success( ApplicationMacroPlanner, 'æ¨éæå' ); |
| | | }else{ |
| | | WebMessageBox::Warning( ApplicationMacroPlanner, msg, 'Yes|No' ); |
| | | // WebMessageBox::Warning( ApplicationMacroPlanner, msg, 'Yes|No' ); |
| | | WebMessageBox::Success( ApplicationMacroPlanner, Translations::A_VWED_Success() ); |
| | | } |
| | | } |
| | | Form.Close(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: lstRight590_71 |
| | | Response OnCheckedChanged ( |
| | | structured[Product_MP] checkeditems |
| | | ) id:Response_lstRight590_71_OnCheckedChanged_338 |
| | | { |
| | | #keys: '[730572.0.145570662]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebList_OnCheckedChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | products := checkeditems.Copy(); |
| | | dhProducts.Data( &products ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: lstRight590_71 |
| | | Response OnCheckedChanged () id:Response_lstRight590_71_OnCheckedChanged |
| | | { |
| | | #keys: '[730572.0.145570663]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebList_OnCheckedChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dhProducts.Data().Flush(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: lstRight590_71 |
| | | Response OnCreated () id:Response_lstRight590_71_OnCreated |
| | | { |
| | | #keys: '[730572.0.166121446]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.CheckAll(); |
| | | |
| | | apims64pr := selectset( InterfaceDataset, APIRMS64ProductRelation, tempAPIMS64PR, |
| | | ifexpr( ddslFactory.Text() = "All", true, tempAPIMS64PR.Factory() = ddslFactory.Text() ) ); |
| | | |
| | | pmps := selectset( MacroPlan, Product_MP, tempPMP, |
| | | tempPMP.IsLeaf() and |
| | | not exists( apims64pr, Elements, tempAPIMS64PR, tempAPIMS64PR.Product() = tempPMP.ID() ) |
| | | ); |
| | | |
| | | traverse ( pmps, Elements, pmp ) { |
| | | this.UnCheckByKey( pmp.Key() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlLeft/ddslFactory_424 |
| | | Response OnSelectionChanged () id:Response_pnlLeft_ddslFactory_OnSelectionChanged |
| | | { |
| | | #keys: '[730572.0.167280424]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownStringList_OnSelectionChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | lstRight590.CheckAll(); |
| | | |
| | | apims64pr := selectset( InterfaceDataset, APIRMS64ProductRelation, tempAPIMS64PR, |
| | | ifexpr( this.Text() = "All", true, tempAPIMS64PR.Factory() = this.Text() ) ); |
| | | |
| | | pmps := selectset( MacroPlan, Product_MP, tempPMP, |
| | | tempPMP.IsLeaf() and |
| | | not exists( apims64pr, Elements, tempAPIMS64PR, tempAPIMS64PR.Product() = tempPMP.ID() ) |
| | | ); |
| | | |
| | | //info( pmps.Size() ); |
| | | |
| | | traverse ( pmps, Elements, pmp ) { |
| | | lstRight590.UnCheckByKey( pmp.Key() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component List920 |
| | | { |
| | | #keys: '[730572.0.166102291]' |
| | | BaseType: 'WebList' |
| | | Children: |
| | | [ |
| | | Component DataExtractor376 |
| | | { |
| | | #keys: '[730572.0.166102292]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | Source: 'InterfaceDataset' |
| | | Taborder: 0 |
| | | Transformation: 'APIRMS64ProductRelation' |
| | | ] |
| | | } |
| | | #child: listActionBarPage590 |
| | | Component DataSetLevel195 |
| | | { |
| | | #keys: '[730572.0.166102297]' |
| | | BaseType: 'WebDataSetLevel' |
| | | Children: |
| | | [ |
| | | #child: listContextMenu519 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Factory","title":"Factory","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Factory"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Product","title":"Product","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Product"}}]' |
| | | ContextMenu: 'listContextMenu519' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | DelegatedResponseDefinition OnClick id:Responsedef_List920_WebMenu_OnClick |
| | | { |
| | | #keys: '[730572.0.167350332]' |
| | | Initiator: 'WebMenu' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[207.0.11974633]' |
| | | Binding: 'this.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listActionBarPage590 |
| | | { |
| | | #keys: '[730572.0.166102294]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listContextMenu519 |
| | | { |
| | | #keys: '[730572.0.166102299]' |
| | | BaseType: 'listContextMenu' |
| | | Children: |
| | | [ |
| | | Component mDelete |
| | | { |
| | | #keys: '[730572.0.167350446]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'DELETE' |
| | | Taborder: 3 |
| | | Title: 'Delete' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pContent |
| | | { |
| | | #keys: '[730572.0.166102177]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: List920 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pHeader |
| | | { |
| | | #keys: '[730572.0.166102162]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslFactory |
| | | { |
| | | #keys: '[730572.0.166102447]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'å·¥å' |
| | | Strings: 'VWED CC;VWED DL' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component ddslProduct |
| | | { |
| | | #keys: '[730572.0.166102507]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: '产å' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component bCreate |
| | | { |
| | | #keys: '[730572.0.167350289]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'ADD2' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Border: true |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: List920 |
| | | Response OnClick ( |
| | | APIRMS64ProductRelation selection |
| | | ) id:Response_List920_mDelete_OnClick |
| | | { |
| | | #keys: '[730572.0.167350349]' |
| | | DefinitionID => /List920/Responsedef_List920_WebMenu_OnClick |
| | | Initiator: 'mDelete' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | selection.Delete(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/bCreate |
| | | Response OnClick () id:Response_pHeader_bCreate_OnClick |
| | | { |
| | | #keys: '[730572.0.167350572]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | InterfaceDataset.APIRMS64ProductRelation( relnew, |
| | | Factory := ddslFactory.Text(), |
| | | Product := ddslProduct.Text() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/ddslProduct |
| | | Response OnCreated () id:Response_pHeader_ddslProduct_OnCreated |
| | | { |
| | | #keys: '[730572.0.167390234]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ids := selectuniquevalues( MacroPlan, Product_MP, tempPMP, tempPMP.IsLeaf(), tempPMP.ID() ); |
| | | |
| | | this.Strings( ids.Concatenate( ";" ) ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent FormAPIRMS64ProductRelation |
| | | { |
| | | #keys: '[730572.0.166101908]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: pHeader |
| | | #child: pContent |
| | | ] |
| | | } |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'external[Archive]' |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ActualDailyProductionData' |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | Source: 'InterfaceDataset' |
| | | DataType: 'structured[AssemblyOnlinePlanVersionRow]' |
| | | Source: 'dhRows' |
| | | Taborder: 0 |
| | | Transformation: 'AssemblyOnlinePlanVersion.Row.Cell' |
| | | Transformation: 'Elements.Cell' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | FilterArguments: 'units:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderUnit;products:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderProduct' |
| | | FixedFilter: '( units.Size() = 0 or exists( units, Elements, unit, unit.ID() = object.ProductionLine() ) ) and ( products.Size() = 0 or exists( products, Elements, product, product.ID() = object.Name() ) )' |
| | | Source: 'InterfaceDataset' |
| | | DataType: 'structured[AssemblyOnlinePlanVersionRow]' |
| | | Source: 'dhRows' |
| | | Taborder: 0 |
| | | Transformation: 'AssemblyOnlinePlanVersion.Row' |
| | | Transformation: 'Elements' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | DataType: 'structured[AssemblyOnlinePlanVersionRow]' |
| | | Description: '( search.StartDate().IsMinInfinity() or object.StartDate() >= search.StartDate() ) and ( search.EndDate().IsMaxInfinity() or object.StartDate() <= search.EndDate() )' |
| | | FilterArguments: 'search:QMacroPlanner::FormAssemblyOnlinePlanVersion.dhSearch' |
| | | FixedFilter: 'object.Filter( search )' |
| | | Source: 'InterfaceDataset' |
| | | Source: 'dhRows' |
| | | Taborder: 0 |
| | | Transformation: 'AssemblyOnlinePlanVersion.Column' |
| | | Transformation: 'Elements.Cell.Column' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | Children: |
| | | [ |
| | | #child: MatrixEditorTable_384 |
| | | Component dhRows |
| | | { |
| | | #keys: '[730572.0.144480758]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[AssemblyOnlinePlanVersionRow]*' |
| | | Children: |
| | | [ |
| | | Component deRows |
| | | { |
| | | #keys: '[730572.0.144480804]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | FilterArguments: 'units:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderUnit;products:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderProduct' |
| | | FixedFilter: 'not object.Version().IsShow() and ( units.Size() = 0 or exists( units, Elements, unit, unit.ID() = object.ProductionLine() ) ) and ( products.Size() = 0 or exists( products, Elements, product, product.ID() = object.Name() ) )' |
| | | Source: 'InterfaceDataset' |
| | | Taborder: 0 |
| | | Transformation: 'AssemblyOnlinePlanVersion.Row' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | // æ´æ°åºå |
| | | InventoryInterfaceData::UpdateInventoryQuantity( InterfaceDataset, dsStart.Date(), dsEnd.Date() ); |
| | | |
| | | dhStartDate.Data( dsStart.Date().Format( "YM2D2" ) ) |
| | | dhEndDate.Data( dsEnd.Date().Format( "YM2D2" ) ); |
| | | *] |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | Source: 'InterfaceDataset' |
| | | DataType: 'structured[InventoryPlanArchiveRow]' |
| | | Source: 'dhRows' |
| | | Taborder: 0 |
| | | Transformation: 'InventoryPlanArchiveVersion.Row.Cell' |
| | | Transformation: 'Elements.Cell' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | FilterArguments: 'units:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderUnit;products:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderProduct' |
| | | FixedFilter: '( units.Size() = 0 or exists( units, Elements, unit, unit.ID() = object.Unit() ) ) and ( products.Size() = 0 or exists( products, Elements, product, product.ID() = object.Name() ) )' |
| | | Source: 'InterfaceDataset' |
| | | DataType: 'structured[InventoryPlanArchiveRow]' |
| | | Source: 'dhRows' |
| | | Taborder: 0 |
| | | Transformation: 'InventoryPlanArchiveVersion.Row' |
| | | Transformation: 'Elements' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | DataType: 'structured[InventoryPlanArchiveRow]' |
| | | Description: '( search.StartDate().IsMinInfinity() or object.StartDate() >= search.StartDate() ) and ( search.EndDate().IsMaxInfinity() or object.StartDate() <= search.EndDate() )' |
| | | FilterArguments: 'search:QMacroPlanner::FormInventoryPlanArchive.dhSearch' |
| | | FixedFilter: 'object.Filter( search )' |
| | | Source: 'InterfaceDataset' |
| | | Source: 'dhRows' |
| | | Taborder: 0 |
| | | Transformation: 'InventoryPlanArchiveVersion.Column' |
| | | Transformation: 'Elements.Cell.Column' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component bSynchronizeActualInventory |
| | | { |
| | | #keys: '[730572.0.167441650]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: '忥å®é
åºå' |
| | | Taborder: 2 |
| | | Visible: false |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | Children: |
| | | [ |
| | | #child: MatrixEditorTable_791 |
| | | Component dhRows |
| | | { |
| | | #keys: '[730572.0.172650978]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[InventoryPlanArchiveRow]*' |
| | | Children: |
| | | [ |
| | | Component deRows |
| | | { |
| | | #keys: '[730572.0.172651057]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | FilterArguments: 'units:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderUnit;products:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderProduct' |
| | | FixedFilter: 'not object.Version().IsShow() and ( units.Size() = 0 or exists( units, Elements, unit, unit.ID() = object.Unit() ) ) and ( products.Size() = 0 or exists( products, Elements, product, product.ID() = object.Name() ) )' |
| | | Source: 'InterfaceDataset' |
| | | Taborder: 0 |
| | | Transformation: 'InventoryPlanArchiveVersion.Row' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelPeriod_71/bSynchronizeActualInventory |
| | | Response OnClick () id:Response_PanelPeriod_71_bSynchronizeActualInventory_OnClick |
| | | { |
| | | #keys: '[730572.0.167291731]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | InventoryPlanArchiveCell::SynchronizeActualInventory( InterfaceDataset, Archive ); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success(), true ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ImgIsIncluded","title":"ImgIsIncluded","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ImgIsIncluded"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"InventoryPoint","title":"InventoryPoint","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"InventoryPoint"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockpoingPoint","title":"StockpoingPoint","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockpoingPoint"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Fac","title":"Fac","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Fac"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Dtype","title":"Dtype","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Dtype"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ImgIsIncluded","title":"ImgIsIncluded","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ImgIsIncluded"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"InventoryPoint","title":"InventoryPoint","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"InventoryPoint"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockpoingPoint","title":"StockingPoint","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockpoingPoint"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Fac","title":"Fac","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Fac"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Dtype","title":"Dtype","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Dtype"}}]' |
| | | ContextMenu: 'listContextMenuInventoryPointSelection' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bDetectingNegativeValues id:bDetectingNegativeValues_791 |
| | | { |
| | | #keys: '[730572.0.159950553]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Detecting negative values' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader_136/bDetectingNegativeValues_791 |
| | | Response OnClick () id:Response_pHeader_bDetectingNegativeValues_OnClick_812 |
| | | { |
| | | #keys: '[730572.0.159950552]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | res := NewAssemblyOnlinePlanCell::DetectingNegativeValues( MacroPlan ); |
| | | |
| | | WebMessageBox::Success( res, true ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component bDetectingNegativeValues |
| | | { |
| | | #keys: '[730572.0.159670034]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Detecting negative values' |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/bDetectingNegativeValues |
| | | Response OnClick () id:Response_pHeader_bDetectingNegativeValues_OnClick |
| | | { |
| | | #keys: '[730572.0.159870568]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | res := NewOfflinePlanCell::DetectingNegativeValues( MacroPlan ); |
| | | |
| | | WebMessageBox::Success( res, true ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component ButtonPeriod |
| | | { |
| | | #keys: '[730572.0.144413017]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'ARROW_CIRCLE2' |
| | | Label: '忥å®é
产é' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | [ |
| | | DataType: 'InterfaceDataset' |
| | | FilterArguments: 'units:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderUnit;products:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderProduct' |
| | | FixedFilter: '( units.Size() = 0 or exists( units, Elements, unit, unit.ID() = object.ProductionLine() ) ) and ( products.Size() = 0 or exists( products, Elements, product, product.ID() = object.Name() ) )' |
| | | FixedFilter: 'not object.Version().IsShow() and ( units.Size() = 0 or exists( units, Elements, unit, unit.ID() = object.ProductionLine() ) ) and ( products.Size() = 0 or exists( products, Elements, product, product.ID() = object.Name() ) )' |
| | | Source: 'InterfaceDataset' |
| | | Taborder: 0 |
| | | Transformation: 'OfflinePlanArchiveVersion.Row' |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelPeriod/ButtonPeriod |
| | | Response OnClick () id:Response_PanelPeriod_ButtonPeriod_OnClick |
| | | { |
| | | #keys: '[730572.0.156334897]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | OfflinePlanArchiveCell::SynchronizeActualProduction( InterfaceDataset, Archive ); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | AOnlineAndMOfflinePlanPIR::Publish( InterfaceDataset, selection.InterfaceLoginfo() ); |
| | | //AOnlineAndMOfflinePlanPIR::Publish( InterfaceDataset, selection.InterfaceLoginfo() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component bWriteBackTheTransferPlan |
| | | { |
| | | #keys: '[730572.0.154074820]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Write back' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/bWriteBackTheTransferPlan |
| | | Response OnClick () id:Response_pHeader_bWriteBackTheTransferPlan_OnClick |
| | | { |
| | | #keys: '[730572.0.154074898]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | TransferPlanCell::WriteBackTheTransferPlan( MacroPlan, DataHolderCheckedProduct.Data() ); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | { |
| | | viewcontents |
| | | { |
| | | forms |
| | | { |
| | | form_FormAPIRMS64ProductRelation |
| | | { |
| | | title: 'QMacroPlanner::FormAPIRMS64ProductRelation' |
| | | shown: true |
| | | componentID: 'QMacroPlanner::FormAPIRMS64ProductRelation' |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 1 |
| | | rowSpan: 13 |
| | | columnPosition: 1 |
| | | columnSpan: 12 |
| | | } |
| | | components |
| | | { |
| | | FormAPIRMS64ProductRelation_pHeader |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormAPIRMS64ProductRelation_pContent |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormAPIRMS64ProductRelation_List920 |
| | | { |
| | | } |
| | | FormAPIRMS64ProductRelation_DataSetLevel195 |
| | | { |
| | | groupDepth: -1 |
| | | column_Factory |
| | | { |
| | | columnId: 'Factory' |
| | | dataPath: 'Factory' |
| | | dataType: 'string' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 252 |
| | | } |
| | | column_Product |
| | | { |
| | | columnId: 'Product' |
| | | dataPath: 'Product' |
| | | dataType: 'string' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 239 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormOptimizerPuzzles |
| | | { |
| | | title: 'Optimizer Puzzles' |
| | | shown: false |
| | | componentID: 'FormOptimizerPuzzles' |
| | | layout |
| | | { |
| | | mode: 'dockright' |
| | | index: 0 |
| | | } |
| | | components |
| | | { |
| | | FormOptimizerPuzzles_ListOptimizerPuzzles |
| | | { |
| | | } |
| | | FormOptimizerPuzzles_DataSetLevelOptimizerPuzzles |
| | | { |
| | | groupDepth: -1 |
| | | column_All_constraints |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | dataType: 'string' |
| | | title: 'All constraints' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 32 |
| | | } |
| | | column_Name |
| | | { |
| | | columnId: 'Name' |
| | | dataPath: 'Name' |
| | | dataType: 'string' |
| | | title: 'Name' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 109 |
| | | } |
| | | column_Description |
| | | { |
| | | columnId: 'Description' |
| | | dataPath: 'Description' |
| | | dataType: 'string' |
| | | title: 'Description' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 207 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormSanityCheck |
| | | { |
| | | title: 'Sanity Check' |
| | | shown: false |
| | | componentID: 'FormSanityCheck' |
| | | layout |
| | | { |
| | | mode: 'dockright' |
| | | index: 1 |
| | | } |
| | | components |
| | | { |
| | | FormSanityCheck_PanelSanityCheckToolbar |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormSanityCheck_PanelSanityCheckContent |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormSanityCheck_PanelSanityCheckGroup |
| | | { |
| | | sizeRatio: 4 |
| | | } |
| | | FormSanityCheck_ListSanityCheckGroup |
| | | { |
| | | } |
| | | FormSanityCheck_DataSetLevelSanityCheckGroup |
| | | { |
| | | groupDepth: -1 |
| | | sort: 'DESC:IsShown,DESC:SanityCheckHighestCategory,DESC:_Expr3' |
| | | column_All_constraints |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | dataType: 'string' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 31 |
| | | } |
| | | column_Show |
| | | { |
| | | columnId: 'Show' |
| | | dataPath: 'Show' |
| | | dataType: 'string' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 31 |
| | | } |
| | | column_Category |
| | | { |
| | | columnId: 'Category' |
| | | dataPath: 'Category' |
| | | dataType: 'string' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 31 |
| | | } |
| | | column_Group |
| | | { |
| | | columnId: 'Group' |
| | | dataPath: 'Group' |
| | | dataType: 'string' |
| | | index: 3 |
| | | subtotals: '' |
| | | width: 235 |
| | | } |
| | | column__Expr3 |
| | | { |
| | | columnId: '_Expr3' |
| | | dataPath: '_Expr3' |
| | | dataType: 'number' |
| | | index: 4 |
| | | subtotals: '' |
| | | width: 85 |
| | | } |
| | | } |
| | | FormSanityCheck_PanelSanityCheckMessage |
| | | { |
| | | sizeRatio: 5 |
| | | } |
| | | FormSanityCheck_ListSanityCheckMessage |
| | | { |
| | | } |
| | | FormSanityCheck_DataSetLevelSanityCheckMessage |
| | | { |
| | | groupDepth: -1 |
| | | sort: 'DESC:IsShown,SanityCheckGroup.Type,SanityCheckGroup.Group,Description' |
| | | column_All_constraints |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | dataType: 'string' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 31 |
| | | } |
| | | column_Show |
| | | { |
| | | columnId: 'Show' |
| | | dataPath: 'Show' |
| | | dataType: 'string' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 31 |
| | | } |
| | | column_Category |
| | | { |
| | | columnId: 'Category' |
| | | dataPath: 'Category' |
| | | dataType: 'string' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 31 |
| | | } |
| | | column_Messages |
| | | { |
| | | columnId: 'Messages' |
| | | dataPath: 'Messages' |
| | | dataType: 'string' |
| | | index: 3 |
| | | subtotals: '' |
| | | width: 31 |
| | | } |
| | | column_Description |
| | | { |
| | | columnId: 'Description' |
| | | dataPath: 'Description' |
| | | dataType: 'string' |
| | | index: 4 |
| | | subtotals: '' |
| | | width: 505 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormOptimizerStrategiesSlideIn |
| | | { |
| | | title: 'Optimizer Strategies' |
| | | shown: true |
| | | componentID: 'FormOptimizerStrategiesSlideIn' |
| | | layout |
| | | { |
| | | mode: 'dockright' |
| | | index: 2 |
| | | } |
| | | components |
| | | { |
| | | FormOptimizerStrategiesSlideIn_ListOptimizerStrategiesSlideIn |
| | | { |
| | | } |
| | | FormOptimizerStrategiesSlideIn_DataSetLevelOptimizerStrategiesSlideIn |
| | | { |
| | | groupDepth: -1 |
| | | column_All_constraints |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | dataType: 'string' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 32 |
| | | } |
| | | column_ImgIsValid |
| | | { |
| | | columnId: 'ImgIsValid' |
| | | dataPath: 'ImgIsValid' |
| | | dataType: 'string' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 32 |
| | | } |
| | | column_Name |
| | | { |
| | | columnId: 'Name' |
| | | dataPath: 'Name' |
| | | dataType: 'string' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 270 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | page: '' |
| | | group: '' |
| | | index: 0 |
| | | image: 'BEAR' |
| | | description: '' |
| | | } |
| | | formatversion: 2 |
| | | id: 'APIMS64ProductRelation' |
| | | name: 'APIMS64ProductRelation' |
| | | isglobal: false |
| | | isroot: true |
| | | } |
| | |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormInventoryPlanArchive_PanelRowSearch |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormInventoryPlanArchive_PanelUnit |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormInventoryPlanArchive_PanelProduct |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormInventoryPlanArchive_PanelColumnSearch |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | |
| | | } |
| | | FormInventoryPlanArchive_MatrixEditorTable |
| | | { |
| | | totalHeaderWidth: 200 |
| | | gridColor: '#c4c4c4' |
| | | totalHeaderWidth: 378 |
| | | attributeHeaderWidthRatio: 0.6 |
| | | nameHeaderWidthRatio: 0.4 |
| | | columnWidth: 100 |
| | | horizontalGrid: true |
| | | verticalGrid: true |
| | | gridColor: '#c4c4c4' |
| | | backendState |
| | | { |
| | | componentId: 'QMacroPlanner::FormInventoryPlanArchive.MatrixEditorTable' |
| | | state |
| | | { |
| | | cells |
| | | { |
| | | attributes |
| | | { |
| | | attribute_PlanQuantity |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 0 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'PlanQuantity' |
| | | } |
| | | attribute_ActualQuantity |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 1 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'ActualQuantity' |
| | | } |
| | | } |
| | | } |
| | | columns |
| | | { |
| | | sorting |
| | | { |
| | | criteria: "datamember:'StartDate'" |
| | | } |
| | | } |
| | | rows |
| | | { |
| | | sorting |
| | | { |
| | | criteria: "datamember:'Name'" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | page: '' |
| | | group: '' |
| | | index: 31 |
| | | index: 0 |
| | | image: 'WAREHOUSE' |
| | | description: '' |
| | | } |