Пример #1
0
        private ICollection <int_exp_Etiqueta_ProducaoViewModel> AtualizarLotes(ICollection <int_exp_Etiqueta_ProducaoViewModel> lotes,
                                                                                string armazem, int status, string romaneio, string tipoDocumento)
        {
            List <int_exp_Etiqueta_Producao> lotesRetorno = new List <int_exp_Etiqueta_Producao>();

            foreach (var item in lotes)
            {
                var lote = _loteServices.ObterPorId(item.ApontamentoProducaoId);
                lote.Armazem       = armazem;
                lote.StatusId      = status;
                lote.Romaneio      = romaneio;
                lote.TipoDocumento = tipoDocumento;
                lotesRetorno.Add(lote);
            }
            lotes = Mapper.Map <ICollection <int_exp_Etiqueta_ProducaoViewModel> >(lotesRetorno);
            return(lotes);
        }
Пример #2
0
 public int_exp_Etiqueta_ProducaoViewModel ObterPorId(int id)
 {
     return(Mapper.Map <int_exp_Etiqueta_ProducaoViewModel>(_loteServices.ObterPorId(id)));
 }