protected void Registrar_SEGUIMIENTO() { DB_AP_Registro_Org aux = new DB_AP_Registro_Org(); DB_EXT_Seguimiento insSeg = new DB_EXT_Seguimiento(); EXT_Seguimiento seg = new EXT_Seguimiento(); EXT_Rendimiento rd = new EXT_Rendimiento(); seg.Id_InscripcionOrg = Convert.ToInt32(LblIdInsOrg.Text); seg.Id_Usuario = LblIdUsuario.Text; seg.Id_Productor = LblIdInsProd.Text; seg.Id_Campanhia = Convert.ToInt32(LblIdCamp.Text); seg.Id_Regional = Convert.ToInt32(LblIdReg.Text); seg.Programa = LblProg.Text; seg.Etapa = "RENDIMIENTO"; seg.Num_Seg_Cultivo = 0; seg.Estado = "ENVIADO"; seg.Fecha_Envio = DateTime.Now; seg.Tipo_Seguimiento = 0; insSeg.DB_Registrar_SEGUIMIENTO(seg); rd.Id_Seguimiento = Convert.ToInt32(aux.DB_MaxId("EXT_SEGUIMIENTO", "Id_Seguimiento")); rd.Fecha_Sis = DateTime.Now; rd.Fech_Inspeccion = Convert.ToDateTime(TxtFechaInspeccion.Text); rd.Variedad_Semilla = TxtVariedad.Text; insSeg.DB_Registrar_RENDIMIENTO(rd); Registrar_RENDIMIENTO_DETALLE(Convert.ToInt32(aux.DB_MaxId("EXT_RENDIMIENTO", "Id_Rendimiento"))); }
public void DB_Registrar_RENDIMIENTO(EXT_Rendimiento rd) { DA_EXT_Seguimiento regR = new DA_EXT_Seguimiento(); regR.DA_Registrar_RENDIMIENTO(rd); }