private void GuardarDetalleConfiguracion() { MiuraItem oDetalle = new MiuraItem(); oDetalle.IdMiura = txtOrden.Text.Trim(); oDetalle.IdItem = int.Parse(ddlItem.SelectedValue); oDetalle.Dilucion = txtDilucion.Text; oDetalle.Prefijo = txtPrefijo.Text.Trim(); oDetalle.Habilitado = true; oDetalle.Save(); }
protected void chkStatus_OnCheckedChanged(object sender, EventArgs e) { CheckBox chkStatus = (CheckBox)sender; GridViewRow row = (GridViewRow)chkStatus.NamingContainer; int i_id = int.Parse(gvLista.DataKeys[row.RowIndex].Value.ToString()); MiuraItem oRegistro = new MiuraItem(); oRegistro = (MiuraItem)oRegistro.Get(typeof(MiuraItem), i_id); oRegistro.Habilitado = chkStatus.Checked; oRegistro.Save(); }