xiaoding721
2024-11-20 7fccbbd4d9982aaa349b36cf8031cddac610e57f
_Main/BL/Type_NewOfflinePlanCell/StaticMethod_UpdateQuantity.qbl
@@ -6,5 +6,20 @@
  String attrName
)
{
  TextBody: 'nopc.Quantity( value );'
  TextBody:
  [*
    if ( value < 0 ) {
      error( "数量不能为负" );
    }
    nopc.Quantity( value );
    // 数量为0,修改Order
    if ( value = 0 ) {
      nopc.Order( "" );
      nopc.OrderNr( 0 );
    }
    // 如果数量不为0,修改Order
  *]
}