| | |
| | | BaseType: Object |
| | | OnCreate: |
| | | [* |
| | | ips := select( this, InventoryInterfaceData.InterfaceDataset.InventoryPointSelection, tempIPS, tempIPS.ProductID() = this.PartNumber() and tempIPS.InventoryPoint() = this.InventoryPoint() ); |
| | | ips := select( this, InventoryInterfaceData.InterfaceDataset.InventoryPointSelection, tempIPS, tempIPS.ProductID() = this.PartNumber() and tempIPS.InventoryPoint() = this.InventoryPoint() and this.Fac() = tempIPS.Fac() ); |
| | | |
| | | if ( isnull( ips ) ) { |
| | | ips := this.InventoryInterfaceData().InterfaceDataset().InventoryPointSelection( relnew, ProductID := this.PartNumber(), InventoryPoint := this.InventoryPoint() ); |
| | | ips := this.InventoryInterfaceData().InterfaceDataset().InventoryPointSelection( relnew, ProductID := this.PartNumber(), InventoryPoint := this.InventoryPoint(), Fac := this.Fac() ); |
| | | } |
| | | |
| | | this.InventoryPointSelection( relset, ips ); |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Fac |
| | | { |
| | | #keys: '3[415136.0.1245540896][415136.0.1245540895][415136.0.1245540897]' |
| | | ValueType: String |
| | | } |
| | |
| | | |
| | | value := 0.0; |
| | | if( this.IsIncluded() ){ |
| | | value := sum( this, InventoryInterfaceDataDetail, detail, detail.Quantity() ); |
| | | value := sum( this, InventoryInterfaceDataDetail, detail, detail.Fac() = this.Fac() and detail.InventoryPoint() = this.InventoryPoint(), detail.Quantity() ); |
| | | } |
| | | |
| | | this.Quantity( value ); |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlActions |
| | | { |
| | | #keys: '[415136.0.1245102214]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component btnOk |
| | | { |
| | | #keys: '[415136.0.1245102218]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'OK' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component btnCancel |
| | | { |
| | | #keys: '[415136.0.1245102220]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Cancel' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | Border: true |
| | | ExcludeFromActiveComponent: true |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Padding: 'true' |
| | | Style: 'footer' |
| | | Taborder: 1 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlContent |
| | | { |
| | | #keys: '[415136.0.1245102212]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component efQuantity |
| | | { |
| | | #keys: '[415136.0.1247200387]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'dhInventoryPointDetail.Data.Quantity' |
| | | Label: 'Quantity' |
| | | Mask: 'REAL' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Padding: 'true' |
| | | Taborder: 0 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method EditQuantity ( |
| | | InventoryInterfaceDataDetail selection |
| | | ) id:Method_DialogInventoryPointDetail_EditQuantity |
| | | { |
| | | #keys: '[415136.0.1247200534]' |
| | | Body: |
| | | [* |
| | | data := shadow( selection ); |
| | | |
| | | dhInventoryPointDetail.Data( &data ); |
| | | |
| | | |
| | | ApplicationMacroPlanner.ShowFormModal( this ); |
| | | *] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method OnOK () id:Method_DialogInventoryPointDetail_OnOK |
| | | { |
| | | #keys: '[415136.0.1247200558]' |
| | | Body: |
| | | [* |
| | | this.ApplyChanges(); |
| | | |
| | | data := dhInventoryPointDetail.Data(); |
| | | |
| | | data.Commit(); |
| | | |
| | | this.Close(); |
| | | *] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions/btnCancel |
| | | Response OnClick () id:Response_pnlActions_btnCancel_OnClick |
| | | { |
| | | #keys: '[415136.0.1245102224]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.Close(); |
| | | *] |
| | | } |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions/btnOk |
| | | Response OnClick () id:Response_pnlActions_btnOk_OnClick |
| | | { |
| | | #keys: '[415136.0.1245102223]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.OnOK(); |
| | | *] |
| | | } |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent DialogInventoryPointDetail |
| | | { |
| | | #keys: '[415136.0.1245102210]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: pnlContent |
| | | #child: pnlActions |
| | | Component dhInventoryPointDetail |
| | | { |
| | | #keys: '[415136.0.1247200437]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'shadow[InventoryInterfaceDataDetail]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | EnterButton: 'btnOk' |
| | | EscapeButton: 'btnCancel' |
| | | ExcludeFromActiveComponent: true |
| | | Padding: 'false' |
| | | Title: 'Inventory Point detail' |
| | | ] |
| | | } |
| | |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListInventoryInterfaceDataDetail_WebMenu_OnClick |
| | | { |
| | | #keys: '[415136.0.1248380180]' |
| | | Initiator: 'WebMenu' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[1847.0.10867430]' |
| | | Binding: 'this.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | |
| | | { |
| | | #keys: '[413988.0.1227911961]' |
| | | BaseType: 'listContextMenu' |
| | | Children: |
| | | [ |
| | | Component MenuEditQuantity |
| | | { |
| | | #keys: '[415136.0.1248380086]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | Title: 'Edit quantity' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListInventoryInterfaceDataDetail |
| | | Response OnClick ( |
| | | InventoryInterfaceDataDetail selection |
| | | ) id:Response_ListInventoryInterfaceDataDetail_MenuEditQuantity_OnClick |
| | | { |
| | | #keys: '[415136.0.1248380197]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListInventoryInterfaceDataDetail/Responsedef_ListInventoryInterfaceDataDetail_WebMenu_OnClick |
| | | Initiator: 'MenuEditQuantity' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogInventoryPointDetail ); |
| | | |
| | | dlg.EditQuantity( selection ); |
| | | *] |
| | | 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","editable":false,"attribute":"Quantity"}}]' |
| | | 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"}}]' |
| | | ContextMenu: 'listContextMenuInventoryPointSelection' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | FormInventoryPointSelection_DataSetLevelInventoryPointSelection |
| | | { |
| | | groupDepth: -1 |
| | | sort: 'InventoryPoint' |
| | | sort: 'DESC:Fac' |
| | | column_ImgIsIncluded |
| | | { |
| | | columnId: 'ImgIsIncluded' |
| | |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Quantity |
| | | column_Fac |
| | | { |
| | | columnId: 'Quantity' |
| | | dataPath: 'Quantity' |
| | | dataType: 'real' |
| | | columnId: 'Fac' |
| | | dataPath: 'Fac' |
| | | dataType: 'string' |
| | | index: 4 |
| | | subtotals: '' |
| | | width: 150 |
| | | width: 89 |
| | | } |
| | | } |
| | | } |