¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Generate ( |
| | | InterfaceDataset interfaceDataset, |
| | | Date date, |
| | | String partno, |
| | | String inventory, |
| | | Number quantitiy |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Jul-26-2024 (created) |
| | | iid := selectobject( interfaceDataset, InventoryInterfaceData, iid, iid.Date() = date and iid.PartNumber() = partno ); |
| | | if( isnull( iid ) ){ |
| | | iid := interfaceDataset.InventoryInterfaceData( relnew, Date := date, PartNumber := partno ); |
| | | } |
| | | iidl := selectobject( iid, InventoryInterfaceDataDetail, detail, detail.InventoryPoint() = inventory ); |
| | | if( isnull( iidl ) ){ |
| | | iid.InventoryInterfaceDataDetail( relnew, Date := date, PartNumber := partno, InventoryPoint := inventory, Quantity := quantitiy ); |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SynchronizeInventory ( |
| | | const MacroPlan macroPlan, |
| | | InterfaceDataset interfaceDataset |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | |
| | | //æ¸
空åæçåºåæ´æ°æ°æ® |
| | | //traverse( interfaceDataset, InventoryInterfaceData, iid, iid.Date() = date ){ |
| | | // iid.Delete(); |
| | | //} |
| | | // è·åæå®æ¥æåºåæ¥å£æ°æ® |
| | | traverse( interfaceDataset, InterfaceLoginfo, loginfo, loginfo.Last() |
| | | and ( loginfo.Name() = Translations::InterfaceDataset_MachineStockData_Name() |
| | | or loginfo.Name() = Translations::InterfaceDataset_FinishedEngineInventory_Name() ) ){ |
| | | //æºå åºå |
| | | traverse( loginfo, MachineStockData, inventory ){ |
| | | InventoryInterfaceData::Generate( interfaceDataset, inventory.DDay(), inventory.MaterialNo(), inventory.LineType(), [Number]inventory.Total() ); |
| | | } |
| | | //å卿ºæååºå |
| | | traverse( loginfo, FinishedEngineInventory, inventory ){ |
| | | product := select( macroPlan, Product_MP, product, product.Notes() = inventory.FourCode() ); |
| | | InventoryInterfaceData::Generate( interfaceDataset, inventory.DDay(), product.ID(), inventory.BIPlace(), [Number]inventory.Total() ); |
| | | } |
| | | } |
| | | *] |
| | | } |
| | |
| | | Title: 'æµè¯ä½¿ç¨' |
| | | ] |
| | | } |
| | | Component MenuSynchronizeInventory |
| | | { |
| | | #keys: '[415136.0.952610516]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'ARROW_CIRCLE2' |
| | | Taborder: 4 |
| | | Title: 'Synchronize inventory' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: listContextMenuInventoryInterfaceData/MenuSynchronizeInventory |
| | | Response OnClick () id:Response_listContextMenuInventoryInterfaceData_MenuSynchronizeInventory_OnClick |
| | | { |
| | | #keys: '[415136.0.953720206]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | InventoryInterfaceData::SynchronizeInventory( MacroPlan, InterfaceDataset ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |