| | |
| | | return PlaceType; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 根据实际情况转换长和宽 |
| | | /// </summary> |
| | | /// <param name="UpiInfo"></param> |
| | | /// <param name="PhysicalLength">物理长度</param> |
| | | /// <param name="PhysicalWidth">物理宽度</param> |
| | | private static void GetPhysicalWidthLength(mes_batchOrderUPI_new UpiInfo, ref double PhysicalLength, ref double PhysicalWidth) |
| | | { |
| | | if (UpiInfo.Rotation > 0) |
| | | {//如果是四面钻,物理长和宽对调 |
| | | PhysicalWidth = UpiInfo.Length; |
| | | PhysicalLength = UpiInfo.Width; |
| | | } |
| | | else |
| | | { |
| | | PhysicalLength = UpiInfo.Length; |
| | | PhysicalWidth = UpiInfo.Width; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |