예제 #1
0
        private void GuardarDetalleConfiguracion()
        {
            MindrayItem oDetalle = new MindrayItem();

            oDetalle.IdMindray   = int.Parse(txtOrden.Text);
            oDetalle.IdItem      = int.Parse(ddlItem.SelectedValue);
            oDetalle.TipoMuestra = rdbMuestra.SelectedValue;
            oDetalle.Prefijo     = txtPrefijo.Text;
            oDetalle.Save();
        }
예제 #2
0
        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());

            MindrayItem oRegistro = new MindrayItem();

            oRegistro            = (MindrayItem)oRegistro.Get(typeof(MindrayItem), i_id);
            oRegistro.Habilitado = chkStatus.Checked;
            oRegistro.Save();
        }