Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev
| | |
| | | |
| | | } |
| | | loginfo.TotalRow( ms64.MS64Data( relsize ) ); |
| | | InterfaceLoginfo::CallInterfaceForSAPGet( owner, loginfo ); |
| | | AOnlineAndMOfflinePlanMS64::Publish( owner, loginfo ); |
| | | //InterfaceLoginfo::CallInterfaceForSAPGet( owner, loginfo ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Publish ( |
| | | InterfaceDataset owner, |
| | | InterfaceLoginfo loginfo |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Nov-27-2024 (created) |
| | | jsondata := JSON::Object(); |
| | | |
| | | traverse( loginfo, AOnlineAndMOfflinePlanMS64, pir ){ |
| | | jsonarray := JSON::Array();//.Add( "dto", JSON::Object().Add( "dday", date.Format( "Y-M2-D2" ) ).Add( "fac", "" ) ).Build(); |
| | | traverse( pir, MS64Data, pirdata ){ |
| | | pirjson := JSON::Object().Add( "product", pirdata.Product() ) |
| | | .Add( "factory", pirdata.Werk() ).Build();/*"2024-10-01 12:00:00" )*/ |
| | | jsonarray.Add( pirjson ); |
| | | } |
| | | jsondata.Add( 'ZPPPSCode', pir.ZPPPSCode() ) |
| | | .Add( 'BERID', '' ).Add( 'BEDAE', '' ) |
| | | .Add( 'DATEV', pir.StartDate().Format( 'YM2D2' ) ) |
| | | .Add( 'DATEB', pir.EndDate().Format( 'YM2D2' ) ) |
| | | .Add( 'VERSBF', pir.VersionFrom() ) |
| | | .Add( 'VERSBT', pir.VersionTo() ) |
| | | .Add( 'VERVS', ifexpr( pir.IsActive(), "X", "" ) ) |
| | | .Add( 'dataList', jsonarray ); |
| | | } |
| | | |
| | | loginfo.RequestBody( jsondata.Build().AsString() ); |
| | | info( loginfo.RequestBody() ); |
| | | data := InterfaceLoginfo::CallInterfaceForSAPGet( owner, loginfo ); |
| | | info( '----------------', data.Size() ); |
| | | *] |
| | | } |
| | |
| | | } |
| | | } |
| | | loginfo.TotalRow( pir.PIRData( relsize ) ); |
| | | InterfaceLoginfo::CallInterfaceForSAPGet( owner, loginfo ); |
| | | AOnlineAndMOfflinePlanPIR::Publish( owner, loginfo ); |
| | | *] |
| | | } |
| | |
| | | // çå
°é¸½ Oct-30-2024 (created) |
| | | value := '8201;8200'; |
| | | if( werk = FinancialProductionReport::GetDefaultCCUnit() ){ |
| | | value := '8200'; |
| | | }else if( werk = FinancialProductionReport::GetDefaultDLUnit() ){ |
| | | value := '8201'; |
| | | }else if( werk = FinancialProductionReport::GetDefaultDLUnit() ){ |
| | | value := '8200'; |
| | | } |
| | | return value; |
| | | *] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Publish ( |
| | | InterfaceDataset owner, |
| | | InterfaceLoginfo loginfo |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Nov-27-2024 (created) |
| | | jsondata := JSON::Object(); |
| | | |
| | | traverse( loginfo, AOnlineAndMOfflinePlanPIR, pir ){ |
| | | jsonarray := JSON::Array();//.Add( "dto", JSON::Object().Add( "dday", date.Format( "Y-M2-D2" ) ).Add( "fac", "" ) ).Build(); |
| | | traverse( pir, PIRData, pirdata ){ |
| | | pirjson := JSON::Object().Add( "product", pirdata.Product() ) |
| | | .Add( "planningDate", pirdata.PlanningDate().Format( 'YM2D2' ) )//"2024-10-01" ) |
| | | .Add( "planningQty", pirdata.PlanningQty() ) |
| | | .Add( "factory", pirdata.Werk() ).Build();/*"2024-10-01 12:00:00" )*/ |
| | | jsonarray.Add( pirjson ); |
| | | } |
| | | jsondata.Add( 'ZPPPSCode', pir.ZPPPSCode() ) |
| | | .Add( 'werk', pir.Werk() ) |
| | | .Add( 'VERSB', pir.Version() ) |
| | | .Add( 'startDate', pir.StartDate().Format( 'YM2D2' ) ) |
| | | .Add( 'endDate', pir.EndDate().Format( 'YM2D2' ) ) |
| | | .Add( 'dataList', jsonarray ); |
| | | } |
| | | |
| | | loginfo.RequestBody( jsondata.Build().AsString() ); |
| | | info( loginfo.RequestBody() ); |
| | | data := InterfaceLoginfo::CallInterfaceForSAPGet( owner, loginfo ); |
| | | info( '----------------', data.Size() ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute OrderNr |
| | | { |
| | | #keys: '3[415136.0.1339530029][415136.0.1339530028][415136.0.1339530030]' |
| | | Description: 'ç产顺åºï¼Numberï¼' |
| | | ValueType: Number |
| | | } |
| | |
| | | traverse( column, Cell, cell ){ |
| | | row := cell.Row(); |
| | | if( ( iscc and row.Unit() = FinancialProductionReport::GetDefaultCCUnit() ) or ( isdl and row.Unit() = FinancialProductionReport::GetDefaultDLUnit() ) ){ |
| | | cd :=interfaceDataset.AssemblyOnlinePlanPPPSPush( relnew, Product := row.ProductID() |
| | | cd :=interfaceDataset.AssemblyOnlinePlanPPPSPush( relnew, Product := row.Name() |
| | | , PlanningDate := column.StartDate() |
| | | , PlanningQty := [Number]cell.Quantity() |
| | | , Sequence := cell.Order() |
| | |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Oct-11-2024 (created) |
| | | row := selectobject( this, Row, row, row.ProductID() = aoprow.ProductID() and row.ProductionLine() = aoprow.ProductionLine() and row.Type() = aoprow.Type() ); |
| | | row := selectobject( this, Row, row, row.Name() = aoprow.ProductID() and row.ProductionLine() = aoprow.ProductionLine() and row.Type() = aoprow.Type() ); |
| | | |
| | | if( isnull( row ) ){ |
| | | product := selectobject( aoprow.MacroPlan(), Product_MP, product, product.ID() = aoprow.ProductID() ); |
| | |
| | | } |
| | | traverse( macroPlan, NewAssemblyOnlinePlanRow, aoprow, aoprow.Type() = '1' ){ |
| | | row := table.GetRow( aoprow ); |
| | | traverse( table, Column, column, exists( aopcolumns, Elements, e, e = column.StartDate() ) ){//, aopcolumns.Find( column.StartDate() ) > -1 |
| | | qty := sum( aoprow, NewAssemblyOnlinePlanCell, aopcell, column.StartDate() <= aopcell.NewAssemblyOnlinePlanColumn().StartDate() |
| | | and column.EndDate() >= aopcell.NewAssemblyOnlinePlanColumn().StartDate(), aopcell.Quantity() ); |
| | | traverse( aoprow, NewAssemblyOnlinePlanCell, aopcell ){ |
| | | column := selectobject( table, Column, column, column.StartDate() = aopcell.NewAssemblyOnlinePlanColumn().StartDate() ); |
| | | |
| | | // traverse( table, Column, column, exists( aopcolumns, Elements, e, e = column.StartDate() ) ){//, aopcolumns.Find( column.StartDate() ) > -1 |
| | | // qty := se( aoprow, NewAssemblyOnlinePlanCell, aopcell, column.StartDate() <= aopcell.NewAssemblyOnlinePlanColumn().StartDate() |
| | | // and column.EndDate() >= aopcell.NewAssemblyOnlinePlanColumn().StartDate(), aopcell.Quantity() ); |
| | | |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | if( isnull( cell ) ){ |
| | | cell := column.Cell( relnew, InventoryWeight := 0, ProductionSerialNumber := 0, Quantity := 0, Shift := '', Value := '' ); |
| | | row.Cell( relinsert, cell ); |
| | | } |
| | | cell.Quantity( qty ); |
| | | cell.Order( aopcell.Order() ); |
| | | cell.OrderNr( aopcell.OrderNr() ); |
| | | cell.Quantity( aopcell.Quantity() ); |
| | | } |
| | | } |
| | | //productids := selectuniquevalues( table, Row, row, row.Name() ); |
| | |
| | | cell := select( r, Cell, tempC, tempC.Column() = c ); |
| | | |
| | | if ( not isnull( cell ) ) { |
| | | idsjson := JSON::Object().Add( "product", r.ProductID() ) |
| | | idsjson := JSON::Object().Add( "product", r.Name() ) |
| | | .Add( "inventoryDate", c.StartDate().Format( 'Y-M2-D2' ) ) |
| | | .Add( "planningInventory", cell.PlanQuantity() ) |
| | | .Add( "versionName", macroPlan.ScenarioName() ) |
| | |
| | | [* |
| | | // çå
°é¸½ Jul-22-2024 (created) |
| | | address := Translations::InterfaceDataset_SAP_Address(); |
| | | httpinterface := HTTPInterface::Create( address,8080); |
| | | httpinterface.PostMethod( false ); |
| | | httpinterface := HTTPInterface::Create( address,80); |
| | | httpinterface.PostMethod( true ); ; |
| | | httpinterface.MediaType( Translations::InterfaceDataset_ContentType() ); |
| | | try{ |
| | | if( loginfo.Name() = Translations::InterfaceDataset_AOnlineAndMOfflinePlanPIR_Name() ){//è£
é
ä¸çº¿è®¡åPIR |
| | |
| | | if( loginfo.Name() = Translations::InterfaceDataset_AOnlineAndMOfflinePlanMS64_Name() ){//è£
é
ä¸çº¿è®¡åMS64 |
| | | httpinterface.URL( Translations::InterfaceDataset_AOnlineAndMOfflinePlanMS64_URL() ); |
| | | } |
| | | httpinterface.Call(); |
| | | httpinterface.Call( loginfo.RequestBody() ); |
| | | result := httpinterface.Result(); |
| | | loginfo.Response( result ); |
| | | loginfo.Success( true ); |
| | |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Oct-11-2024 (created) |
| | | row := selectobject( this, Row, row, row.ProductID() = noprow.ProductID() and row.ProductionLine() = noprow.ProductionLine() and row.Type() = noprow.Type() and row.StockingPointID() = noprow.StockingPointID() ); |
| | | row := selectobject( this, Row, row, row.Name() = noprow.ProductID() and row.ProductionLine() = noprow.ProductionLine() and row.Type() = noprow.Type() and row.StockingPointID() = noprow.StockingPointID() ); |
| | | |
| | | if( isnull( row ) ){ |
| | | product := selectobject( noprow.NewOfflinePlanTable().MacroPlan(), Product_MP, product, product.ID() = noprow.ProductID() ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method SyncTable ( |
| | | InterfaceDataset owner |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Nov-27-2024 (created) |
| | | column := selectobject( owner, ShippingActualColumn, column, column.StartDate() = this.DDay() ); |
| | | cell := selectobject( column, ShippingActualCell, cell, cell.ShippingActualRow().Name() = this.FourCode() ); |
| | | cell.Quantity( this.Quantity() ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlActions |
| | | { |
| | | #keys: '[415136.0.1345221297]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component btnOk |
| | | { |
| | | #keys: '[415136.0.1345221301]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'OK' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component btnCancel |
| | | { |
| | | #keys: '[415136.0.1345221303]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Cancel' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | Border: true |
| | | ExcludeFromActiveComponent: true |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Padding: 'true' |
| | | Style: 'footer' |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlContent |
| | | { |
| | | #keys: '[415136.0.1345221295]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component efContent |
| | | { |
| | | #keys: '[415136.0.1345221341]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | Mask: 'REAL' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Padding: 'true' |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Edit ( |
| | | ShippingActualData selection |
| | | ) id:Method_DialogShippingActualData_Edit |
| | | { |
| | | #keys: '[415136.0.1345221575]' |
| | | Body: |
| | | [* |
| | | // Edit Product(s) |
| | | |
| | | data := shadow( selection ); |
| | | dhDialogData.Data( &data ); |
| | | |
| | | ApplicationMacroPlanner.ShowFormModal( this ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method OnOK () id:Method_DialogShippingActualData_OnOK |
| | | { |
| | | #keys: '[415136.0.1345221579]' |
| | | Body: |
| | | [* |
| | | // onOK for ProductDialog |
| | | // When the user clicks ok, |
| | | // we either create or edit the data |
| | | this.ApplyChanges(); |
| | | |
| | | data := dhDialogData.Data(); |
| | | |
| | | //if( isnull( data.WrappedInstance() ) ) // New |
| | | //{ |
| | | // data.Commit(); |
| | | // dhForm.Data().ListChangeLossSetting().SelectByKey( data.WrappedInstance().Key() ); |
| | | //} |
| | | //else |
| | | //{ |
| | | data.Commit(); |
| | | data.WrappedInstance().SyncTable( InterfaceDataset ); |
| | | //} |
| | | |
| | | this.Close(); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions/btnCancel |
| | | Response OnClick () id:Response_pnlActions_btnCancel_OnClick |
| | | { |
| | | #keys: '[415136.0.1345221307]' |
| | | 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.1345221306]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.ApplyChanges(); |
| | | Form.Close(); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent DialogShippingActualData |
| | | { |
| | | #keys: '[415136.0.1345221293]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: pnlContent |
| | | #child: pnlActions |
| | | Component dhDialogData |
| | | { |
| | | #keys: '[415136.0.1345221434]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'shadow[ShippingActualData]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | EnterButton: 'btnOk' |
| | | EscapeButton: 'btnCancel' |
| | | ExcludeFromActiveComponent: true |
| | | Image: 'SHIPS_WHEEL' |
| | | Padding: 'false' |
| | | Title: 'Shipping actual data' |
| | | ] |
| | | } |
| | |
| | | //handleT := mdsinstanceT.GetMDSHandle() |
| | | //macroplanT := handleT.AsMacroPlan(); |
| | | |
| | | if( WebMessageBox::Question( this, 'æ¯å¦ç¡®è®¤æ¨é', 'OK|Cancel' ) = 0 ){ |
| | | currentuser := QuintiqUser::CurrentUser().DisplayName(); |
| | | |
| | | AOnlineAndMOfflinePlanMS64::GenerateData( InterfaceDataset, ddslFactory.Text(), dsStartDate.Date(), dsEndDate.Date(), efVersionFrom.Text(), efVersionTo.Text(), cbActiveVersion.Checked(), dhProducts.Data(), currentuser ); |
| | | WebMessageBox::Success( "æ¨éæåï¼" ); |
| | | } |
| | | Form.Close(); |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | Form.ApplyChanges(); |
| | | if( WebMessageBox::Question( this, 'æ¯å¦ç¡®è®¤æ¨é', 'OK|Cancel' ) = 0 ){ |
| | | AOnlineAndMOfflinePlanPIR::GenerateData( InterfaceDataset, ddslFactory.Text(), efVersion.Text(), dsStartDate.Date(), dsEndDate.Date(), QuintiqUser::CurrentUser().DisplayName() ); |
| | | WebMessageBox::Success( "æ¨éæåï¼" ); |
| | | } |
| | | Form.Close(); |
| | | *] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Attributes: 'Quantity' |
| | | Attributes: 'Order;Quantity' |
| | | Column: 'Column' |
| | | Row: 'Row' |
| | | Taborder: 0 |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | AllowMultipleAttributes: true |
| | | Columns: 'MatrixEditorColumnsTable' |
| | | ContextMenu: 'matrixeditorContextMenuTable' |
| | | Rows: 'MatrixEditorRowsTable' |
| | |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListInterfaceShippingData_WebMenu_OnClick |
| | | { |
| | | #keys: '[415136.0.1345221879]' |
| | | Initiator: 'WebMenu' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[2035.0.6361849]' |
| | | Binding: 'this.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | |
| | | { |
| | | #keys: '[415136.0.1330021161]' |
| | | BaseType: 'listContextMenu' |
| | | Children: |
| | | [ |
| | | Component MenuInterfaceShippingData |
| | | { |
| | | #keys: '[415136.0.1345221911]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'PENCIL' |
| | | Taborder: 3 |
| | | Title: 'Edit Quantity' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListInterfaceShippingData |
| | | Response OnClick ( |
| | | ShippingActualData selection |
| | | ) id:Response_ListInterfaceShippingData_MenuInterfaceShippingData_OnClick |
| | | { |
| | | #keys: '[415136.0.1345221962]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListInterfaceShippingData/Responsedef_ListInterfaceShippingData_WebMenu_OnClick |
| | | Initiator: 'MenuInterfaceShippingData' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogShippingActualData ); |
| | | dlg.Edit( selection ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |