示例#1
0
        public static decimal GetWeightDifferencePercent()
        {
            decimal ret = 0;

            decimal.TryParse(WSWmsHelper.LoadConfiguration(CONF_WEIGHT_DIFFERENCE_PERCENT_SECTION, CONF_WEIGHT_DIFFERENCE_PERCENT)
                             , out ret);
            return(ret);
        }
示例#2
0
        static string WriteToWS(string deviceId, string message)
        {
            string retString = string.Empty;

            try
            {
                WSWmsHelper.WriteDeviceLog(deviceId, message);
            }
            catch (Exception ex)
            {
                retString = ex.Message;
            }

            return(retString);
        }