private void GuardarDetalleConfiguracion() { PhoresysItem oDetalle = new PhoresysItem(); oDetalle.IdPhoresys = ddlItemEquipo.SelectedValue; 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()); PhoresysItem oRegistro = new PhoresysItem(); oRegistro = (PhoresysItem)oRegistro.Get(typeof(PhoresysItem), i_id); oRegistro.Habilitado = chkStatus.Checked; oRegistro.Save(); }