xiaoding721
2024-11-13 6a7ad66e068fe9a5a9f45cceea778dfe5f988d61
Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev
已添加2个文件
已修改1个文件
57 ■■■■■ 文件已修改
_Main/BL/Type_PackagingPlanCell/Method_UpdateValue.qbl 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormPackagingPlan/Response_MatrixEditor493_OnCheckEditability.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormPackagingPlan/Response_MatrixEditor493_OnUpdateValue.def 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_PackagingPlanCell/Method_UpdateValue.qbl
对比新文件
@@ -0,0 +1,36 @@
Quintiq file version 2.0
#parent: #root
Method UpdateValue (
  String attrName,
  Real value
)
{
  TextBody:
  [*
    if ( attrName = "Package" ) { // 鍖呰
      this.Package( value );
    }
    if ( attrName = "Unpacking" ) { // 鎷嗗寘
     this.Unpacking( value );
    }
    if ( attrName = "Out" ) { // 璋冨嚭
      unitID := ifexpr( this.PackagingPlanRow().Factory() = "澶ц繛宸ュ巶", "DL to CC", "CC to DL" ) + " " + this.PackagingPlanRow().Category() + " Transport";
      pit     := select( this.PackagingPlanRow().MacroPlan(), Unit.Lane.LaneLeg.Trip.ProductInTrip, tempPIT,
                         tempPIT.Trip().LaneLeg().Lane().UnitID() = unitID                                 and
                         tempPIT.Trip().Departure().Date()        = this.PackagingPlanColumn().StartDate() and
                         tempPIT.ProductID()                      = this.PackagingPlanRow().ProductID() );
      pit.Update( value, true );
      this.Out( value );
      cell := select( this.PackagingPlanRow().MacroPlan(), PackagingPlanRow.PackagingPlanCell, tempPPCell,
                      tempPPCell.PackagingPlanRow().Factory()      = ifexpr( this.PackagingPlanRow().Factory() = "澶ц繛宸ュ巶", "闀挎槬宸ュ巶", "澶ц繛宸ュ巶" ) and
                      tempPPCell.PackagingPlanRow().ProductID()    = this.PackagingPlanRow().ProductID()                                              and
                      tempPPCell.PackagingPlanColumn().StartDate() = pit.Trip().Arrival().Date() );
      cell.TransferIn( value );
    }
  *]
}
_Main/UI/MacroPlannerWebApp/Component_FormPackagingPlan/Response_MatrixEditor493_OnCheckEditability.def
@@ -12,7 +12,7 @@
  {
    Body:
    [*
      cond := focusedattribute = "Package" or focusedattribute = "Unpacking";
      cond := focusedattribute = "Package" or focusedattribute = "Unpacking" or focusedattribute = "Out";
      
      editinfo.CanEdit( cond );
      editinfo.UserHint( ifexpr( cond, "", "涓嶈兘淇敼" ) );
_Main/UI/MacroPlannerWebApp/Component_FormPackagingPlan/Response_MatrixEditor493_OnUpdateValue.def
对比新文件
@@ -0,0 +1,19 @@
Quintiq file version 2.0
#parent: MatrixEditor493
Response OnUpdateValue (
  PackagingPlanCell cell,
  Real value
) id:Response_MatrixEditor493_OnUpdateValue
{
  #keys: '[413988.1.122061406]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebMatrixEditor_OnUpdateValue'
  QuillAction
  {
    Body:
    [*
      cell.UpdateValue( focusedattribute, value );
    *]
    GroupServerCalls: false
  }
}