xiaoding721
2024-11-29 39d207344803fffdce4b65eba90f56ea997c1d2c
添加实际生产计划数据修改功能
已修改6个文件
已添加7个文件
328 ■■■■■ 文件已修改
_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl 49 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Test/StaticMethod_Test.qbl 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/Component_pnlActions.def 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/Component_pnlContent.def 108 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/Method_Edit.def 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/Response_pnlActions_btnCancel_OnClick.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/Response_pnlActions_btnOk_OnClick.def 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/_ROOT_Component_DialogEditActualDailyProductionQuantity.def 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormActualDailyProduction/Component_ListActualDailyProduction.def 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormActualDailyProduction/Component_listContextMenuActualDailyProduction.def 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormActualDailyProduction/Response_ListActualDailyProduction_MenuEditActualDailyProductionQuantity_OnC.def 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormArchivePackagingPlan/Component_MatrixEditorArchivePackagingPlan.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_MatrixEditorArchiveShiftPlan.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl
@@ -165,14 +165,25 @@
        singleShiftVolume2 := 0.0;
        singleShiftVolume3 := 0.0;
        
        if( line.Tips().LikeUserLocale( "淇濆吇" )){
          singleShiftVolume1 := 0.0;
          singleShiftVolume2 := lineQuantity / 2;
          singleShiftVolume3 := lineQuantity / 2;
        }else{
          singleShiftVolume1 := lineQuantity / 3;
          singleShiftVolume2 := lineQuantity / 3;
          singleShiftVolume3 := lineQuantity / 3;
        singleShiftConfigs := selectset( unit,SingleShiftConfig,config,config.ShiftName() = "3" );
        traverse( singleShiftConfigs,Elements,singleShiftConfig ){
          if( line.Tips().LikeUserLocale( "淇濆吇" )){
            if( singleShiftConfig.SingleShiftName() = "鐧界彮"){
              singleShiftVolume1 := 0.0;
            }else if( singleShiftConfig.SingleShiftName() = "浜岀彮"){
              singleShiftVolume2 := singleShiftConfig.StandardYield();
            }else if( singleShiftConfig.SingleShiftName() = "涓夌彮"){
              singleShiftVolume3 := singleShiftConfig.StandardYield();
            }
          }else{
            if( singleShiftConfig.SingleShiftName() = "鐧界彮"){
              singleShiftVolume1 := singleShiftConfig.StandardYield();
            }else if( singleShiftConfig.SingleShiftName() = "浜岀彮"){
              singleShiftVolume2 := singleShiftConfig.StandardYield();
            }else if( singleShiftConfig.SingleShiftName() = "涓夌彮"){
              singleShiftVolume3 := singleShiftConfig.StandardYield();
            }
          }
        }
        
        for( i := tempProducts.Size() - 1;i >= 0; i-- ){
@@ -207,12 +218,22 @@
        // 240.5
        singleShiftVolume1 := 0.0;
        singleShiftVolume2 := 0.0;
        if( line.Tips().LikeUserLocale( "淇濆吇" )){
          singleShiftVolume1 := 0.0;
          singleShiftVolume2 := lineQuantity;
        }else{
          singleShiftVolume1 := lineQuantity / 2;
          singleShiftVolume2 := lineQuantity / 2;
        singleShiftConfigs := selectset( unit,SingleShiftConfig,config,config.ShiftName() = line.ShiftName() );
        traverse( singleShiftConfigs,Elements,singleShiftConfig ){
          if( line.Tips().LikeUserLocale( "淇濆吇" )){
            if( singleShiftConfig.SingleShiftName() = "鐧界彮"){
              singleShiftVolume1 := 0.0;
            }else if( singleShiftConfig.SingleShiftName() = "浜岀彮"){
              singleShiftVolume2 := singleShiftConfig.StandardYield();
            }
          }else{
            if( singleShiftConfig.SingleShiftName() = "鐧界彮"){
              singleShiftVolume1 := singleShiftConfig.StandardYield();
            }else if( singleShiftConfig.SingleShiftName() = "浜岀彮"){
              singleShiftVolume2 := singleShiftConfig.StandardYield();
            }
          }
        }
    
        for( i := tempProducts.Size() - 1;i >= 0; i-- ){
_Main/BL/Type_Test/StaticMethod_Test.qbl
@@ -9,10 +9,5 @@
  InterfaceDataset interfaceDataset
)
{
  TextBody:
  [*
    traverse( macroPlan,Unit,unit ){
      info( LocalTool::GetFactoryByUnit( unit ).ID() );
    }
  *]
  TextBody: '//archive.ActualDailyProductionData( relnew ,ActualOut := 100,Fac := "CC",LineName := "CC1",ProductionDate := Date::ActualDate(),ProductNo := "112233445566",ShiftCode := "3",ShiftName := "鐧界彮");'
}
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/Component_pnlActions.def
对比新文件
@@ -0,0 +1,40 @@
Quintiq file version 2.0
Component pnlActions
{
  #keys: '[414996.1.257133954]'
  BaseType: 'WebPanel'
  Children:
  [
    Component btnOk
    {
      #keys: '[414996.1.257133958]'
      BaseType: 'WebButton'
      Properties:
      [
        Label: 'OK'
        Taborder: 0
      ]
    }
    Component btnCancel
    {
      #keys: '[414996.1.257133960]'
      BaseType: 'WebButton'
      Properties:
      [
        Label: 'Cancel'
        Taborder: 1
      ]
    }
  ]
  Properties:
  [
    Alignment: 'trailing'
    Border: true
    ExcludeFromActiveComponent: true
    FixedSize: true
    Orientation: 'horizontal'
    Padding: 'true'
    Style: 'footer'
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/Component_pnlContent.def
对比新文件
@@ -0,0 +1,108 @@
Quintiq file version 2.0
Component pnlContent
{
  #keys: '[414996.1.257133952]'
  BaseType: 'WebPanel'
  Children:
  [
    Component dhDialogData
    {
      #keys: '[414996.1.257214133]'
      BaseType: 'WebDataHolder'
      Databinding: 'shadow[ActualDailyProductionData]*'
      Properties:
      [
        Taborder: 0
      ]
    }
    Component npActualOut
    {
      #keys: '[414996.1.257174083]'
      BaseType: 'WebNumberPicker'
      Properties:
      [
        DataBinding: 'dhDialogData.Data.ActualOut'
        Label: 'Actual out'
        Min: '0'
        Taborder: 7
      ]
    }
    Component efFac
    {
      #keys: '[414996.1.257174096]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'dhDialogData.Data.Fac'
        Enabled: false
        Label: 'Fac'
        Taborder: 2
      ]
    }
    Component efLineName
    {
      #keys: '[414996.1.257174109]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'dhDialogData.Data.LineName'
        Enabled: false
        Label: 'Line name'
        Taborder: 1
      ]
    }
    Component efProductNo
    {
      #keys: '[414996.1.257174135]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'dhDialogData.Data.ProductNo'
        Enabled: false
        Label: 'Product No.'
        Taborder: 4
      ]
    }
    Component efShiftCode
    {
      #keys: '[414996.1.257174147]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'dhDialogData.Data.ShiftCode'
        Enabled: false
        Label: 'Shift code'
        Taborder: 5
      ]
    }
    Component efShiftName
    {
      #keys: '[414996.1.257174160]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'dhDialogData.Data.ShiftName'
        Enabled: false
        Label: 'Shift name'
        Taborder: 6
      ]
    }
    Component dsProductionDate
    {
      #keys: '[414996.1.257174292]'
      BaseType: 'WebDateSelector'
      Properties:
      [
        DataBinding: 'dhDialogData.Data.ProductionDate'
        Enabled: false
        Label: 'Production date'
        Taborder: 3
      ]
    }
  ]
  Properties:
  [
    Padding: 'true'
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/Method_Edit.def
对比新文件
@@ -0,0 +1,14 @@
Quintiq file version 2.0
#parent: #root
Method Edit (
  ActualDailyProductionData data
) id:Method_DialogEditActualDailyProductionQuantity_Edit
{
  #keys: '[414996.1.257173735]'
  Body:
  [*
    dhDialogData.Data( shadow(data));
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/Response_pnlActions_btnCancel_OnClick.def
对比新文件
@@ -0,0 +1,15 @@
Quintiq file version 2.0
#parent: pnlActions/btnCancel
Response OnClick () id:Response_pnlActions_btnCancel_OnClick
{
  #keys: '[414996.1.257133964]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      Form.Close();
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/Response_pnlActions_btnOk_OnClick.def
对比新文件
@@ -0,0 +1,17 @@
Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[414996.1.257133963]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      Form.ApplyChanges();
      dhDialogData.Data( ).Commit();
      Form.Close();
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogEditActualDailyProductionQuantity/_ROOT_Component_DialogEditActualDailyProductionQuantity.def
对比新文件
@@ -0,0 +1,22 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent DialogEditActualDailyProductionQuantity
{
  #keys: '[414996.1.257133950]'
  BaseType: 'WebForm'
  Children:
  [
    #child: pnlContent
    #child: pnlActions
  ]
  Properties:
  [
    Alignment: 'trailing'
    EnterButton: 'btnOk'
    EscapeButton: 'btnCancel'
    ExcludeFromActiveComponent: true
    Padding: 'false'
    Title: '缂栬緫瀹為檯鐢熶骇搴撳瓨鏁伴噺'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormActualDailyProduction/Component_ListActualDailyProduction.def
@@ -38,4 +38,22 @@
  [
    Taborder: 0
  ]
  ResponseDefinitions:
  [
    DelegatedResponseDefinition OnClick id:Responsedef_ListActualDailyProduction_WebMenu_OnClick
    {
      #keys: '[414996.1.256612374]'
      Initiator: 'WebMenu'
      IsInherited: false
      ResponseType: 'OnClick'
      Arguments:
      [
        ResponseDefinitionArgument selection
        {
          #keys: '[467.0.15387290]'
          Binding: 'this.Selection()'
        }
      ]
    }
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormActualDailyProduction/Component_listContextMenuActualDailyProduction.def
@@ -3,6 +3,20 @@
{
  #keys: '[414996.1.184390822]'
  BaseType: 'listContextMenu'
  Children:
  [
    Component MenuEditActualDailyProductionQuantity
    {
      #keys: '[414996.1.256612646]'
      BaseType: 'WebMenu'
      Properties:
      [
        Image: 'PENCIL'
        Taborder: 3
        Title: 'Edit'
      ]
    }
  ]
  Properties:
  [
    Taborder: 0
_Main/UI/MacroPlannerWebApp/Component_FormActualDailyProduction/Response_ListActualDailyProduction_MenuEditActualDailyProductionQuantity_OnC.def
对比新文件
@@ -0,0 +1,20 @@
Quintiq file version 2.0
#parent: ListActualDailyProduction
Response OnClick (
  ActualDailyProductionData selection
) id:Response_ListActualDailyProduction_MenuEditActualDailyProductionQuantity_OnClick
{
  #keys: '[414996.1.256612464]'
  CanBindMultiple: false
  DefinitionID => /ListActualDailyProduction/Responsedef_ListActualDailyProduction_WebMenu_OnClick
  GroupServerCalls: true
  Initiator: 'MenuEditActualDailyProductionQuantity'
  QuillAction
  {
    Body:
    [*
      dlg := construct( DialogEditActualDailyProductionQuantity );
      dlg.Edit( selection )
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormArchivePackagingPlan/Component_MatrixEditorArchivePackagingPlan.def
@@ -26,7 +26,7 @@
      ]
      Properties:
      [
        Attributes: 'CC_PackagingInventory;CC_UnpackagedInventory;EndingInventory;InitialPackagingInventory;NetDemand;NewSupply;Out;Package;PackagingInventory;TransferIn;UnpackagedInventory;Unpacking'
        Attributes: 'NetDemand;NewSupply;EndingInventory;Out;TransferIn;UnpackagedInventory;PackagingInventory;Package;Unpacking'
        Column: 'ArchivePackagingPlanColumn'
        Row: 'ArchivePackagingPlanRow'
        Taborder: 0
_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_MatrixEditorArchiveShiftPlan.def
@@ -26,7 +26,7 @@
      ]
      Properties:
      [
        Attributes: 'EventType;IsHoliday;Outcome;Remark;MacroPlanName'
        Attributes: 'Outcome;Remark'
        Column: 'ArchiveShiftPlanColumn'
        Row: 'ArchiveShiftPlanRow'
        Taborder: 0