lazhen
2024-09-03 94861b664bc8ed851c047a013d3be239ea0c46dc
_Main/BL/Type_ChangeLossSettingExcel/StaticMethod_Import.qbl
@@ -26,7 +26,7 @@
                                          and cls.ProductSecond().ID() = excel.Product2()
                                          and cls.Unit().ID() = excel.Unit() );
      if( isnull( cls ) ){
        cls             := macroplan.ChangeLossSetting( relnew, ChangeLossNr := excel.ChangeLossNr() );
        cls             := macroplan.ChangeLossSetting( relnew, ChangeLossNr := [Number]excel.ChangeLossNumber() );
        product1        := selectobject( macroplan, Product_MP, product, product.ID() = excel.Product1() );
        product2        := selectobject( macroplan, Product_MP, product, product.ID() = excel.Product2() );
        unit            := selectobject( macroplan, Unit, unit, unit.ID() = excel.Unit() );
@@ -34,7 +34,7 @@
        cls.ProductSecond( relset, product2 );
        cls.Unit( relset, unit );
      }else {
        cls.ChangeLossNr( excel.ChangeLossNr() );
        cls.ChangeLossNr( [Number]excel.ChangeLossNumber() );
      }
      excel.Delete();
    }