Beispiel #1
0
        private void FillTable()
        {
            KitELISATrans.LlenarCodigosKit(this.dgv_masterKit);

            //dgv_Componentes.Columns[0].DefaultCellStyle.BackColor = Color.DimGray;
            //dgv_Componentes.Columns[0].DefaultCellStyle.ForeColor = Color.Azure;
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (new KitRotavirus().ShowDialog(this) == DialogResult.OK)
     {
         KitELISATrans.LlenarComboboxKit(cmb_Codigo);
         cmb_Codigo.SelectedIndex = cmb_Codigo.FindString(data.Codigo);
     }
 }
Beispiel #3
0
        public KitRotavirus()
        {
            InitializeComponent();
            FillTable();
            normalStatus();
            dgv_masterKit.Rows[0].Selected = true;
            dgv_masterKit_CellClick(null, new DataGridViewCellEventArgs(0, 0));

            for (int i = 0; i < KitELISATrans.TraerComponentes().Count; i++)
            {
                menu_Componentes.Items.Add(KitELISATrans.TraerComponentes()[i].Componente_Desc);
            }
        }
Beispiel #4
0
        private void dgv_masterKit_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex != -1 && dgv_masterKit.SelectedRows.Count >= 1)
            {
                selectedKit.Codigo        = dgv_masterKit.Rows[e.RowIndex].Cells[0].Value.ToString();
                selectedKit.Lote          = dgv_masterKit.Rows[e.RowIndex].Cells[1].Value.ToString();
                selectedKit.CasaComercial = dgv_masterKit.Rows[e.RowIndex].Cells[2].Value.ToString();
                selectedKit.Metodo        = dgv_masterKit.Rows[e.RowIndex].Cells[3].Value.ToString();

                KitELISATrans.LlenarTabla(dgv_Componentes, selectedKit.Codigo);
                dgv_Componentes.Columns[4].DefaultCellStyle.Format = "dd/MM/yyyy";
                btn_nuevo.Text = "Modificar";
            }
        }
Beispiel #5
0
 private void btn_Save_Click(object sender, EventArgs e)
 {
     if (!txt_Codigo.Text.Equals("") && !txt_Lote.Text.Equals("") && !txt_CasaComercial.Text.Equals("") && !txt_Metodo.Text.Equals(""))
     {
         if (nuevo)
         {
             KitELISATrans.nuevoKit(txt_Codigo.Text, txt_Lote.Text, txt_CasaComercial.Text, txt_Metodo.Text);
             new NuevoReactivo(txt_Codigo.Text).ShowDialog(this);
             clean();
             normalStatus();
         }
         else
         if (edit)
         {
             KitELISATrans.updateKit(selectedKit.Codigo, txt_Lote.Text, txt_CasaComercial.Text, txt_Metodo.Text);
             clean();
             normalStatus();
         }
     }
 }
Beispiel #6
0
 private void fillCombobox()
 {
     KitELISATrans.LlenarComboboxKit(cmb_Codigo);
     ProcH2OTrans.LlenarProcH2O(cmb_ProcH2O);
 }
Beispiel #7
0
        private void btn_Guardar_Click(object sender, EventArgs e)
        {
            reactivos_rotaviru bufer1 = new reactivos_rotaviru();

            bufer1.CodigoC          = txt_CodC1.Text;
            bufer1.CodigoKit        = codKit;
            bufer1.Componente       = "Buffer de Lavado 25X";
            bufer1.Fecha_Expiracion = date_Exp1.Value;
            bufer1.Lote             = txt_Lote1.Text;
            bufer1.Observaciones    = txt_Obs1.Text;

            reactivos_rotaviru bufer2 = new reactivos_rotaviru();

            bufer2.CodigoC          = txt_CodC2.Text;
            bufer2.CodigoKit        = codKit;
            bufer2.Componente       = "Conjugado";
            bufer2.Fecha_Expiracion = date_Exp2.Value;
            bufer2.Lote             = txt_Lote2.Text;
            bufer2.Observaciones    = txt_Obs2.Text;

            reactivos_rotaviru bufer3 = new reactivos_rotaviru();

            bufer3.CodigoC          = txt_CodC3.Text;
            bufer3.CodigoKit        = codKit;
            bufer3.Componente       = "Control Positivo";
            bufer3.Fecha_Expiracion = date_Exp3.Value;
            bufer3.Lote             = txt_Lote3.Text;
            bufer3.Observaciones    = txt_Obs3.Text;

            reactivos_rotaviru bufer4 = new reactivos_rotaviru();

            bufer4.CodigoC          = txt_CodC4.Text;
            bufer4.CodigoKit        = codKit;
            bufer4.Componente       = "Diluyente de Muestra";
            bufer4.Fecha_Expiracion = date_Exp4.Value;
            bufer4.Lote             = txt_Lote4.Text;
            bufer4.Observaciones    = txt_Obs4.Text;

            reactivos_rotaviru bufer5 = new reactivos_rotaviru();

            bufer5.CodigoC          = txt_CodC5.Text;
            bufer5.CodigoKit        = codKit;
            bufer5.Componente       = "Placa";
            bufer5.Fecha_Expiracion = date_Exp5.Value;
            bufer5.Lote             = txt_Lote5.Text;
            bufer5.Observaciones    = txt_Obs5.Text;

            reactivos_rotaviru bufer6 = new reactivos_rotaviru();

            bufer6.CodigoC          = txt_CodC6.Text;
            bufer6.CodigoKit        = codKit;
            bufer6.Componente       = "Solucion Stop";
            bufer6.Fecha_Expiracion = date_Exp6.Value;
            bufer6.Lote             = txt_Lote6.Text;
            bufer6.Observaciones    = txt_Obs6.Text;

            reactivos_rotaviru bufer7 = new reactivos_rotaviru();

            bufer7.CodigoC          = txt_CodC7.Text;
            bufer7.CodigoKit        = codKit;
            bufer7.Componente       = "Substrato";
            bufer7.Fecha_Expiracion = date_Exp7.Value;
            bufer7.Lote             = txt_Lote7.Text;
            bufer7.Observaciones    = txt_Obs7.Text;

            KitELISATrans.nuevoComponente(bufer1);
            KitELISATrans.nuevoComponente(bufer2);
            KitELISATrans.nuevoComponente(bufer3);
            KitELISATrans.nuevoComponente(bufer4);
            KitELISATrans.nuevoComponente(bufer5);
            KitELISATrans.nuevoComponente(bufer6);
            KitELISATrans.nuevoComponente(bufer7);

            Task.Run(() => MessageBox.Show("Ha sido agregado correctamente"));
            this.Close();
        }