Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Suffix |
| | | { |
| | | #keys: '3[414996.1.26354666][414996.1.26354665][414996.1.26354667]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute isUsed |
| | | { |
| | | #keys: '3[414996.1.27011002][414996.1.27011001][414996.1.27011003]' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | ISOValue: 'false' |
| | | TargetAttribute: isUsed |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Use |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Aug-26-2024 (created) |
| | | this.isUsed( true ); |
| | | |
| | | copy_routing := this.Routing().Copy( this.Suffix() + this.StartDate().Format( "Y-M2-D2") ); |
| | | |
| | | copy_routing.Start( this.StartDate() ); |
| | | |
| | | copy_routing.End( this.EndDate() ); |
| | | |
| | | traverse( copy_routing,OperationForPlanningMatrix,op){ |
| | | op.Throughput( op.Throughput() * ( this.Percentage() / 100) ); |
| | | } |
| | | |
| | | copy_routing.CopyUphillRouting( relset, this ); |
| | | *] |
| | | } |
| | |
| | | Date endDate, |
| | | Real percentage, |
| | | String suffix |
| | | ) |
| | | ) as UphillRouting |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-14-2024 (created) |
| | | |
| | | verifyData := select( owner,UphillRouting,ur,ur.Type() = suffix and LocalTool::IsOverlap( ur.StartDate(),ur.EndDate(),startDate,endDate )); |
| | | verifyData := select( owner,UphillRouting,ur,ur.Suffix() = suffix and LocalTool::IsOverlap( ur.StartDate(),ur.EndDate(),startDate,endDate )); |
| | | if( not isnull( verifyData )){ |
| | | error( "设置çStartåEndä¸å¯ä¸å·²ææ°æ®çæ¶é´åºé´éå ã" ); |
| | | } |
| | | |
| | | data := owner.UphillRouting( relnew,StartDate := startDate, EndDate := endDate,Percentage := percentage,Type := suffix ); |
| | | data := owner.UphillRouting( relnew,StartDate := startDate, EndDate := endDate,Percentage := percentage,Suffix := suffix ); |
| | | |
| | | copy_routing := owner.Copy( suffix + startDate.Format( "Y-M2-D2") ); |
| | | |
| | | copy_routing.Start( startDate ); |
| | | |
| | | copy_routing.End( endDate ); |
| | | |
| | | traverse( copy_routing,OperationForPlanningMatrix,op){ |
| | | op.Throughput( op.Throughput() * ( percentage / 100) ); |
| | | } |
| | | |
| | | copy_routing.CopyUphillRouting( relset, data ); |
| | | return data; |
| | | *] |
| | | } |
| | |
| | | [* |
| | | // rislai Jun-14-2024 (created) |
| | | traverse( unit,Operation.RoutingForPlanningMatrix,routing , routing.IsEnabled() and LocalTool::IsOverlap( startDate,endDate,routing.Start(),routing.End())){ |
| | | UphillRouting::Create( routing,startDate,endDate,percentage,"_产线ç¬å¡_" ); |
| | | suffix := "_产线ç¬å¡_"; |
| | | |
| | | data := UphillRouting::Create( routing,startDate,endDate,percentage,suffix ); |
| | | |
| | | data.Use(); |
| | | |
| | | } |
| | | *] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataBinding: 'dhDialogData.Data.Percentage' |
| | | Label: 'Percentage' |
| | | Label: 'Percentage*' |
| | | Max: '99' |
| | | Min: '1' |
| | | PlaceHolder: 'Percentage 为å¿
填项' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component efPercentage |
| | | { |
| | | #keys: '[414996.1.29740363]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'dhDialogData.Data.Percentage' |
| | | Enabled: false |
| | | Label: 'Final Percentage' |
| | | Taborder: 4 |
| | | Tooltip: 'æç»è¾å
¥çPercentageä¼å¨è¿éå±ç¤º' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | }else{ |
| | | |
| | | } |
| | | info( npPercentage.Number() ); |
| | | *] |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( WebMessageBox::Warning( Form, "æ¯å¦ç¡®è®¤çæå·¥èºè·¯çº¿ï¼",Translations::MessageBox_OKCancel() ,true ) = 0 ){ |
| | | Form.OnOK(); |
| | | Form.Close(); |
| | | }else{ |
| | | Form.Close(); |
| | | } |
| | | Form.OnOK(); |
| | | Form.Close(); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlContent/efPercentage |
| | | Response OnCreated () id:Response_pnlContent_efPercentage_OnCreated |
| | | { |
| | | #keys: '[414996.1.29740670]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( isnull( dhDialogData.Data() )){ |
| | | this.Text( [String]90 ); |
| | | } |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlContent/npPercentage |
| | | Response OnUserChanged () id:Response_pnlContent_npPercentage_OnUserChanged |
| | | { |
| | | #keys: '[414996.1.28611725]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebNumberPicker_OnUserChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | efPercentage.Text( [String]this.Number() ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'Routing' |
| | | FixedFilter: 'object.Type() = "_产åç¬å¡_"' |
| | | FixedFilter: 'object.Suffix() = "_产åç¬å¡_"' |
| | | Source: 'dhRouting' |
| | | Taborder: 0 |
| | | Transformation: 'UphillRouting' |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlActions id:pnlActions_646 |
| | | { |
| | | #keys: '[414996.1.26570436]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component btnOk |
| | | { |
| | | #keys: '[414996.1.26570437]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'OK' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component btnCancel |
| | | { |
| | | #keys: '[414996.1.26570438]' |
| | | 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 |
| | | #parent: #root |
| | | Method UseUphillRoutings () id:Method_DialogCreateEditUphillRoutings_UseUphillRoutings |
| | | { |
| | | #keys: '[414996.1.26570568]' |
| | | Body: |
| | | [* |
| | | traverse( dhRouting.Data(),UphillRouting,uphillRouting,not uphillRouting.isUsed() ){ |
| | | uphillRouting.Use(); |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions_646/btnCancel |
| | | Response OnClick () id:Response_pnlActions_646_btnCancel_OnClick |
| | | { |
| | | #keys: '[414996.1.26570434]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.Close(); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions_646/btnOk |
| | | Response OnClick () id:Response_pnlActions_646_btnOk_OnClick |
| | | { |
| | | #keys: '[414996.1.26570435]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( WebMessageBox::Warning( Form, "æ¯å¦ç¡®è®¤çæå·¥èºè·¯çº¿ï¼",Translations::MessageBox_OKCancel() ,true ) = 0 ){ |
| | | Form.UseUphillRoutings(); |
| | | Form.Close(); |
| | | }else{ |
| | | // Form.Close(); |
| | | } |
| | | *] |
| | | } |
| | | } |
| | |
| | | Children: |
| | | [ |
| | | #child: pnlContent |
| | | #child: pnlActions_646 |
| | | ] |
| | | Properties: |
| | | [ |