Exemplo n.º 1
0
        public int PerformParametric(List <ParameterItemValueVm> data, string sn)
        {
            var lastResult = 0;

            foreach (var d in data)
            {
                var resultvalue = (int)GetWsObj.GetParametric(d);
                ReturnMsg = GetMsgObj.GetSystemMsg(resultvalue > 0 ? EnumMessage.TransactionParamSuccess : EnumMessage.TransactionParamFail, sn);
                if (resultvalue == 0)
                {
                    return(resultvalue);
                }
                lastResult = resultvalue;
            }
            return(lastResult);
        }