예제 #1
0
 /// <summary>
 /// Muestra la información del paquete seleccionado de this.lstEstadoEntregado
 /// utilizando paquete.ToString(), en this.rtbMostrar
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void mostrarToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     try
     {
         Paquete p = (Paquete)this.lstEstadoEntregado.SelectedItem;
         this.rtbMostrar.Text = String.Format("{0}", p.ToString());
     }
     catch (Exception)
     {
     }
 }
예제 #2
0
        protected void grdSolicitudes_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                LogPaquetes logP    = new LogPaquetes();
                Paquete     paquete = logP.BuscarPaquetePorPks(Convert.ToInt32(grdSolicitudes.SelectedRow.Cells[7].Text),
                                                               Convert.ToInt32(grdSolicitudes.SelectedRow.Cells[6].Text));
                Session["Paquete"] = logP.BuscarPaquetePorPks(paquete.Empresa.Rut, paquete.Numero);
                lblPaquete.Text    = paquete.ToString();
                lblTituloP.Text    = "Paquete";

                LogEmpresa logE    = new LogEmpresa();
                Empresa    empresa = logE.BuscarEmpresa(Convert.ToInt32(paquete.Empresa.Rut));
                lblEmpresa.Text = empresa.ToString();
                lblTituloE.Text = "Empresa";
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
예제 #3
0
        private void InformarError(Paquete paquete, Exception e)
        {
            string mensaje = String.Format("Ocurrio un error al intentar cargar en la base de datos el paquete {0}. ERROR: {1}", paquete.ToString(), e.Message);

            MessageBox.Show(mensaje, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
예제 #4
0
        private void mostrarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Paquete paquete = (Paquete)this.lstEstadoEntregado.SelectedItem;

            this.rtbMostrar.Text = string.Format("{0}", paquete.ToString());
        }