private void GuardarDetalleConfiguracion() { SysmexItemkx21n oDetalle = new SysmexItemkx21n(); oDetalle.IdSysmex = ddlItemEquipo.SelectedItem.Text; oDetalle.IdItem = int.Parse(ddlItem.SelectedValue); 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()); SysmexItemkx21n oRegistro = new SysmexItemkx21n(); oRegistro = (SysmexItemkx21n)oRegistro.Get(typeof(SysmexItemkx21n), i_id); oRegistro.Habilitado = chkStatus.Checked; oRegistro.Save(); }