lihongji
2024-11-19 3d66f91917d7b1dbd1c6de29ccd0696ad1526713
_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
  *]
}