I have the following screen that generates when placing an order. In the Order Items field, I need to separate by items and not cluster in one.
Example as it is currently exiting You are only bringing one line
In case you would like to list row by row according to the quantity of items in the order. Example:
2210 - Varensia Deo Vap 125ML / Qty .: 1 / Total: 147.00
1102 - VETIVER EDC 245ML / Qty .: 2 / 98,70
Methodthatdoesthisprocess(note[orderPrice])
protectedvoidExibirProtocoloPedido(PedidoVendaobjPed){try{PedidoVendaItensobjItPed=newPedidoVendaItens();ProdutosobjProd=newProdutos();Session["pedEmpresa"] = objPed.PedEmpresa;
Session["numPedido"] = objPed.PedNumero;
Session["msgOfertas"] = (!string.IsNullOrEmpty(objPed.pedMsgOfertas.ToString()) ? objPed.pedMsgOfertas.ToString() : "");
Session["itemPedido"] = objItPed.ItPProduto + " - " + objProd.ProdDescr + "/" + "Qtde.:" + objItPed.ItPQtde + " / " + "Total:" + objItPed.ItPrecoComp;
Session["msgMatApoio"] = (!string.IsNullOrEmpty(objPed.pedMsgMatApoio.ToString()) ? objPed.pedMsgMatApoio.ToString() : "");
Session["msgReorderGerado"] = (!string.IsNullOrEmpty(objPed.pedMsgReorderGerado.ToString()) ? objPed.pedMsgReorderGerado.ToString() : "");
Session["msgReorderAtendido"] = (!string.IsNullOrEmpty(objPed.pedMsgReorderAtendido.ToString()) ? objPed.pedMsgReorderAtendido.ToString() : "");
Session["msgReorderNaoAtendido"] = (!string.IsNullOrEmpty(objPed.pedMsgReorderNaoAtendido.ToString()) ? objPed.pedMsgReorderNaoAtendido.ToString() : "");
Session["msgPendencias"] = (!string.IsNullOrEmpty(objPed.pedMsgPendencias.ToString()) ? objPed.pedMsgPendencias.ToString() : "");
Session["valorPedido"] = (!string.IsNullOrEmpty(txtValACobrar.Text) ? string.Format("{0:0,0.00}", txtValACobrar.Text) : "0");
Session["statusPed"] = objPed.PedStatus;
Session["formaPagto"] = objPed.PedForPgto;
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "ShowProtocolo();", true);
}
catch (Exception ex)
{
throw ex;
}
}