zoukankan      html  css  js  c++  java
  • 体温填报APP--查看所有体温录入情况

    查看所有体温录入情况直接向数据库查询当前的体温录入情况

    package com.example.tiwen20;

    import android.database.Cursor;
    import android.database.sqlite.SQLiteDatabase;
    import android.os.Bundle;
    import android.util.Log;
    import android.widget.ListView;

    import androidx.appcompat.app.AppCompatActivity;

    public class alltiwenActivity extends AppCompatActivity {
    private ListView listView;
    private TiwenAdapter tiwenAdapter;
    private Cursor cursor;
    private TiwenDB tiwenDB;
    private Log log;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_alltiwen);
    listView = (ListView)findViewById(R.id.lv_addtiwen);
    tiwenDB = new TiwenDB(this);
    cursor = tiwenDB.getAlltiwenData();
    tiwenAdapter = new TiwenAdapter(this,cursor);
    listView.setAdapter(tiwenAdapter);
    log.v("mylog","这是我的调试信息--------------------------------------------------------");
    }
    }


    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">
    <TextView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/tv_addlisttime"
    android:layout_weight="8"
    android:text="日期"
    android:gravity="center"
    android:textColor="#000000"
    >
    </TextView>
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_weight="5"
    android:orientation="vertical">
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:orientation="horizontal">

    <TextView
    android:id="@+id/tv_addlisttiwen"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:text="体温"
    android:gravity="center"
    android:textColor="#000000"></TextView>
    <TextView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/tv_addlistname"
    android:gravity="center"
    android:text="姓名"
    android:layout_weight="1"
    android:textColor="#000000">
    </TextView>
    <TextView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/tv_addlistqingkuang"
    android:gravity="center"
    android:text="特殊情况"
    android:layout_weight="1"
    android:textColor="#000000">
    </TextView>
    </LinearLayout>
    <TextView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:text="地点"
    android:gravity="center"
    android:id="@+id/tv_addlistdidian"
    android:textColor="#000000"
    android:layout_weight="1">
    </TextView>
    </LinearLayout>
    </LinearLayout>
    <ListView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/lv_addtiwen"
    >
    </ListView>
    </LinearLayout>
  • 相关阅读:
    NC portal怎么重新开始入门,整个配置过程包括配置一个节点
    NChome如何创建单据跟主子表还有扩展开发要怎么弄?
    还是有必要确定一下自己到底在做是什么
    os.path模块
    re模块
    Django settings配置文件
    自定义分页器
    AJAX
    AJAX 一些常用方法
    AJAX 简单上手
  • 原文地址:https://www.cnblogs.com/huangmouren233/p/14912938.html
Copyright © 2011-2022 走看看