¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | EDIBroker MP_ExportSingleShiftConfigBroker |
| | | { |
| | | MDSDefinition: MacroPlan |
| | | TimeZone: 'ACT' |
| | | UseOSTimeZone: false |
| | | EDIModelLink.Source SingleShiftConfigSource |
| | | { |
| | | EDIMLTable SingleShiftConfig |
| | | { |
| | | TargetType: SingleShiftConfig |
| | | EDIMLColumn ID { Attribute: ID ValueType: String } |
| | | EDIMLColumn ShiftName { Attribute: ShiftName ValueType: String } |
| | | EDIMLColumn SingleShiftName { Attribute: SingleShiftName ValueType: String } |
| | | EDIMLColumn StandardYield { Attribute: StandardYield ValueType: Real } |
| | | EDIMLColumn UnitID { Attribute: UnitID ValueType: String } |
| | | } |
| | | } |
| | | EDITransformation.Transformation SingleShiftConfigTransformation |
| | | { |
| | | EDITableTransformation |
| | | { |
| | | InputTable: SingleShiftConfig |
| | | OutputTable: SingleShiftConfig |
| | | EDIColumnMatch { InputColumn: ID OutputColumn: ID } |
| | | EDIColumnMatch { InputColumn: ShiftName OutputColumn: ShiftName } |
| | | EDIColumnMatch { InputColumn: SingleShiftName OutputColumn: SingleShiftName } |
| | | EDIColumnMatch { InputColumn: StandardYield OutputColumn: StandardYield } |
| | | EDIColumnMatch { InputColumn: UnitID OutputColumn: UnitID } |
| | | } |
| | | } |
| | | EDIXLSLink.Destination SingleShiftConfigDestination |
| | | { |
| | | FileName: 'MP_SingleShiftConfig' |
| | | EDIXLSLinkTable SingleShiftConfig |
| | | { |
| | | Columns: |
| | | [ |
| | | EDIXLSLinkColumn ID { ValueType: String } |
| | | EDIXLSLinkColumn ShiftName { ValueType: String } |
| | | EDIXLSLinkColumn SingleShiftName { ValueType: String } |
| | | EDIXLSLinkColumn StandardYield { ValueType: Real } |
| | | EDIXLSLinkColumn UnitID { ValueType: String } |
| | | ] |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation SingleShiftConfig_Unit_Unit_SingleShiftConfig |
| | | { |
| | | #keys: '1[414996.1.251280077]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide Unit |
| | | { |
| | | #keys: '3[414996.1.251280079][414996.1.251280078][414996.1.251280080]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: SingleShiftConfig |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide SingleShiftConfig |
| | | { |
| | | #keys: '3[414996.1.251280082][414996.1.251280081][414996.1.251280083]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: Unit |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | traverse ( archiveExecutionStatus, TemporaryDemandData, tdd ,tdd.Origin() = "" or tdd.StartDate() >= macroPlan.StartOfPlanning().Date()) { |
| | | if( tdd.ProductID() = "6914" or tdd.ProductID() = "6916" or tdd.ProductID() = "6917" or tdd.ProductID() = "06S100010R" or tdd.ProductID() = "06S100010M" or tdd.ProductID() = "06S100010N" ){ |
| | | tdd.StockingPointID( "大è¿å卿ºçé¿æ¥å¤ç§åº" ); |
| | | } |
| | | |
| | | targetProduct_MP := null( Product_MP ); |
| | | |
| | | productMPHandleNotes := productMPIndexTreeNotes.GetHandle( tdd.ProductID()); |
| | |
| | | // info( tdd.SalesSegmentName() ); |
| | | if ( not isnull( targetProduct_MP ) and not isnull( targetStockingPoint_MP ) ) { |
| | | forcest := Forecast::Create( targetProduct_MP, |
| | | targetStockingPoint_MP, |
| | | IDHolder::GetGUID(), |
| | | tdd.StartDate(), |
| | | tdd.EndDate(), |
| | | tdd.Quantity(), |
| | | [Real]tdd.Price(), |
| | | tdd.PriorityName(), |
| | | tdd.SalesSegmentName(), |
| | | tdd.CurrencyID(), |
| | | tdd.UnitOfMeasureName(), |
| | | 0.0, |
| | | false, |
| | | false ); |
| | | targetStockingPoint_MP, |
| | | IDHolder::GetGUID(), |
| | | tdd.StartDate(), |
| | | tdd.EndDate(), |
| | | tdd.Quantity(), |
| | | [Real]tdd.Price(), |
| | | tdd.PriorityName(), |
| | | tdd.SalesSegmentName(), |
| | | tdd.CurrencyID(), |
| | | tdd.UnitOfMeasureName(), |
| | | 0.0, |
| | | false, |
| | | false ); |
| | | forcest.Origin( tdd.Origin() ); |
| | | } |
| | | if( isnull( targetProduct_MP )){ |
| | |
| | | dispatchShiftPlan.InterfaceTime( now ); |
| | | }else{ |
| | | if( archiveShiftPlan.Outcome() <> "" ){ |
| | | interfaceLoginfo.DispatchShiftPlan( relnew,ID := OS:: GenerateGUIDAsString(), |
| | | ProductLine := productLine, |
| | | FactoryName := factoryName, |
| | | ShiftQty := archiveShiftPlan.Outcome(), |
| | | dispatchShiftPlan := interfaceLoginfo.DispatchShiftPlan( relnew,ID := OS:: GenerateGUIDAsString(), |
| | | ProductLine := productLine, |
| | | FactoryName := factoryName, |
| | | ShiftQty := archiveShiftPlan.Outcome(), |
| | | |
| | | ShiftDate := shiftDate, |
| | | Tips := archiveShiftPlan.Remark(), |
| | | VersionName := archiveShiftPlan.MacroPlanName(), |
| | | InterfaceTime := now ); |
| | | ShiftDate := shiftDate, |
| | | Tips := archiveShiftPlan.Remark(), |
| | | VersionName := archiveShiftPlan.MacroPlanName(), |
| | | InterfaceTime := now ); |
| | | dispatchShiftPlan.CalcFac(); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ID |
| | | { |
| | | #keys: '3[414996.1.253601321][414996.1.253601320][414996.1.253601322]' |
| | | IsReadOnly: true |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ShiftName |
| | | { |
| | | #keys: '3[414996.1.251280091][414996.1.251280090][414996.1.251280092]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute SingleShiftName |
| | | { |
| | | #keys: '3[414996.1.251280114][414996.1.251280113][414996.1.251280115]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute StandardYield |
| | | { |
| | | #keys: '3[414996.1.251280101][414996.1.251280100][414996.1.251280102]' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute UnitID |
| | | { |
| | | #keys: '3[414996.1.253602237][414996.1.253602236][414996.1.253602238]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Function CalcUnitID |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Nov-27-2024 (created) |
| | | |
| | | value := this.Unit().ID(); |
| | | |
| | | this.UnitID( value ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Export ( |
| | | MacroPlan macroPlan |
| | | ) as BinaryValue |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Nov-27-2024 (created) |
| | | binaryData := macroPlan.MP_ExportSingleShiftConfigBroker().ExecuteToXLS( true ); |
| | | |
| | | return binaryData.AsBinaryValue(); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Import ( |
| | | MacroPlan macroPlan, |
| | | GeneralExcelImportAndExportDataTable table |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // æ¸
空åå§æ°æ® |
| | | units := selectset( macroPlan,Unit,unit,true ); |
| | | unitIndexTree := NamedValueTree::Create(); |
| | | for( i := 0; i< units.Size(); i++ ){ |
| | | unit := units.Element( i ); |
| | | unit.SingleShiftConfig( relflush ); |
| | | |
| | | unitHandle := unitIndexTree.GetHandle( unit.ID() ); |
| | | unitIndexTree.Root().AddChild( unitHandle,i ); |
| | | } |
| | | |
| | | // æ ¡éªæä»¶å |
| | | //if ( table.GeneralExcelImportAndExportDataSource().Name() <> "å卿ºå¹é
-å
ä½ç .xlsx" ) { |
| | | // error( Translations::A_VWED_GeneralExcelImportAndExportDataSource_UploadError2() ); |
| | | //} |
| | | |
| | | // çææ°æ® |
| | | rows := selectsortedset( table,GeneralExcelImportAndExportDataRow,row,row.RowNr()); |
| | | |
| | | traverse( rows,Elements,row ){ |
| | | |
| | | // idCell := select( row, GeneralExcelImportAndExportDataCell, tempGEIAEDC, tempGEIAEDC.GeneralExcelImportAndExportDataColumn().ColumnIndex() = 0 ); |
| | | shiftNameCell := select( row, GeneralExcelImportAndExportDataCell, tempGEIAEDC, tempGEIAEDC.GeneralExcelImportAndExportDataColumn().ColumnIndex() = 1 ); |
| | | singleShiftNameCell := select( row, GeneralExcelImportAndExportDataCell, tempGEIAEDC, tempGEIAEDC.GeneralExcelImportAndExportDataColumn().ColumnIndex() = 2 ); |
| | | standardYieldCell := select( row, GeneralExcelImportAndExportDataCell, tempGEIAEDC, tempGEIAEDC.GeneralExcelImportAndExportDataColumn().ColumnIndex() = 3 ); |
| | | unitIDCell := select( row, GeneralExcelImportAndExportDataCell, tempGEIAEDC, tempGEIAEDC.GeneralExcelImportAndExportDataColumn().ColumnIndex() = 4 ); |
| | | |
| | | unitID := guard( unitIDCell.Value(), "" ); |
| | | if( unitID = "" ){ |
| | | error( "Unit ID 为å¿
填项ã" ); |
| | | } |
| | | unitHandle := unitIndexTree.GetHandle( unitID ); |
| | | unitIndex := guard( unitIndexTree.Root().Child( unitHandle ),null( NamedValue )); |
| | | if( not isnull( unitIndex )){ |
| | | unit := units.Element( unitIndex.GetValueAsNumber() ); |
| | | unit.SingleShiftConfig( relnew, |
| | | ID := IDHolder::GetGUID(), |
| | | ShiftName := guard( shiftNameCell.Value(), "" ), |
| | | SingleShiftName := guard( singleShiftNameCell.Value(), "" ), |
| | | StandardYield := [Real]guard( standardYieldCell.Value(), "0" )); |
| | | }else{ |
| | | error( "æ æ³å¨ã" + macroPlan.MDSMacroPlan().Description() + "ãå
æ¾å°äº§çº¿ã" + unitID + "ãã"); |
| | | } |
| | | } |
| | | |
| | | //// æ ¡éªæ°æ® |
| | | //feedback := ""; |
| | | //sanitycheckfeedback := ""; |
| | | //flag := true; |
| | | // |
| | | //traverse ( macroPlan, SixDigitCode, sdc, flag ) { |
| | | // SixDigitCode::ValidateInput( feedback, sanitycheckfeedback, macroPlan, sdc.Code(), sdc.Curve(), sdc.VehicleModel(), sdc.ProducingArea(), sdc.Engine(), sdc.Power(), sdc.EnginePartNumber(), |
| | | // sdc.EngineFourDigitCode(), sdc.Remarks(), sdc ); |
| | | // flag := feedback = ""; |
| | | //} |
| | | // |
| | | //if ( not flag ) { |
| | | // error( feedback ); |
| | | //} |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | TypeIndex SingleShiftConfigTypeIndex |
| | | { |
| | | Attributes: |
| | | [ |
| | | TypeIndexAttribute |
| | | { |
| | | ModelElement: ID |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type SingleShiftConfig |
| | | { |
| | | #keys: '5[414996.1.251280060][414996.1.251280058][0.0.0][414996.1.251280059][414996.1.251280061]' |
| | | BaseType: Object |
| | | Description: 'åçæ¬¡é
ç½®' |
| | | StructuredName: 'SingleShiftConfigs' |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Image: 'PRODUCT' |
| | | Label: 'Archive packaging plan' |
| | | Label: 'å
è£
计ååæ¡£' |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Image: 'TRUCK2_BLUE' |
| | | Label: 'Archive transfer plan' |
| | | Label: 'è¿è¾è®¡ååæ¡£' |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Image: 'KEYBOARD_KEY_SHIFT' |
| | | Label: 'Archive shift plan' |
| | | Label: 'çæ¬¡è®¡ååæ¡£' |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component ButtonDispatchShiftSchedulingInformation |
| | | { |
| | | #keys: '[414996.1.173765219]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'SKIN_TIGER' |
| | | Label: 'ä¸åçæ¬¡è®¡åä¿¡æ¯' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component ButtonPublishSAP |
| | | { |
| | | #keys: '[415136.0.1332920231]' |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component ButtonPublishPDM |
| | | { |
| | | #keys: '[414996.1.253210336]' |
| | | BaseType: 'WebButton' |
| | | Children: |
| | | [ |
| | | #child: ContextMenuPublishPDM |
| | | ] |
| | | Properties: |
| | | [ |
| | | Image: 'DATA_OUT' |
| | | Label: 'PDM æ¥å£æ°æ®æ¨é' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component ContextMenuPublishPDM |
| | | { |
| | | #keys: '[414996.1.253210337]' |
| | | BaseType: 'WebContextMenu' |
| | | Children: |
| | | [ |
| | | Component MenuPublishShiftSchedulingInformation |
| | | { |
| | | #keys: '[414996.1.253210338]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'SKIN_TIGER' |
| | | Taborder: 0 |
| | | Title: 'ä¸åçæ¬¡è®¡åä¿¡æ¯' |
| | | ] |
| | | } |
| | | Component MenuMaintenanceSingleShiftConfig |
| | | { |
| | | #keys: '[414996.1.253210339]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'GEAR' |
| | | Taborder: 1 |
| | | Title: 'åçæ¬¡æ å产éé
ç½®' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ContextMenuPublishPDM/MenuMaintenanceSingleShiftConfig |
| | | Response OnClick () id:Response_MacroPlanner_ContextMenuPublishPDM_MenuMaintenanceSingleShiftConfig_OnClick |
| | | { |
| | | #keys: '[414996.1.253400687]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | // Open view |
| | | ApplicationMacroPlanner.OpenView( 'MaintenanceSingleShiftConfig' ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ContextMenuPublishPDM/MenuPublishShiftSchedulingInformation |
| | | Response OnClick () id:Response_MacroPlanner_ContextMenuPublishPDM_MenuPublishShiftSchedulingInformation_OnClick |
| | | { |
| | | #keys: '[414996.1.253210335]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | Precondition: |
| | | [* |
| | | |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | // Open view |
| | | ApplicationMacroPlanner.OpenView( 'DispatchShiftSchedulingInformation' ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | AllowEmpty: true |
| | | Label: 'Curve' |
| | | Taborder: 0 |
| | | ] |
| | |
| | | AllowEmpty: true |
| | | DataBinding: 'DataHolderDialogData.Data.Origin' |
| | | Label: 'Origin' |
| | | Strings: ';CC-TRC;DL-TRC;PPA;IDS' |
| | | Strings: 'CC-TRC;DL-TRC;PPA;IDS' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | Precondition: |
| | | [* |
| | | return DropDownStringListCurve.Text() <> ""; |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component ListSingleShiftConfig |
| | | { |
| | | #keys: '[414996.1.249001923]' |
| | | BaseType: 'WebList' |
| | | Children: |
| | | [ |
| | | Component DataExtractorSingleShiftConfig |
| | | { |
| | | #keys: '[414996.1.249001924]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'Unit.SingleShiftConfig' |
| | | ] |
| | | } |
| | | #child: listActionBarPageSingleShiftConfig |
| | | Component DataSetLevelSingleShiftConfig |
| | | { |
| | | #keys: '[414996.1.249001929]' |
| | | BaseType: 'WebDataSetLevel' |
| | | Children: |
| | | [ |
| | | #child: listContextMenuSingleShiftConfig |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit.ID","title":"产线","subtotals":"","tooltip":"","width":-1,"display":"always","attribute":"Unit.ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ShiftName","title":"çæ¬¡åç§°","subtotals":"","tooltip":"","width":-1,"display":"always","editable":false,"attribute":"ShiftName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SingleShiftName","title":"åçæ¬¡åç§°","subtotals":"","tooltip":"","width":-1,"display":"always","editable":false,"attribute":"SingleShiftName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StandardYield","title":"æ å产é","subtotals":"","tooltip":"","width":-1,"display":"always","editable":false,"attribute":"StandardYield"}}]' |
| | | ContextMenu: 'listContextMenuSingleShiftConfig' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelSingleShiftConfig |
| | | { |
| | | #keys: '[414996.1.249001892]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component bImport |
| | | { |
| | | #keys: '[414996.1.249002496]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'IMPORT1' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bExport |
| | | { |
| | | #keys: '[414996.1.249002508]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelSingleShiftConfig497 |
| | | { |
| | | #keys: '[414996.1.249001910]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: ListSingleShiftConfig |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listActionBarPageSingleShiftConfig |
| | | { |
| | | #keys: '[414996.1.249001926]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listContextMenuSingleShiftConfig |
| | | { |
| | | #keys: '[414996.1.249001931]' |
| | | BaseType: 'listContextMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelSingleShiftConfig/bExport |
| | | Response OnClick () id:Response_PanelSingleShiftConfig_bExport_OnClick |
| | | { |
| | | #keys: '[414996.1.253440400]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Application.Download( "MP_SingleShiftConfig.xlsx",SingleShiftConfig::Export( MacroPlan ).AsBinaryData() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelSingleShiftConfig/bImport |
| | | Response OnClick () id:Response_PanelSingleShiftConfig_bImport_OnClick |
| | | { |
| | | #keys: '[414996.1.253361016]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | try { |
| | | uploadJsonString := Application.GetFile(); |
| | | if ( uploadJsonString <> "" ) { |
| | | uploadJson := JSON::Parse( uploadJsonString ); |
| | | Archive::VerifyTheFileName( uploadJson ); |
| | | |
| | | fileName := uploadJson.Get( "name" ).GetString(); |
| | | base64String := uploadJson.Get( "data" ).GetString(); |
| | | |
| | | webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ).AsBinaryValue(); |
| | | |
| | | generalExcelImportAndExportDataSource := GeneralExcelImportAndExportDataSource::Upload( RecycleBin, webFileBinaryData, fileName ); |
| | | generalExcelImportAndExportDataSource.ReadStructure(); |
| | | |
| | | selection := select( generalExcelImportAndExportDataSource, GeneralExcelImportAndExportDataTable, tempGEIAEDT, tempGEIAEDT.Name() = "SingleShiftConfig" ); |
| | | |
| | | SingleShiftConfig::Import( MacroPlan, selection ); |
| | | |
| | | // åç»å é¤ |
| | | generalExcelImportAndExportDataSource.Delete(); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | } |
| | | } onerror { |
| | | WebMessageBox::Error( e.GeneralInformation() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent FormSingleShiftConfig |
| | | { |
| | | #keys: '[414996.1.249001853]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: PanelSingleShiftConfig497 |
| | | #child: PanelSingleShiftConfig |
| | | ] |
| | | Properties: |
| | | [ |
| | | Title: 'åçæ¬¡é
ç½®' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | { |
| | | viewcontents |
| | | { |
| | | forms |
| | | { |
| | | form_FormSingleShiftConfig |
| | | { |
| | | title: 'QMacroPlanner::FormSingleShiftConfig' |
| | | shown: true |
| | | componentID: 'QMacroPlanner::FormSingleShiftConfig' |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 1 |
| | | rowSpan: 25 |
| | | columnPosition: 1 |
| | | columnSpan: 9 |
| | | } |
| | | components |
| | | { |
| | | FormSingleShiftConfig_PanelSingleShiftConfig |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormSingleShiftConfig_PanelSingleShiftConfig497 |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormSingleShiftConfig_ListSingleShiftConfig |
| | | { |
| | | } |
| | | FormSingleShiftConfig_DataSetLevelSingleShiftConfig |
| | | { |
| | | groupDepth: -1 |
| | | column_Unit_ID |
| | | { |
| | | columnId: 'Unit.ID' |
| | | dataPath: 'Unit.ID' |
| | | dataType: 'string' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_ShiftName |
| | | { |
| | | columnId: 'ShiftName' |
| | | dataPath: 'ShiftName' |
| | | dataType: 'string' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_SingleShiftName |
| | | { |
| | | columnId: 'SingleShiftName' |
| | | dataPath: 'SingleShiftName' |
| | | dataType: 'string' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_StandardYield |
| | | { |
| | | columnId: 'StandardYield' |
| | | dataPath: 'StandardYield' |
| | | dataType: 'real' |
| | | index: 3 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormOptimizerPuzzles |
| | | { |
| | | title: 'Optimizer Puzzles' |
| | | shown: false |
| | | componentID: 'FormOptimizerPuzzles' |
| | | layout |
| | | { |
| | | mode: 'dockright' |
| | | index: 0 |
| | | } |
| | | components |
| | | { |
| | | FormOptimizerPuzzles_ListOptimizerPuzzles |
| | | { |
| | | } |
| | | FormOptimizerPuzzles_DataSetLevelOptimizerPuzzles |
| | | { |
| | | groupDepth: -1 |
| | | column_All_constraints |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | dataType: 'string' |
| | | title: 'All constraints' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 32 |
| | | } |
| | | column_Name |
| | | { |
| | | columnId: 'Name' |
| | | dataPath: 'Name' |
| | | dataType: 'string' |
| | | title: 'Name' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 109 |
| | | } |
| | | column_Description |
| | | { |
| | | columnId: 'Description' |
| | | dataPath: 'Description' |
| | | dataType: 'string' |
| | | title: 'Description' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 207 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormKPI |
| | | { |
| | | title: 'KPI Dashboard' |
| | | shown: true |
| | | componentID: 'FormKPI' |
| | | layout |
| | | { |
| | | mode: 'dockright' |
| | | index: 1 |
| | | } |
| | | components |
| | | { |
| | | FormKPI_PanelKPI |
| | | { |
| | | sizeRatio: 1 |
| | | activeChild: 'PanelKPISelection' |
| | | } |
| | | FormKPI_PanelKPIDashboard |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormKPI_PanelKPISelection |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormKPI_ListKPISelection |
| | | { |
| | | QuillViewData |
| | | { |
| | | Food_KPISetting: 'Cost of sales;Fulfillment;Fulfillment target;Inventory holding cost;Labor cost;Margin;Safety stock;Sales;Sourcing cost;Total CO2 emission;Transportation cost;Volume' |
| | | } |
| | | } |
| | | FormKPI_DataSetLevelKPISelection |
| | | { |
| | | groupDepth: -1 |
| | | column_All_constraints |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | dataType: 'string' |
| | | title: 'All constraints' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 32 |
| | | } |
| | | column_Name |
| | | { |
| | | columnId: 'Name' |
| | | dataPath: 'Name' |
| | | dataType: 'string' |
| | | title: 'Name' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 200 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | image: 'GEAR' |
| | | page: '' |
| | | group: '' |
| | | index: 0 |
| | | description: '' |
| | | } |
| | | formatversion: 2 |
| | | id: 'MaintenanceSingleShiftConfig' |
| | | name: 'MaintenanceSingleShiftConfig' |
| | | isglobal: false |
| | | isroot: true |
| | | } |