示例#1
0
 private void btnRegistrar_Click(object sender, EventArgs e)
 {
     try
     {
         frm_Autorizacion frm = new frm_Autorizacion();
         frm.Modo        = frm_Autorizacion.TypeMode.Registrar;
         frm.UsuarioId   = UsuarioId;
         frm.MiDelegado += RefrescarGrilla;
         frm.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Disculpe, el sistema se encuentra fuera de servicio!",
                         this.Text,
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Error);
     }
 }
示例#2
0
 private void btnEditar_Click(object sender, EventArgs e)
 {
     try
     {
         frm_Autorizacion frm = new frm_Autorizacion();
         frm.Modo           = frm_Autorizacion.TypeMode.Editar;
         frm.UsuarioId      = UsuarioId;
         frm.NaveId         = Convert.ToInt32(dgvAutorizacion.SelectedRows[0].Cells["NaveId"].Value);
         frm.EmbalajeId     = Convert.ToInt32(dgvAutorizacion.SelectedRows[0].Cells["EmbalajeId"].Value);
         frm.OperacionId    = Convert.ToInt32(dgvAutorizacion.SelectedRows[0].Cells["OperacionId"].Value);
         frm.AutorizacionId = Convert.ToInt32(dgvAutorizacion.SelectedRows[0].Cells["AutorizacionId"].Value);
         frm.MiDelegado    += RefrescarGrilla;
         frm.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Disculpe, el sistema se encuentra fuera de servicio!",
                         this.Text,
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Error);
     }
 }
示例#3
0
 private void btnRegistrar_Click(object sender, EventArgs e)
 {
     try
     {
         frm_Autorizacion frm = new frm_Autorizacion();
         frm.Modo = frm_Autorizacion.TypeMode.Registrar;
         frm.UsuarioId = UsuarioId;
         frm.MiDelegado += RefrescarGrilla;
         frm.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Disculpe, el sistema se encuentra fuera de servicio!",
                          this.Text,
                          MessageBoxButtons.OK,
                          MessageBoxIcon.Error);
     }
 }
示例#4
0
 private void btnEditar_Click(object sender, EventArgs e)
 {
     try
     {
         frm_Autorizacion frm = new frm_Autorizacion();
         frm.Modo = frm_Autorizacion.TypeMode.Editar;
         frm.UsuarioId = UsuarioId;
         frm.NaveId = Convert.ToInt32(dgvAutorizacion.SelectedRows[0].Cells["NaveId"].Value);
         frm.EmbalajeId = Convert.ToInt32(dgvAutorizacion.SelectedRows[0].Cells["EmbalajeId"].Value);
         frm.OperacionId = Convert.ToInt32(dgvAutorizacion.SelectedRows[0].Cells["OperacionId"].Value);
         frm.AutorizacionId = Convert.ToInt32(dgvAutorizacion.SelectedRows[0].Cells["AutorizacionId"].Value);
         frm.MiDelegado += RefrescarGrilla;
         frm.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Disculpe, el sistema se encuentra fuera de servicio!",
                           this.Text,
                           MessageBoxButtons.OK,
                           MessageBoxIcon.Error);
     }
 }