¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InterfaceArchive ( |
| | | MacroPlan macroPlan, |
| | | InterfaceDataset interfaceDataset |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | nopt := maxselect( macroPlan, NewOfflinePlanTable, tempNOPT, true, tempNOPT.SaveDateTime() ); |
| | | |
| | | // éæ©æå®çæ¬ä¸çº¿è®¡åæ¥å£æ°æ® |
| | | inopv := select( interfaceDataset, InterfaceNewOfflinePlanVersion, tempINOPV, tempINOPV.ScenarioName() = macroPlan.ScenarioName() ); |
| | | if ( isnull( inopv ) ) { |
| | | inopv := interfaceDataset.InterfaceNewOfflinePlanVersion( relnew, ScenarioName := macroPlan.ScenarioName() ); |
| | | } else { |
| | | inopv.Delete(); |
| | | inopv := interfaceDataset.InterfaceNewOfflinePlanVersion( relnew, ScenarioName := macroPlan.ScenarioName() ); |
| | | } |
| | | |
| | | // å建ä¸çº¿è®¡åæ¥å£æ°æ® |
| | | traverse ( nopt, NewOfflinePlanRow.NewOfflinePlanCell, nopcell, nopcell.NewOfflinePlanRow().Type() = "1" ) { |
| | | inopv.InterfaceNewOfflinePlanDetailData( relnew, |
| | | Order := nopcell.Order(), |
| | | OrderNr := nopcell.OrderNr(), |
| | | ProductID := nopcell.NewOfflinePlanRow().ProductID(), |
| | | ProductionLine := nopcell.NewOfflinePlanRow().ProductionLine(), |
| | | Quantity := nopcell.Quantity(), |
| | | ShiftPatternEnd := nopcell.ShiftPatternEnd(), |
| | | ShiftPatternName := nopcell.ShiftPatternName(), |
| | | ShiftPatternStart := nopcell.ShiftPatternStart(), |
| | | StartDate := nopcell.StartDate() |
| | | ); |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Factory |
| | | { |
| | | #keys: '3[413988.0.1657777327][413988.0.1657777326][413988.0.1657777328]' |
| | | Description: '大è¿å·¥å/é¿æ¥å·¥å' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute FactoryAbbreviation |
| | | { |
| | | #keys: '3[413988.0.1657777340][413988.0.1657777339][413988.0.1657777341]' |
| | | Description: 'å·¥åç®å' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Function CalcFactoryAbbreviation |
| | | { |
| | | TextBody: |
| | | [* |
| | | // lihongji Oct-14-2024 (created) |
| | | |
| | | value := ifexpr( this.Factory() = "大è¿å·¥å", "DL", "CC" ); |
| | | |
| | | this.FactoryAbbreviation( value ); |
| | | *] |
| | | } |
| | |
| | | [ |
| | | DataBinding: 'DataHolderDialogData.Data.ProductID' |
| | | Label: 'Product ID' |
| | | Taborder: 0 |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component npQuantity |
| | |
| | | [ |
| | | DataBinding: 'DataHolderDialogData.Data.Quantity' |
| | | Label: 'Quantity' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component ddslFactory |
| | | { |
| | | #keys: '[413988.0.1660241136]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderDialogData.Data.Factory' |
| | | Label: 'Factory' |
| | | Strings: '大è¿å·¥å;é¿æ¥å·¥å' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Factory","title":"Factory","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Factory"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}}]' |
| | | ContextMenu: 'cmContent' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | EnterButton: 'btnOk' |
| | | EscapeButton: 'btnCancel' |
| | | ExcludeFromActiveComponent: true |
| | | MinimumColumns: 50 |
| | | MinimumColumns: 80 |
| | | MinimumRows: 30 |
| | | Padding: 'false' |
| | | ] |
| | |
| | | Title: 'Show/Hide total' |
| | | ] |
| | | } |
| | | Component mResetArchive |
| | | { |
| | | #keys: '[413988.0.1657458774]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'UNDO' |
| | | Taborder: 4 |
| | | Title: 'éç½®åæ¡£ï¼æµè¯ä¸ç¨ï¼' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: matrixeditorContextMenu229/mResetArchive |
| | | Response OnClick () id:Response_matrixeditorContextMenu229_mResetArchive_OnClick |
| | | { |
| | | #keys: '[413988.0.1657340921]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | MacroPlan.A_PreviousScenaioName( "" ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/bConfirm_978 |
| | | Response OnClick () id:Response_pHeader_bConfirm_OnClick |
| | | { |
| | | #keys: '[413988.0.1657320536]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ) and not isnull( InterfaceDataset ) and MacroPlan.A_PreviousScenaioName() <> MacroPlan.ScenarioName() |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | // åæ¡£ |
| | | NewOfflinePlanCell::InterfaceArchive( MacroPlan, InterfaceDataset ); |
| | | |
| | | // 设置æé®ï¼é¤ä¸è½½ï¼ä¸å¯ç¨ |
| | | MacroPlan.A_PreviousScenaioName( MacroPlan.ScenarioName() ); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/bDeductChangeoverLoss_737 |
| | | Response OnClick () id:Response_pHeader_bDeductChangeoverLoss_OnClick |
| | | { |
| | | #keys: '[413988.0.1657320426]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ) and MacroPlan.A_PreviousScenaioName() <> MacroPlan.ScenarioName(); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | return not isnull( MacroPlan ) and MacroPlan.A_PreviousScenaioName() <> MacroPlan.ScenarioName(); |
| | | *] |
| | | QuillAction |
| | | { |
| | |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | return not isnull( MacroPlan ) and MacroPlan.A_PreviousScenaioName() <> MacroPlan.ScenarioName(); |
| | | *] |
| | | QuillAction |
| | | { |
| | |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | return not isnull( MacroPlan ) and MacroPlan.A_PreviousScenaioName() <> MacroPlan.ScenarioName(); |
| | | *] |
| | | QuillAction |
| | | { |
| | |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | return not isnull( MacroPlan ) and MacroPlan.A_PreviousScenaioName() <> MacroPlan.ScenarioName(); |
| | | *] |
| | | QuillAction |
| | | { |