bool IProduto_c.GravarRegistro(IProduto_Ent_c _produto) { _NovoRegistro = _produto as Produto_Ent_abs; return(gravarregistro()); throw new NotImplementedException(); }
bool IProduto_c.GravaAlteracao(IProduto_Ent_c _produto) { _AlteraRegistro = _produto as Produto_Ent_abs; return(focus_update_registro()); throw new NotImplementedException(); }
bool IProduto_c.SelecionaRegistro(object _Selecionado) { System.Windows.Forms.DataGridViewSelectedRowCollection rowCollection = _Selecionado as System.Windows.Forms.DataGridViewSelectedRowCollection; _FocusRegistro = new Beta.Produto_Ent_b() { _ID_Produto = (int)rowCollection[0].Cells[0].Value, _EAN = rowCollection[0].Cells[1].Value.ToString(), _Descricao = rowCollection[0].Cells[2].Value.ToString(), _Unidade = rowCollection[0].Cells[3].Value.ToString(), _Custo = (decimal)rowCollection[0].Cells[4].Value, _Venda = (decimal)rowCollection[0].Cells[5].Value }; return(true); }