| | |
| | | product := tempProducts.Element( i ); |
| | | productionQuantity := product.ProductionQuantity(); |
| | | |
| | | if( line.Tips().LikeUserLocale( "ä¿å
»" ) and productionQuantity > 0){ |
| | | product.DispatchShiftSchedulingDetail( relnew,ShiftVolume := 0 ,SingleShiftName := "ç½ç"); |
| | | } |
| | | // if( line.Tips().LikeUserLocale( "ä¿å
»" ) and productionQuantity > 0){ |
| | | // product.DispatchShiftSchedulingDetail( relnew,ShiftVolume := 0 ,SingleShiftName := "ç½ç"); |
| | | // } |
| | | |
| | | if( singleShiftVolume1 > 0 and productionQuantity > 0){ |
| | | tempProductQuantity := singleShiftVolume1 - productionQuantity; |
| | |
| | | String partno, |
| | | String inventory, |
| | | String fac, |
| | | Number quantitiy |
| | | Number quantitiy, |
| | | String dtype |
| | | ) as InventoryInterfaceDataDetail |
| | | { |
| | | TextBody: |
| | |
| | | if( not isnull( product ) and exists( product.GetAllParent(), Elements, proparent, proparent.ID() = 'PL' ) ){ |
| | | quantitiy := floor( [Real]quantitiy / 4 ); |
| | | } |
| | | iidl := selectobject( iid, InventoryInterfaceDataDetail, detail, detail.InventoryPoint() = inventory and detail.Fac() = fac ); |
| | | iidl := selectobject( iid, InventoryInterfaceDataDetail, detail, detail.InventoryPoint() = inventory and detail.Fac() = fac and detail.Dtype() = dtype ); |
| | | if( isnull( iidl ) ){ |
| | | iidl := iid.InventoryInterfaceDataDetail( relnew, Date := date, PartNumber := partno, InventoryPoint := inventory, Fac := fac, Quantity := quantitiy ); |
| | | iidl := iid.InventoryInterfaceDataDetail( relnew, Date := date, PartNumber := partno, InventoryPoint := inventory, Fac := fac, Quantity := quantitiy, Dtype := dtype ); |
| | | }else{ |
| | | iidl.Quantity( quantitiy ); |
| | | } |
| | |
| | | [* |
| | | // çå
°é¸½ Jul-26-2024 (created) |
| | | traverse( scenariomanager, ScenarioMP, smp ){ |
| | | MDSMacroPlan::Root( smp.DatasetMDSID() ) -> InventoryInterfaceData::Generate( interfaceDataset, date, partno, inventory, fac, quantitiy ); |
| | | MDSMacroPlan::Root( smp.DatasetMDSID() ) -> InventoryInterfaceData::Generate( interfaceDataset, date, partno, inventory, fac, quantitiy, '' ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | // è·åæå®æ¥æåºåæ¥å£æ°æ® |
| | | //å卿ºæååºå |
| | | traverse( inventorys, Elements, inventory ){ |
| | | iidl := InventoryInterfaceData::Generate( macroplan, owner, inventory.DDay(), inventory.FourCode(), inventory.BIPlace(), inventory.Fac(), [Number]inventory.Total() ); |
| | | iidl.Dtype( inventory.DType() ); |
| | | InventoryInterfaceData::Generate( macroplan, owner, inventory.DDay(), inventory.FourCode(), inventory.BIPlace(), inventory.Fac(), [Number]inventory.Total(), inventory.DType() ); |
| | | // iidl.Dtype( inventory.DType() ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | if( inventory.Fac() = 'DL' and inventory.Lgort() = 'All' ){ |
| | | inventoryname := inventory.LineType(); |
| | | } |
| | | InventoryInterfaceData::Generate( macroPlan, interfaceDataset, inventory.DDay(), inventory.MaterialNo(), inventoryname, inventory.Fac(), [Number]inventory.Total() ); |
| | | InventoryInterfaceData::Generate( macroPlan, interfaceDataset, inventory.DDay(), inventory.MaterialNo(), inventoryname, inventory.Fac(), [Number]inventory.Total(), '' ); |
| | | } |
| | | //å卿ºæååºå |
| | | traverse( loginfo, FinishedEngineInventory, inventory ){ |
| | | InventoryInterfaceData::Generate( macroPlan, interfaceDataset, inventory.DDay(), inventory.FourCode(), inventory.BIPlace(), inventory.Fac(), [Number]inventory.Total() ); |
| | | InventoryInterfaceData::Generate( macroPlan, interfaceDataset, inventory.DDay(), inventory.FourCode(), inventory.BIPlace(), inventory.Fac(), [Number]inventory.Total(), inventory.DType() ); |
| | | } |
| | | } |
| | | *] |
| | |
| | | |
| | | iid1 := interfaceDataset.InventoryInterfaceData( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports" ); |
| | | |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "PXSN", Quantity := 900 ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "LPLE", Quantity := 800 ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "3PLE", Quantity := 3100 ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "PXSN", Quantity := 900, Dtype := "APS" ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "LPLE", Quantity := 800, Dtype := "HTTP" ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "3PLE", Quantity := 3100, Dtype := "eee" ); |
| | | *] |
| | | } |
| | |
| | | BaseType: Object |
| | | OnCreate: |
| | | [* |
| | | ips := select( this, InventoryInterfaceData.InterfaceDataset.InventoryPointSelection, tempIPS, tempIPS.ProductID() = this.PartNumber() and tempIPS.InventoryPoint() = this.InventoryPoint() and this.Fac() = tempIPS.Fac() ); |
| | | ips := select( this, InventoryInterfaceData.InterfaceDataset.InventoryPointSelection, tempIPS, |
| | | tempIPS.ProductID() = this.PartNumber() and |
| | | tempIPS.InventoryPoint() = this.InventoryPoint() and |
| | | this.Fac() = tempIPS.Fac() and |
| | | this.Dtype() = tempIPS.Dtype() ); |
| | | |
| | | if ( isnull( ips ) ) { |
| | | ips := this.InventoryInterfaceData().InterfaceDataset().InventoryPointSelection( relnew, ProductID := this.PartNumber(), InventoryPoint := this.InventoryPoint(), Fac := this.Fac() ); |
| | | ips := this.InventoryInterfaceData().InterfaceDataset().InventoryPointSelection( relnew, |
| | | ProductID := this.PartNumber(), |
| | | InventoryPoint := this.InventoryPoint(), |
| | | Fac := this.Fac(), |
| | | Dtype := this.Dtype() ); |
| | | } |
| | | |
| | | this.InventoryPointSelection( relset, ips ); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Dtype |
| | | { |
| | | #keys: '3[416456.0.19351383][416456.0.19351382][416456.0.19351384]' |
| | | ValueType: String |
| | | } |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: 'StockingPoint' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component eDtype |
| | | { |
| | | #keys: '[416456.0.20811940]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | Enabled: false |
| | | Label: 'Dtype' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | |
| | | efProductID.Text( dhInventoryPointSelection.Data().ProductID() ); |
| | | efInventoryPoint.Text( dhInventoryPointSelection.Data().InventoryPoint() ); |
| | | eDtype.Text( dhInventoryPointSelection.Data().Dtype() ); |
| | | |
| | | spmp := select( MacroPlan, StockingPoint_MP, tempSPMP, tempSPMP.ID() = inventoryPointSelection.StockpoingPoint() ); |
| | | ddlStockingPoint.Data( spmp ); |
| | |
| | | ] |
| | | 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","editable":false,"attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Fac","title":"Fac","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Fac"}}]' |
| | | 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"}}]' |
| | | ContextMenu: 'listContextMenuInventoryPointSelection' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | dataType: 'string' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 150 |
| | | width: 114 |
| | | } |
| | | column_Dtype |
| | | { |
| | | columnId: 'Dtype' |
| | | dataPath: 'Dtype' |
| | | dataType: 'string' |
| | | index: 3 |
| | | subtotals: '' |
| | | width: 81 |
| | | } |
| | | column_StockpoingPoint |
| | | { |
| | | columnId: 'StockpoingPoint' |
| | | dataPath: 'StockpoingPoint' |
| | | dataType: 'string' |
| | | index: 3 |
| | | index: 4 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | |
| | | columnId: 'Fac' |
| | | dataPath: 'Fac' |
| | | dataType: 'string' |
| | | index: 4 |
| | | index: 5 |
| | | subtotals: '' |
| | | width: 89 |
| | | } |