protected void btnGuardar_Click(object sender, EventArgs e) { int vPaciente = int.Parse(Request["idPaciente"]); //if ((Page.IsValid) && (!hayError())) //{ //int idVGIDatos = SubSonic.Sugar.Web.QueryString<int>("idVGIDatos"); SysPacienteAntecedentesFamiliare oDato = new SysPacienteAntecedentesFamiliare(); oDato.IdPaciente = vPaciente; oDato.IdParentesco = int.Parse(ddlParentesco.SelectedValue.ToString()); //int i_Cie10 = DalSic.ConsultaAmbulatoria.UserControls.DiagnosticoPrincipal.getObraSocial(); oDato.IdCie10 = DiagnosticoPrincipal.getDiagnostico(); oDato.Id = (int.Parse(Request["idPaciente"].ToString())); //oDato.IdTurno = 21; //oDato.IdPaciente = 318925; oDato.IdUsuarioCarga = SSOHelper.CurrentIdentity.Id; //oDato.IdUsuarioCarga = SSOHelper.CurrentIdentity.Id; oDato.FechaCarga = DateTime.Now; oDato.Save(); Arbol(); //Session["vsVolver"] = "ProsameEdit.aspx"; //string url = "AntecedentesFamiliares.aspx?vPaciente=" + Request["idPaciente"].ToString().Trim(); //Response.Redirect(url, false); //} }
protected void btnGuardar_Click(object sender, EventArgs e) { //if ((Page.IsValid) && (!hayError())) //{ //int idVGIDatos = SubSonic.Sugar.Web.QueryString<int>("idVGIDatos"); SysPacienteAntecedentesFamiliare oDato = new SysPacienteAntecedentesFamiliare(); oDato.IdPaciente = 670890; oDato.IdParentesco = int.Parse(ddlParentesco.SelectedValue.ToString()); int i_Cie10 = SIPS.ConsultaAmbulatoria.UserControls.DiagnosticoPrincipal.getObraSocial(); oDato.IdCie10 = i_Cie10; oDato.Id = (int.Parse(Request["idPaciente"].ToString())); //oDato.IdTurno = 21; //oDato.IdPaciente = 318925; oDato.IdUsuarioCarga = 1; //oDato.IdUsuarioCarga = SSOHelper.CurrentIdentity.Id; oDato.FechaCarga = DateTime.Now; oDato.Save(); //} }