22
schangxiang@126.com
2024-11-28 aa1fa59aef9c9a115dee92e505752c9a8e7b7265
CC/iWareSql/DataAccess/TCSCommon.cs
@@ -47,26 +47,6 @@
            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;
            }
        }
    }
}