You are on page 1of 1

integer error_child long ll_count long ll_count2 long ll_count3 long ll_count4 //messagebox("",string(datetime(today()))) //habilita dw_1 dw_1.accepttext( ) dw_1.

settransobject(sqlca) dw_1.insertrow( 0) dw_1.accepttext( ) //realiza el conteo para asignar un numero de recibo select count(n_recibo) into :ll_count from sg_ingreso; //asigna la variable al campo ll_count=ll_count+1 dw_1.Setitem(dw_1.GetRow(),"n_recibo",ll_count) //realiza el conteo para asignar el id_asignar select count(id_ingreso) into :ll_count2 from sg_ingreso; ll_count2=ll_count2+1 dw_1.Setitem(dw_1.GetRow(),"id_ingreso",ll_count2) //realiza el conteo para asignar el detalle_id select count(detalle_id) into :ll_count3 from sg_ingreso; ll_count3=ll_count3+1 dw_1.Setitem(dw_1.GetRow(),"detalle_id",ll_count3) dw_1.Setitem(1,"fecha",datetime(today(),now())) //dw_1.Setitem(dw_1.getrow(),"fecha",datetime(today(),time(00:00:00)))

//habilita dw_2 dw_2.accepttext( ) dw_2.settransobject(sqlca) dw_2.insertrow(0) dw_1.accepttext( ) //realiza el conteo para asignar el id_detalle dw_2.Setitem(dw_1.GetRow(),"id_detalle",ll_count3)

You might also like