lihongji
2024-08-19 301162c159efa01358ff8c63566d73e47851e1b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Quintiq file version 2.0
#parent: #root
StaticMethod IdentifyTheFactory (
  StockingPoint_MP spmp
) as String
{
  TextBody:
  [*
    factory := "";
    
    if ( spmp.Name().Regex( "长春" ) or spmp.Name().Regex( "CC" ) ) {
      factory := "CC";
    } else if ( spmp.Name().Regex( "大连" ) or spmp.Name().Regex( "DL" ) ) {
      factory := "DL";
    } else {
      factory := "找不到属于哪个工厂";
    }
    
    return factory;
  *]
}