Exemple #1
0
 private void MethodLoadPedido(ESGR_Mesa ESGR_Mesa)
 {
     try
     {
         ESGR_Pedido = new BSGR_Pedido().GetCollectionPedido().ToList().FirstOrDefault(x => x.IdPedido == ESGR_Mesa.IdPedido);
         if (ESGR_Pedido == null)
         {
             throw new Exception("Pedido no Encontrado");
         }
         ESGR_Pedido.Observacion = Observacion;
     }
     catch (Exception)
     {
         throw;
     }
 }
 /// <summary>
 /// Insertar, Editar y Eliminar Mesa
 /// </summary>
 /// <param name="ESGR_Mesa">Objecto de la Entidad Mesa</param>
 public void TransMesa(ESGR_Mesa ESGR_Mesa)
 {
     try
     {
         var objCmpSql = new CmpSql(SGRVariables.ConectionString);
         objCmpSql.CommandProcedure("spSGR_SET_Mesa");
         objCmpSql.AddParameter("@Opcion", SqlDbType.VarChar, ESGR_Mesa.Opcion);
         objCmpSql.AddParameter("@IdMesa", SqlDbType.Int, ESGR_Mesa.IdMesa);
         objCmpSql.AddParameter("@IdMesaArea", SqlDbType.SmallInt, ESGR_Mesa.EESGR_MesaArea.IdMesaArea);
         objCmpSql.AddParameter("@Mesa", SqlDbType.VarChar, ESGR_Mesa.Mesa);
         objCmpSql.ExecuteNonQuery();
     }
     catch (Exception)
     {
         throw;
     }
 }