OrderPeriodAdjust.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%ORDER_PERIOD_ADJUST}}".
  6. *
  7. * @property string $ID
  8. * @property string $ORDER_SN 订单号
  9. * @property string $DEC_SN 报单号
  10. * @property int $ORIGIN_PERIOD 调整前期数
  11. * @property int $MODERN_PERIOD 调整后期数
  12. * @property string $ADMIN_ID 创建人
  13. * @property int $CREATED_AT 创建时间
  14. */
  15. class OrderPeriodAdjust extends \common\components\ActiveRecord
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function tableName()
  21. {
  22. return '{{%ORDER_PERIOD_ADJUST}}';
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['ORDER_SN', 'ORIGIN_PERIOD', 'MODERN_PERIOD'], 'required'],
  31. ];
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'ID' => 'ID',
  40. 'ORDER_SN' => Yii::t('ctx', 'shopOrderListOrderCode'),
  41. 'DEC_SN' => Yii::t('ctx', 'entryNo'),
  42. 'ORIGIN_PERIOD' => Yii::t('ctx', 'beforeAdjustmentPcNo'),
  43. 'MODERN_PERIOD' => Yii::t('ctx', 'afterAdjustmentPcNo'),
  44. 'ADMIN_ID' => Yii::t('ctx', 'userCreator'),
  45. 'CREATED_AT' => Yii::t('ctx', 'createAt'),
  46. ];
  47. }
  48. }