@ -0,0 +1,15 @@
|
||||
*.iml
|
||||
.gradle
|
||||
/local.properties
|
||||
/.idea/caches
|
||||
/.idea/libraries
|
||||
/.idea/modules.xml
|
||||
/.idea/workspace.xml
|
||||
/.idea/navEditor.xml
|
||||
/.idea/assetWizardSettings.xml
|
||||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
.externalNativeBuild
|
||||
.cxx
|
||||
local.properties
|
@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
@ -0,0 +1 @@
|
||||
My Application
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<bytecodeTargetLevel target="11" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,414 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DBNavigator.Project.DataEditorManager">
|
||||
<record-view-column-sorting-type value="BY_INDEX" />
|
||||
<value-preview-text-wrapping value="true" />
|
||||
<value-preview-pinned value="false" />
|
||||
</component>
|
||||
<component name="DBNavigator.Project.DatabaseEditorStateManager">
|
||||
<last-used-providers />
|
||||
</component>
|
||||
<component name="DBNavigator.Project.DatabaseFileManager">
|
||||
<open-files />
|
||||
</component>
|
||||
<component name="DBNavigator.Project.Settings">
|
||||
<connections />
|
||||
<browser-settings>
|
||||
<general>
|
||||
<display-mode value="TABBED" />
|
||||
<navigation-history-size value="100" />
|
||||
<show-object-details value="false" />
|
||||
</general>
|
||||
<filters>
|
||||
<object-type-filter>
|
||||
<object-type name="SCHEMA" enabled="true" />
|
||||
<object-type name="USER" enabled="true" />
|
||||
<object-type name="ROLE" enabled="true" />
|
||||
<object-type name="PRIVILEGE" enabled="true" />
|
||||
<object-type name="CHARSET" enabled="true" />
|
||||
<object-type name="TABLE" enabled="true" />
|
||||
<object-type name="VIEW" enabled="true" />
|
||||
<object-type name="MATERIALIZED_VIEW" enabled="true" />
|
||||
<object-type name="NESTED_TABLE" enabled="true" />
|
||||
<object-type name="COLUMN" enabled="true" />
|
||||
<object-type name="INDEX" enabled="true" />
|
||||
<object-type name="CONSTRAINT" enabled="true" />
|
||||
<object-type name="DATASET_TRIGGER" enabled="true" />
|
||||
<object-type name="DATABASE_TRIGGER" enabled="true" />
|
||||
<object-type name="SYNONYM" enabled="true" />
|
||||
<object-type name="SEQUENCE" enabled="true" />
|
||||
<object-type name="PROCEDURE" enabled="true" />
|
||||
<object-type name="FUNCTION" enabled="true" />
|
||||
<object-type name="PACKAGE" enabled="true" />
|
||||
<object-type name="TYPE" enabled="true" />
|
||||
<object-type name="TYPE_ATTRIBUTE" enabled="true" />
|
||||
<object-type name="ARGUMENT" enabled="true" />
|
||||
<object-type name="DIMENSION" enabled="true" />
|
||||
<object-type name="CLUSTER" enabled="true" />
|
||||
<object-type name="DBLINK" enabled="true" />
|
||||
</object-type-filter>
|
||||
</filters>
|
||||
<sorting>
|
||||
<object-type name="COLUMN" sorting-type="NAME" />
|
||||
<object-type name="FUNCTION" sorting-type="NAME" />
|
||||
<object-type name="PROCEDURE" sorting-type="NAME" />
|
||||
<object-type name="ARGUMENT" sorting-type="POSITION" />
|
||||
<object-type name="TYPE ATTRIBUTE" sorting-type="POSITION" />
|
||||
</sorting>
|
||||
<default-editors>
|
||||
<object-type name="VIEW" editor-type="SELECTION" />
|
||||
<object-type name="PACKAGE" editor-type="SELECTION" />
|
||||
<object-type name="TYPE" editor-type="SELECTION" />
|
||||
</default-editors>
|
||||
</browser-settings>
|
||||
<navigation-settings>
|
||||
<lookup-filters>
|
||||
<lookup-objects>
|
||||
<object-type name="SCHEMA" enabled="true" />
|
||||
<object-type name="USER" enabled="false" />
|
||||
<object-type name="ROLE" enabled="false" />
|
||||
<object-type name="PRIVILEGE" enabled="false" />
|
||||
<object-type name="CHARSET" enabled="false" />
|
||||
<object-type name="TABLE" enabled="true" />
|
||||
<object-type name="VIEW" enabled="true" />
|
||||
<object-type name="MATERIALIZED VIEW" enabled="true" />
|
||||
<object-type name="INDEX" enabled="true" />
|
||||
<object-type name="CONSTRAINT" enabled="true" />
|
||||
<object-type name="DATASET TRIGGER" enabled="true" />
|
||||
<object-type name="DATABASE TRIGGER" enabled="true" />
|
||||
<object-type name="SYNONYM" enabled="false" />
|
||||
<object-type name="SEQUENCE" enabled="true" />
|
||||
<object-type name="PROCEDURE" enabled="true" />
|
||||
<object-type name="FUNCTION" enabled="true" />
|
||||
<object-type name="PACKAGE" enabled="true" />
|
||||
<object-type name="TYPE" enabled="true" />
|
||||
<object-type name="DIMENSION" enabled="false" />
|
||||
<object-type name="CLUSTER" enabled="false" />
|
||||
<object-type name="DBLINK" enabled="true" />
|
||||
</lookup-objects>
|
||||
<force-database-load value="false" />
|
||||
<prompt-connection-selection value="true" />
|
||||
<prompt-schema-selection value="true" />
|
||||
</lookup-filters>
|
||||
</navigation-settings>
|
||||
<dataset-grid-settings>
|
||||
<general>
|
||||
<enable-zooming value="true" />
|
||||
<enable-column-tooltip value="true" />
|
||||
</general>
|
||||
<sorting>
|
||||
<nulls-first value="true" />
|
||||
<max-sorting-columns value="4" />
|
||||
</sorting>
|
||||
<audit-columns>
|
||||
<column-names value="" />
|
||||
<visible value="true" />
|
||||
<editable value="false" />
|
||||
</audit-columns>
|
||||
</dataset-grid-settings>
|
||||
<dataset-editor-settings>
|
||||
<text-editor-popup>
|
||||
<active value="false" />
|
||||
<active-if-empty value="false" />
|
||||
<data-length-threshold value="100" />
|
||||
<popup-delay value="1000" />
|
||||
</text-editor-popup>
|
||||
<values-actions-popup>
|
||||
<show-popup-button value="true" />
|
||||
<element-count-threshold value="1000" />
|
||||
<data-length-threshold value="250" />
|
||||
</values-actions-popup>
|
||||
<general>
|
||||
<fetch-block-size value="100" />
|
||||
<fetch-timeout value="30" />
|
||||
<trim-whitespaces value="true" />
|
||||
<convert-empty-strings-to-null value="true" />
|
||||
<select-content-on-cell-edit value="true" />
|
||||
<large-value-preview-active value="true" />
|
||||
</general>
|
||||
<filters>
|
||||
<prompt-filter-dialog value="true" />
|
||||
<default-filter-type value="BASIC" />
|
||||
</filters>
|
||||
<qualified-text-editor text-length-threshold="300">
|
||||
<content-types>
|
||||
<content-type name="Text" enabled="true" />
|
||||
<content-type name="Properties" enabled="true" />
|
||||
<content-type name="XML" enabled="true" />
|
||||
<content-type name="DTD" enabled="true" />
|
||||
<content-type name="HTML" enabled="true" />
|
||||
<content-type name="XHTML" enabled="true" />
|
||||
<content-type name="Java" enabled="true" />
|
||||
<content-type name="SQL" enabled="true" />
|
||||
<content-type name="PL/SQL" enabled="true" />
|
||||
<content-type name="JSON" enabled="true" />
|
||||
<content-type name="JSON5" enabled="true" />
|
||||
<content-type name="Groovy" enabled="true" />
|
||||
<content-type name="AIDL" enabled="true" />
|
||||
<content-type name="YAML" enabled="true" />
|
||||
<content-type name="Manifest" enabled="true" />
|
||||
</content-types>
|
||||
</qualified-text-editor>
|
||||
<record-navigation>
|
||||
<navigation-target value="VIEWER" />
|
||||
</record-navigation>
|
||||
</dataset-editor-settings>
|
||||
<code-editor-settings>
|
||||
<general>
|
||||
<show-object-navigation-gutter value="false" />
|
||||
<show-spec-declaration-navigation-gutter value="true" />
|
||||
<enable-spellchecking value="true" />
|
||||
<enable-reference-spellchecking value="false" />
|
||||
</general>
|
||||
<confirmations>
|
||||
<save-changes value="false" />
|
||||
<revert-changes value="true" />
|
||||
</confirmations>
|
||||
</code-editor-settings>
|
||||
<code-completion-settings>
|
||||
<filters>
|
||||
<basic-filter>
|
||||
<filter-element type="RESERVED_WORD" id="keyword" selected="true" />
|
||||
<filter-element type="RESERVED_WORD" id="function" selected="true" />
|
||||
<filter-element type="RESERVED_WORD" id="parameter" selected="true" />
|
||||
<filter-element type="RESERVED_WORD" id="datatype" selected="true" />
|
||||
<filter-element type="RESERVED_WORD" id="exception" selected="true" />
|
||||
<filter-element type="OBJECT" id="schema" selected="true" />
|
||||
<filter-element type="OBJECT" id="role" selected="true" />
|
||||
<filter-element type="OBJECT" id="user" selected="true" />
|
||||
<filter-element type="OBJECT" id="privilege" selected="true" />
|
||||
<user-schema>
|
||||
<filter-element type="OBJECT" id="table" selected="true" />
|
||||
<filter-element type="OBJECT" id="view" selected="true" />
|
||||
<filter-element type="OBJECT" id="materialized view" selected="true" />
|
||||
<filter-element type="OBJECT" id="index" selected="true" />
|
||||
<filter-element type="OBJECT" id="constraint" selected="true" />
|
||||
<filter-element type="OBJECT" id="trigger" selected="true" />
|
||||
<filter-element type="OBJECT" id="synonym" selected="false" />
|
||||
<filter-element type="OBJECT" id="sequence" selected="true" />
|
||||
<filter-element type="OBJECT" id="procedure" selected="true" />
|
||||
<filter-element type="OBJECT" id="function" selected="true" />
|
||||
<filter-element type="OBJECT" id="package" selected="true" />
|
||||
<filter-element type="OBJECT" id="type" selected="true" />
|
||||
<filter-element type="OBJECT" id="dimension" selected="true" />
|
||||
<filter-element type="OBJECT" id="cluster" selected="true" />
|
||||
<filter-element type="OBJECT" id="dblink" selected="true" />
|
||||
</user-schema>
|
||||
<public-schema>
|
||||
<filter-element type="OBJECT" id="table" selected="false" />
|
||||
<filter-element type="OBJECT" id="view" selected="false" />
|
||||
<filter-element type="OBJECT" id="materialized view" selected="false" />
|
||||
<filter-element type="OBJECT" id="index" selected="false" />
|
||||
<filter-element type="OBJECT" id="constraint" selected="false" />
|
||||
<filter-element type="OBJECT" id="trigger" selected="false" />
|
||||
<filter-element type="OBJECT" id="synonym" selected="false" />
|
||||
<filter-element type="OBJECT" id="sequence" selected="false" />
|
||||
<filter-element type="OBJECT" id="procedure" selected="false" />
|
||||
<filter-element type="OBJECT" id="function" selected="false" />
|
||||
<filter-element type="OBJECT" id="package" selected="false" />
|
||||
<filter-element type="OBJECT" id="type" selected="false" />
|
||||
<filter-element type="OBJECT" id="dimension" selected="false" />
|
||||
<filter-element type="OBJECT" id="cluster" selected="false" />
|
||||
<filter-element type="OBJECT" id="dblink" selected="false" />
|
||||
</public-schema>
|
||||
<any-schema>
|
||||
<filter-element type="OBJECT" id="table" selected="true" />
|
||||
<filter-element type="OBJECT" id="view" selected="true" />
|
||||
<filter-element type="OBJECT" id="materialized view" selected="true" />
|
||||
<filter-element type="OBJECT" id="index" selected="true" />
|
||||
<filter-element type="OBJECT" id="constraint" selected="true" />
|
||||
<filter-element type="OBJECT" id="trigger" selected="true" />
|
||||
<filter-element type="OBJECT" id="synonym" selected="true" />
|
||||
<filter-element type="OBJECT" id="sequence" selected="true" />
|
||||
<filter-element type="OBJECT" id="procedure" selected="true" />
|
||||
<filter-element type="OBJECT" id="function" selected="true" />
|
||||
<filter-element type="OBJECT" id="package" selected="true" />
|
||||
<filter-element type="OBJECT" id="type" selected="true" />
|
||||
<filter-element type="OBJECT" id="dimension" selected="true" />
|
||||
<filter-element type="OBJECT" id="cluster" selected="true" />
|
||||
<filter-element type="OBJECT" id="dblink" selected="true" />
|
||||
</any-schema>
|
||||
</basic-filter>
|
||||
<extended-filter>
|
||||
<filter-element type="RESERVED_WORD" id="keyword" selected="true" />
|
||||
<filter-element type="RESERVED_WORD" id="function" selected="true" />
|
||||
<filter-element type="RESERVED_WORD" id="parameter" selected="true" />
|
||||
<filter-element type="RESERVED_WORD" id="datatype" selected="true" />
|
||||
<filter-element type="RESERVED_WORD" id="exception" selected="true" />
|
||||
<filter-element type="OBJECT" id="schema" selected="true" />
|
||||
<filter-element type="OBJECT" id="user" selected="true" />
|
||||
<filter-element type="OBJECT" id="role" selected="true" />
|
||||
<filter-element type="OBJECT" id="privilege" selected="true" />
|
||||
<user-schema>
|
||||
<filter-element type="OBJECT" id="table" selected="true" />
|
||||
<filter-element type="OBJECT" id="view" selected="true" />
|
||||
<filter-element type="OBJECT" id="materialized view" selected="true" />
|
||||
<filter-element type="OBJECT" id="index" selected="true" />
|
||||
<filter-element type="OBJECT" id="constraint" selected="true" />
|
||||
<filter-element type="OBJECT" id="trigger" selected="true" />
|
||||
<filter-element type="OBJECT" id="synonym" selected="true" />
|
||||
<filter-element type="OBJECT" id="sequence" selected="true" />
|
||||
<filter-element type="OBJECT" id="procedure" selected="true" />
|
||||
<filter-element type="OBJECT" id="function" selected="true" />
|
||||
<filter-element type="OBJECT" id="package" selected="true" />
|
||||
<filter-element type="OBJECT" id="type" selected="true" />
|
||||
<filter-element type="OBJECT" id="dimension" selected="true" />
|
||||
<filter-element type="OBJECT" id="cluster" selected="true" />
|
||||
<filter-element type="OBJECT" id="dblink" selected="true" />
|
||||
</user-schema>
|
||||
<public-schema>
|
||||
<filter-element type="OBJECT" id="table" selected="true" />
|
||||
<filter-element type="OBJECT" id="view" selected="true" />
|
||||
<filter-element type="OBJECT" id="materialized view" selected="true" />
|
||||
<filter-element type="OBJECT" id="index" selected="true" />
|
||||
<filter-element type="OBJECT" id="constraint" selected="true" />
|
||||
<filter-element type="OBJECT" id="trigger" selected="true" />
|
||||
<filter-element type="OBJECT" id="synonym" selected="true" />
|
||||
<filter-element type="OBJECT" id="sequence" selected="true" />
|
||||
<filter-element type="OBJECT" id="procedure" selected="true" />
|
||||
<filter-element type="OBJECT" id="function" selected="true" />
|
||||
<filter-element type="OBJECT" id="package" selected="true" />
|
||||
<filter-element type="OBJECT" id="type" selected="true" />
|
||||
<filter-element type="OBJECT" id="dimension" selected="true" />
|
||||
<filter-element type="OBJECT" id="cluster" selected="true" />
|
||||
<filter-element type="OBJECT" id="dblink" selected="true" />
|
||||
</public-schema>
|
||||
<any-schema>
|
||||
<filter-element type="OBJECT" id="table" selected="true" />
|
||||
<filter-element type="OBJECT" id="view" selected="true" />
|
||||
<filter-element type="OBJECT" id="materialized view" selected="true" />
|
||||
<filter-element type="OBJECT" id="index" selected="true" />
|
||||
<filter-element type="OBJECT" id="constraint" selected="true" />
|
||||
<filter-element type="OBJECT" id="trigger" selected="true" />
|
||||
<filter-element type="OBJECT" id="synonym" selected="true" />
|
||||
<filter-element type="OBJECT" id="sequence" selected="true" />
|
||||
<filter-element type="OBJECT" id="procedure" selected="true" />
|
||||
<filter-element type="OBJECT" id="function" selected="true" />
|
||||
<filter-element type="OBJECT" id="package" selected="true" />
|
||||
<filter-element type="OBJECT" id="type" selected="true" />
|
||||
<filter-element type="OBJECT" id="dimension" selected="true" />
|
||||
<filter-element type="OBJECT" id="cluster" selected="true" />
|
||||
<filter-element type="OBJECT" id="dblink" selected="true" />
|
||||
</any-schema>
|
||||
</extended-filter>
|
||||
</filters>
|
||||
<sorting enabled="true">
|
||||
<sorting-element type="RESERVED_WORD" id="keyword" />
|
||||
<sorting-element type="RESERVED_WORD" id="datatype" />
|
||||
<sorting-element type="OBJECT" id="column" />
|
||||
<sorting-element type="OBJECT" id="table" />
|
||||
<sorting-element type="OBJECT" id="view" />
|
||||
<sorting-element type="OBJECT" id="materialized view" />
|
||||
<sorting-element type="OBJECT" id="index" />
|
||||
<sorting-element type="OBJECT" id="constraint" />
|
||||
<sorting-element type="OBJECT" id="trigger" />
|
||||
<sorting-element type="OBJECT" id="synonym" />
|
||||
<sorting-element type="OBJECT" id="sequence" />
|
||||
<sorting-element type="OBJECT" id="procedure" />
|
||||
<sorting-element type="OBJECT" id="function" />
|
||||
<sorting-element type="OBJECT" id="package" />
|
||||
<sorting-element type="OBJECT" id="type" />
|
||||
<sorting-element type="OBJECT" id="dimension" />
|
||||
<sorting-element type="OBJECT" id="cluster" />
|
||||
<sorting-element type="OBJECT" id="dblink" />
|
||||
<sorting-element type="OBJECT" id="schema" />
|
||||
<sorting-element type="OBJECT" id="role" />
|
||||
<sorting-element type="OBJECT" id="user" />
|
||||
<sorting-element type="RESERVED_WORD" id="function" />
|
||||
<sorting-element type="RESERVED_WORD" id="parameter" />
|
||||
</sorting>
|
||||
<format>
|
||||
<enforce-code-style-case value="true" />
|
||||
</format>
|
||||
</code-completion-settings>
|
||||
<execution-engine-settings>
|
||||
<statement-execution>
|
||||
<fetch-block-size value="100" />
|
||||
<execution-timeout value="20" />
|
||||
<debug-execution-timeout value="600" />
|
||||
<focus-result value="false" />
|
||||
<prompt-execution value="false" />
|
||||
</statement-execution>
|
||||
<script-execution>
|
||||
<command-line-interfaces />
|
||||
<execution-timeout value="300" />
|
||||
</script-execution>
|
||||
<method-execution>
|
||||
<execution-timeout value="30" />
|
||||
<debug-execution-timeout value="600" />
|
||||
<parameter-history-size value="10" />
|
||||
</method-execution>
|
||||
</execution-engine-settings>
|
||||
<operation-settings>
|
||||
<transactions>
|
||||
<uncommitted-changes>
|
||||
<on-project-close value="ASK" />
|
||||
<on-disconnect value="ASK" />
|
||||
<on-autocommit-toggle value="ASK" />
|
||||
</uncommitted-changes>
|
||||
<multiple-uncommitted-changes>
|
||||
<on-commit value="ASK" />
|
||||
<on-rollback value="ASK" />
|
||||
</multiple-uncommitted-changes>
|
||||
</transactions>
|
||||
<session-browser>
|
||||
<disconnect-session value="ASK" />
|
||||
<kill-session value="ASK" />
|
||||
<reload-on-filter-change value="false" />
|
||||
</session-browser>
|
||||
<compiler>
|
||||
<compile-type value="KEEP" />
|
||||
<compile-dependencies value="ASK" />
|
||||
<always-show-controls value="false" />
|
||||
</compiler>
|
||||
<debugger>
|
||||
<debugger-type value="ASK" />
|
||||
<use-generic-runners value="true" />
|
||||
</debugger>
|
||||
</operation-settings>
|
||||
<ddl-file-settings>
|
||||
<extensions>
|
||||
<mapping file-type-id="VIEW" extensions="vw" />
|
||||
<mapping file-type-id="TRIGGER" extensions="trg" />
|
||||
<mapping file-type-id="PROCEDURE" extensions="prc" />
|
||||
<mapping file-type-id="FUNCTION" extensions="fnc" />
|
||||
<mapping file-type-id="PACKAGE" extensions="pkg" />
|
||||
<mapping file-type-id="PACKAGE_SPEC" extensions="pks" />
|
||||
<mapping file-type-id="PACKAGE_BODY" extensions="pkb" />
|
||||
<mapping file-type-id="TYPE" extensions="tpe" />
|
||||
<mapping file-type-id="TYPE_SPEC" extensions="tps" />
|
||||
<mapping file-type-id="TYPE_BODY" extensions="tpb" />
|
||||
</extensions>
|
||||
<general>
|
||||
<lookup-ddl-files value="true" />
|
||||
<create-ddl-files value="false" />
|
||||
<synchronize-ddl-files value="true" />
|
||||
<use-qualified-names value="false" />
|
||||
<make-scripts-rerunnable value="true" />
|
||||
</general>
|
||||
</ddl-file-settings>
|
||||
<general-settings>
|
||||
<regional-settings>
|
||||
<date-format value="MEDIUM" />
|
||||
<number-format value="UNGROUPED" />
|
||||
<locale value="SYSTEM_DEFAULT" />
|
||||
<use-custom-formats value="false" />
|
||||
</regional-settings>
|
||||
<environment>
|
||||
<environment-types>
|
||||
<environment-type id="development" name="Development" description="Development environment" color="-2430209/-12296320" readonly-code="false" readonly-data="false" />
|
||||
<environment-type id="integration" name="Integration" description="Integration environment" color="-2621494/-12163514" readonly-code="true" readonly-data="false" />
|
||||
<environment-type id="production" name="Production" description="Productive environment" color="-11574/-10271420" readonly-code="true" readonly-data="true" />
|
||||
<environment-type id="other" name="Other" description="" color="-1576/-10724543" readonly-code="false" readonly-data="false" />
|
||||
</environment-types>
|
||||
<visibility-settings>
|
||||
<connection-tabs value="true" />
|
||||
<dialog-headers value="true" />
|
||||
<object-editor-tabs value="true" />
|
||||
<script-editor-tabs value="false" />
|
||||
<execution-result-tabs value="true" />
|
||||
</visibility-settings>
|
||||
</environment>
|
||||
</general-settings>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/AddStudentInfoActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/AddStudentScoreActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/LoginActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/MainActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/PassRepairActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/RegisterActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/RepairStudentInfoActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/RepairStudentScoreActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/ShowStudentInfoActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/ShowStudentScoreActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/WeihuStudentInfoActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/WeihuStudentScoreActivity.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/bean/UserInfo.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/dao/AddStudentInfoDao.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/dao/AddStudentScoreDao.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/dao/ComData.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/dao/MySqitHelper.java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/dao/UserDao.java" charset="UTF-8" />
|
||||
<file url="PROJECT" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="testRunner" value="GRADLE" />
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="gradleHome" value="$USER_HOME$/.gradle/wrapper/dists/gradle-7.3.3-bin/6a41zxkdtcxs8rphpq6y0069z/gradle-7.3.3" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/app" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="Android" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1 @@
|
||||
Subproject commit a4f9718ae100ef15e3681a900ae160160c8d2d8f
|
@ -0,0 +1 @@
|
||||
/build
|
@ -0,0 +1,44 @@
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'cn.edu.myapplication'
|
||||
compileSdk 32
|
||||
|
||||
defaultConfig {
|
||||
applicationId "cn.edu.myapplication"
|
||||
minSdk 21
|
||||
targetSdk 32
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
buildFeatures {
|
||||
viewBinding true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation 'androidx.appcompat:appcompat:1.4.1'
|
||||
implementation 'com.google.android.material:material:1.5.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
||||
implementation 'androidx.navigation:navigation-fragment:2.4.1'
|
||||
implementation 'androidx.navigation:navigation-ui:2.4.1'
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
@ -0,0 +1,26 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest {
|
||||
@Test
|
||||
public void useAppContext() {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||
assertEquals("cn.edu.myapplication", appContext.getPackageName());
|
||||
}
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.MyApplication"
|
||||
tools:targetApi="31">
|
||||
|
||||
<activity
|
||||
android:name=".LoginActivity"
|
||||
android:label="@string/app_name"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".RegisterActivity"
|
||||
android:label="@string/title_activity_register" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/title_activity_Main" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".AddStudentInfoActivity"
|
||||
android:label="@string/title_activity_add_info" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".PassRepairActivity"
|
||||
android:label="@string/title_activity_pass_repair" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ShowStudentInfoActivity"
|
||||
android:label="@string/title_activity_show_student_info" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".WeihuStudentInfoActivity"
|
||||
android:label="@string/title_activity_weihu_student_info" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".RepairStudentInfoActivity"
|
||||
android:label="@string/title_activity_repair_student_info" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".AddStudentScoreActivity"
|
||||
android:label="@string/title_activity_add_student_score" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ShowStudentScoreActivity"
|
||||
android:label="@string/title_activity_show_student_score" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".WeihuStudentScoreActivity"
|
||||
android:label="@string/title_activity_weihu_student_score" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".RepairStudentScoreActivity"
|
||||
android:label="@string/title_activity_repair_student_score" >
|
||||
</activity>
|
||||
|
||||
</application>
|
||||
|
||||
|
||||
|
||||
</manifest>
|
@ -0,0 +1,132 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.RadioButton;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.Toast;
|
||||
|
||||
import cn.edu.myapplication.bean.StudentInfo;
|
||||
import cn.edu.myapplication.dao.AddStudentInfoDao;
|
||||
|
||||
public class AddStudentInfoActivity extends Activity {
|
||||
//成员变量
|
||||
EditText editnum,editname,editage,editmark;
|
||||
RadioButton radiomen,radiowomen;
|
||||
ArrayAdapter<String> proadapter;
|
||||
String[] proname={"计算机应用","计算机网络","移动互联开发","WEB前端开发"};
|
||||
Spinner pro;
|
||||
Button butok,butre;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_add_student_info);
|
||||
//调用init()方法
|
||||
this.init();
|
||||
//提交按钮事件添加监听
|
||||
this.butok.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View V) {
|
||||
//提交按钮的时间处理代码
|
||||
addaction();
|
||||
}
|
||||
});
|
||||
//为清空按钮事件添加监听
|
||||
this.butre.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
// TODO Auto-generated method stub
|
||||
qingkongaction();
|
||||
}
|
||||
});
|
||||
}
|
||||
//初始化声明的控件对象
|
||||
public void init(){
|
||||
this.editnum=(EditText) findViewById(R.id.addnumedit);
|
||||
this.editname=(EditText) findViewById(R.id.addnameedit);
|
||||
this.radiomen=(RadioButton) findViewById(R.id.addradioman);
|
||||
this.radiowomen=(RadioButton) findViewById(R.id.addradiowoman);
|
||||
this.editage=(EditText) findViewById(R.id.addageedit);
|
||||
this.pro=(Spinner) findViewById(R.id.spinner1);
|
||||
//构建适配器--数据源--显示格式
|
||||
this.proadapter=new ArrayAdapter<String>(this,android.R.layout.simple_expandable_list_item_1,this.proname);
|
||||
//设置spinpro 数据源
|
||||
this.pro.setAdapter(proadapter);
|
||||
this.editmark=(EditText) findViewById(R.id.addmarkedit);
|
||||
this.butok=(Button) findViewById(R.id.addbutton);
|
||||
this.butre=(Button) findViewById(R.id.resbutton);
|
||||
|
||||
}
|
||||
//添加按钮事件处理方法
|
||||
public void addaction(){
|
||||
//1.获取用户输入的信息
|
||||
String num=this.editnum.getText().toString();
|
||||
// //nn为空判读
|
||||
// double nn=Integer.parseInt(num);
|
||||
String name=this.editname.getText().toString();
|
||||
String sex="男";
|
||||
if(this.radiowomen.isChecked()){
|
||||
//
|
||||
sex="女";
|
||||
}
|
||||
String age=this.editage.getText().toString();
|
||||
String pro=this.pro.getSelectedItem().toString();
|
||||
String mark=this.editmark.getText().toString();
|
||||
//2.调用相关 存储添加学生信息
|
||||
StudentInfo tem=new StudentInfo();
|
||||
tem.setNum(num);
|
||||
tem.setName(name);
|
||||
tem.setSex(sex);
|
||||
tem.setAge(age);
|
||||
tem.setPro(pro);
|
||||
tem.setMark(mark);
|
||||
AddStudentInfoDao adao=new AddStudentInfoDao(this);
|
||||
long n=adao.addStudentInfo(tem);
|
||||
//3.根据结果显示
|
||||
String mes="学生信息添加失败";
|
||||
if(n>0){
|
||||
mes="学生信息添加成功";
|
||||
}
|
||||
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
//清空按钮事件处理方法
|
||||
public void qingkongaction(){
|
||||
this.editnum.setText("");
|
||||
this.editname.setText("");
|
||||
//设置性别默认为男进行选中显示
|
||||
this.radiomen.setChecked(true);
|
||||
this.editage.setText("");
|
||||
//设置下拉选择框的专业为选择框的第一个
|
||||
this.pro.setSelection(0);
|
||||
this.editmark.setText("");
|
||||
}
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
getMenuInflater().inflate(R.menu.add_info, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.action_settings) {
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
@ -0,0 +1,154 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.SharedPreferences.Editor;
|
||||
import android.os.Bundle;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.Button;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.EditText;
|
||||
import android.widget.Toast;
|
||||
|
||||
import cn.edu.myapplication.bean.UserInfo;
|
||||
import cn.edu.myapplication.dao.ComData;
|
||||
import cn.edu.myapplication.dao.UserDao;
|
||||
|
||||
|
||||
public class LoginActivity extends Activity {
|
||||
//成员变量
|
||||
EditText editname,editpass;
|
||||
Button butlogin,butreg;
|
||||
CheckBox checksave;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_login);
|
||||
//调用方法初始化
|
||||
this.init();
|
||||
|
||||
//调用方法 读取保存的用户信息
|
||||
this.readLoginInfo();
|
||||
|
||||
//为“新用户注册” 添加按钮监听事件
|
||||
this.butreg.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
//切换到用户注册界面的切换方法
|
||||
Intent abc=new Intent(LoginActivity.this,RegisterActivity.class);
|
||||
startActivity(abc);
|
||||
|
||||
}
|
||||
});
|
||||
//点击登录按钮 为登录按钮事件添加监听
|
||||
this.butlogin.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
//调用相关登录方法
|
||||
loginAction();
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 初始化界面
|
||||
*/
|
||||
public void init(){
|
||||
this.editname=(EditText) findViewById(R.id.loginditname);
|
||||
this.editpass=(EditText) findViewById(R.id.logeditpass);
|
||||
this.butlogin=(Button) findViewById(R.id.Logbutloging);
|
||||
this.butreg=(Button) findViewById(R.id.logbutredister);
|
||||
this.checksave=(CheckBox) findViewById(R.id.checkBox1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 登录按钮功能
|
||||
*/
|
||||
public void loginAction(){
|
||||
//1.获取用户输入的用户名与密码
|
||||
String name=this.editname.getText().toString();
|
||||
String pass=this.editpass.getText().toString();
|
||||
//2.判断输入是否为空
|
||||
if(name.length()==0||pass.length()==0){
|
||||
Toast.makeText(this, "数据输入不完整,请修改", Toast.LENGTH_LONG).show();
|
||||
return;
|
||||
}
|
||||
//3.调用相关方法进行在用户信息表里查询数据库
|
||||
UserDao udao=new UserDao(this);
|
||||
UserInfo utem=udao.checkUser(name, pass);
|
||||
//4.处理结果
|
||||
if(utem==null){
|
||||
//如果用户信息表中用户信息为空--登录失败
|
||||
Toast.makeText(this, "用户名或密码错误,请修改!", Toast.LENGTH_LONG).show();
|
||||
}else{
|
||||
//如果用户信息表中有用户信息--登录成功--合法用户
|
||||
Toast.makeText(this, "用户登录成功!", Toast.LENGTH_LONG).show();
|
||||
SharedPreferences sharesave=getSharedPreferences("loginfo",Context.MODE_PRIVATE);
|
||||
Editor editor=sharesave.edit();
|
||||
if(this.checksave.isChecked()){
|
||||
//用户选择了保存用户信息 显示用户名与密码
|
||||
editor.putString("uname", name);
|
||||
editor.putString("upass", pass);
|
||||
//提交
|
||||
editor.commit();
|
||||
}else{
|
||||
//用户未选择保存 清空---或者清空 以保存内容
|
||||
editor.clear();
|
||||
//只进行显示用户登录过的用户名不显示密码
|
||||
editor.putString("uname", name);
|
||||
editor.commit();
|
||||
}
|
||||
//合法用户--登陆成功--跳转到用户使用界面
|
||||
ComData.utem=utem;
|
||||
Intent intent=new Intent(this,MainActivity.class);
|
||||
startActivity(intent);
|
||||
//销毁登陆注册界面--返回直接退出
|
||||
this.finish();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 读取保存的用户名 和 密码
|
||||
*/
|
||||
public void readLoginInfo(){
|
||||
SharedPreferences sharelogin=getSharedPreferences("loginfo",Context.MODE_PRIVATE);
|
||||
// ”根据键名进行读取“ “未读取到显示默认的空值” Context.private
|
||||
String uname=sharelogin.getString("uname", "");
|
||||
String upass=sharelogin.getString("upass", "");
|
||||
//在用户名与密码的框里进行显示读取到的内容
|
||||
this.editname.setText(uname);
|
||||
this.editpass.setText(upass);
|
||||
}
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
getMenuInflater().inflate(R.menu.main, menu);
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.action_exit) {
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,121 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.Toast;
|
||||
|
||||
import cn.edu.myapplication.dao.ComData;
|
||||
import cn.edu.myapplication.dao.UserDao;
|
||||
|
||||
public class PassRepairActivity extends Activity {
|
||||
//成员变量
|
||||
EditText editpass1,editpass2,editpass3;
|
||||
Button butsave,butres;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_pass_repair);
|
||||
//初始化 调用方法
|
||||
this.init();
|
||||
|
||||
//保存按钮 事件监听
|
||||
this.butsave.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
//调用保存按钮事件方法
|
||||
saveAction();
|
||||
}
|
||||
});
|
||||
|
||||
//重置按钮 事件监听
|
||||
this.butres.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
//调用 重置按钮事件 方法
|
||||
resAction();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
/**
|
||||
* 初始化
|
||||
*/
|
||||
private void init(){
|
||||
this.editpass1=(EditText) findViewById(R.id.paeditpass1);
|
||||
this.editpass2=(EditText) findViewById(R.id.paeditpass2);
|
||||
this.editpass3=(EditText) findViewById(R.id.paeditpass3);
|
||||
this.butsave=(Button) findViewById(R.id.psbutsave);
|
||||
this.butres=(Button) findViewById(R.id.psbutres);
|
||||
}
|
||||
/**
|
||||
*保存按钮的事件处理
|
||||
*/
|
||||
public void saveAction(){
|
||||
//1.获取用户的数据(原,新,重复)
|
||||
String pass1=this.editpass1.getText().toString();
|
||||
String pass2=this.editpass2.getText().toString();
|
||||
String pass3=this.editpass3.getText().toString();
|
||||
//为空判断 省略
|
||||
//2.判读原密码 是否正确 pass1 登陆 用密码 ComData.utem 中
|
||||
String pass= ComData.utem.getUserpass();
|
||||
if(!pass1.equals(pass)){
|
||||
Toast.makeText(this, "原密码输入有错,请修改", Toast.LENGTH_LONG).show();
|
||||
return ;
|
||||
}
|
||||
//3.判读两次 密码 是否一致
|
||||
if(!pass2.equals(pass3)){
|
||||
Toast.makeText(this, "两次密码不一致,请修改", Toast.LENGTH_LONG).show();
|
||||
return ;
|
||||
}
|
||||
//4.调用相关方法修改数据库
|
||||
UserDao udao=new UserDao(this);
|
||||
int id=ComData.utem.getId();
|
||||
long n=udao.repairPassById(id, pass2);
|
||||
//修改用户保存的密码 并验证
|
||||
if(n>0){
|
||||
//用户密码修改成功
|
||||
Toast.makeText(this, "密码修改成功", Toast.LENGTH_LONG).show();
|
||||
//进行设置更新 修改密码
|
||||
ComData.utem.setUserpass(pass2);
|
||||
return ;
|
||||
}else{
|
||||
//用户密码修改失败
|
||||
Toast.makeText(this, "密码修改失败", Toast.LENGTH_LONG).show();
|
||||
return ;
|
||||
}
|
||||
}
|
||||
/**
|
||||
*重置按钮的事件处理
|
||||
*/
|
||||
public void resAction(){
|
||||
this.editpass1.setText("");
|
||||
this.editpass2.setText("");
|
||||
this.editpass3.setText("");
|
||||
}
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
getMenuInflater().inflate(R.menu.pass_repair, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.action_settings) {
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
@ -0,0 +1,103 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.Toast;
|
||||
|
||||
import cn.edu.myapplication.dao.UserDao;
|
||||
|
||||
public class RegisterActivity extends Activity {
|
||||
//成员变量
|
||||
EditText editname,editpass1,editpass2;
|
||||
Button butsave;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_register);
|
||||
//调用方法初始化
|
||||
this.init();
|
||||
//保存按钮添加事件监听
|
||||
this.butsave.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
//调用保存 方法 -- saveAction
|
||||
saveAction();
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
*
|
||||
* 初始化
|
||||
*/
|
||||
private void init(){
|
||||
this.editname=(EditText) findViewById(R.id.regeditname);
|
||||
this.editpass1=(EditText) findViewById(R.id.regditpass1);
|
||||
this.editpass2=(EditText) findViewById(R.id.regditpass2);
|
||||
this.butsave=(Button) findViewById(R.id.regbutsave);
|
||||
}
|
||||
/**
|
||||
* 保存按钮具体事件处理方法
|
||||
*/
|
||||
public void saveAction(){
|
||||
//1.获取
|
||||
String name=this.editname.getText().toString();
|
||||
String pass1=this.editpass1.getText().toString();
|
||||
String pass2=this.editpass2.getText().toString();
|
||||
//2.判断输入是否为空
|
||||
if(name.length()==0||pass1.length()==0||pass2.length()==0){
|
||||
Toast.makeText(this,"输入数据不完整,请修改",Toast.LENGTH_LONG).show();
|
||||
//返回
|
||||
return;
|
||||
}
|
||||
//3.判断密码两次是否一致
|
||||
if(!pass1.equals(pass2)){
|
||||
//两次密码不一致
|
||||
Toast.makeText(this,"两次密码不一致,请修改",Toast.LENGTH_LONG).show();
|
||||
//返回
|
||||
return;
|
||||
}
|
||||
//4.调用相关方法 修改 数据库内容
|
||||
UserDao udao=new UserDao(this);
|
||||
long n=udao.addUser(name, pass1);
|
||||
if(n>0){
|
||||
//添加 --注册成功
|
||||
Toast.makeText(this,"新用户注册成功",Toast.LENGTH_LONG).show();
|
||||
// //从新用户注册界面进行跳转到用户的登录界面
|
||||
// Intent intent=new Intent(RegisterActivity.this,LoginActivity.class);
|
||||
// startActivity(intent);
|
||||
// //跳转后 进行销毁新用户注册界面
|
||||
// this.finish();
|
||||
}else{
|
||||
//添加--注册失败
|
||||
Toast.makeText(this,"新用户注册失败",Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 重置按钮具体事件处理方法
|
||||
*/
|
||||
public void resetAction(){
|
||||
this.editname.setText("");
|
||||
this.editpass1.setText("");
|
||||
this.editpass2.setText("");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.action_exit) {
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
@ -0,0 +1,173 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.RadioButton;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import cn.edu.myapplication.bean.StudentInfo;
|
||||
import cn.edu.myapplication.dao.AddStudentInfoDao;
|
||||
import cn.edu.myapplication.dao.ComData;
|
||||
|
||||
public class RepairStudentInfoActivity extends Activity {
|
||||
//成员变量
|
||||
TextView repaireditnum,repaireditname;
|
||||
EditText repaireditage,repaireditmark;
|
||||
RadioButton repairradiomen,repairradiowomen;
|
||||
ArrayAdapter<String> proadapter;
|
||||
String[] proname={"计算机应用","计算机网络","移动互联开发","WEB前端开发"};
|
||||
Spinner repairpro;
|
||||
Button butsave,butdel;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_repair_student_info);
|
||||
|
||||
//调用方发 初始化 声明控件对象
|
||||
this.init();
|
||||
//调用方法 公共数据区 获取数据并显示
|
||||
this.showOldStudentData();
|
||||
//保存按钮
|
||||
this.butsave.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
saveAction();
|
||||
}
|
||||
});
|
||||
//删除按钮
|
||||
this.butdel.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
deleteAction();
|
||||
}
|
||||
});
|
||||
}
|
||||
//初始化 声明的控件 对象
|
||||
private void init(){
|
||||
this.repaireditnum=(TextView) findViewById(R.id.repairnumtext);
|
||||
this.repaireditname=(TextView) findViewById(R.id.repairnametext);
|
||||
this.repairradiomen=(RadioButton) findViewById(R.id.repairradiomen);
|
||||
this.repairradiowomen=(RadioButton) findViewById(R.id.repairradiowoman);
|
||||
this.repaireditage=(EditText) findViewById(R.id.repairageedit);
|
||||
this.repairpro=(Spinner) findViewById(R.id.spinner1);
|
||||
this.repaireditmark=(EditText) findViewById(R.id.repairmarkedit);
|
||||
this.butsave=(Button) findViewById(R.id.repairsavebutton);
|
||||
this.butdel=(Button) findViewById(R.id.repairdelbutton);
|
||||
}
|
||||
/**
|
||||
* 从公共数据区 获取数据并显示
|
||||
*
|
||||
*/
|
||||
private void showOldStudentData(){
|
||||
//获取存储的数据
|
||||
StudentInfo tem= ComData.item;
|
||||
//显示获取的数据
|
||||
this.repaireditnum.setText(tem.getNum());
|
||||
this.repaireditname.setText(tem.getName());
|
||||
|
||||
this.repaireditage.setText(tem.getAge());
|
||||
if(tem.getSex().equals("男"))
|
||||
{
|
||||
repairradiomen.setChecked(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
repairradiowomen.setChecked(true);
|
||||
}
|
||||
int n=0;
|
||||
String pro=tem.getPro();
|
||||
if(pro.equals("计算机应用")){
|
||||
n=0;
|
||||
}else if(pro.equals("计算机网络")){
|
||||
n=1;
|
||||
}else if(pro.equals("移动互联开发")){
|
||||
n=2;
|
||||
}else if(pro.equals("WEB前端开发")){
|
||||
n=3;
|
||||
}else{
|
||||
n=4;
|
||||
}
|
||||
this.repairpro.setSelection(n);
|
||||
this.repaireditmark.setText(tem.getMark());
|
||||
}
|
||||
/**
|
||||
* 删除 学生信息按钮事件功能
|
||||
*/
|
||||
private void deleteAction(){
|
||||
String num=ComData.item.getNum();
|
||||
//调用方法 删除相关信息
|
||||
AddStudentInfoDao adao=new AddStudentInfoDao(this);
|
||||
long n=adao.deleteById(num);
|
||||
String mes="学生信息删除失败";
|
||||
if(n>0){
|
||||
mes="学生信息删除成功";
|
||||
}
|
||||
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
/**
|
||||
* 保存学生信息按钮事件功能
|
||||
*/
|
||||
private void saveAction(){
|
||||
//1.获取用户输入的信息(用户修改的信息)
|
||||
String num=this.repaireditnum.getText().toString();
|
||||
String name=this.repaireditname.getText().toString();
|
||||
String sex="男";
|
||||
if(this.repairradiowomen.isChecked()){
|
||||
//
|
||||
sex="女";
|
||||
}
|
||||
String age=this.repaireditage.getText().toString();
|
||||
String pro=this.repairpro.getSelectedItem().toString();
|
||||
String mark=this.repaireditmark.getText().toString();
|
||||
//修改公共数据库相关信息
|
||||
ComData.item.setNum(num);
|
||||
ComData.item.setName(name);
|
||||
ComData.item.setSex(sex);
|
||||
ComData.item.setAge(age);
|
||||
ComData.item.setPro(pro);
|
||||
ComData.item.setMark(mark);
|
||||
//调用 相关方法 修改数据库
|
||||
AddStudentInfoDao adao=new AddStudentInfoDao(this);
|
||||
long n=adao.updateById(ComData.item);
|
||||
//根据结果显示
|
||||
String mes="学生信息修改失败";
|
||||
if(n>0){
|
||||
mes="学生信息修改成功";
|
||||
}
|
||||
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
getMenuInflater().inflate(R.menu.repair_student_info, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.action_settings) {
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
@ -0,0 +1,131 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import cn.edu.myapplication.bean.StudentScore;
|
||||
import cn.edu.myapplication.dao.AddStudentScoreDao;
|
||||
import cn.edu.myapplication.dao.ComData;
|
||||
|
||||
public class RepairStudentScoreActivity extends Activity {
|
||||
TextView repairnum,repairname;
|
||||
EditText repandroid,repjava,rephtml;
|
||||
Button repbut,delbut;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_repair_student_score);
|
||||
//调用方发 初始化 声明控件对象
|
||||
this.init();
|
||||
//调用方法 公共数据区 获取数据并显示
|
||||
this.showOldStudentData();
|
||||
//保存修改按钮
|
||||
this.repbut.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
saveAction();
|
||||
}
|
||||
});
|
||||
//删除成绩按钮
|
||||
this.delbut.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
deleteAction();
|
||||
}
|
||||
});
|
||||
}
|
||||
//初始化 声明的控件 对象
|
||||
private void init(){
|
||||
this.repairnum=(TextView) findViewById(R.id.repscorenumtext);
|
||||
this.repairname=(TextView) findViewById(R.id.repscorenametext);
|
||||
this.repandroid=(EditText) findViewById(R.id.repscoreandroidtext);
|
||||
this.repjava=(EditText) findViewById(R.id.repscorejavatext);
|
||||
this.rephtml=(EditText) findViewById(R.id.repscorehtmltext);
|
||||
this.repbut=(Button) findViewById(R.id.repscorebutton);
|
||||
this.delbut=(Button) findViewById(R.id.repdelscorebutton);
|
||||
}
|
||||
/**
|
||||
* 从公共数据区 获取数据并显示
|
||||
*
|
||||
*/
|
||||
private void showOldStudentData(){
|
||||
//获取存储的数据
|
||||
StudentScore tem= ComData.stem;
|
||||
//显示获取的数据
|
||||
this.repairnum.setText(tem.getNum());
|
||||
this.repairname.setText(tem.getName());
|
||||
this.repandroid.setText(tem.getAndroid());
|
||||
this.repjava.setText(tem.getJava());
|
||||
this.rephtml.setText(tem.getHtml());
|
||||
}
|
||||
/**
|
||||
* 删除 学生成绩按钮事件功能
|
||||
*/
|
||||
private void deleteAction(){
|
||||
String num=ComData.stem.getNum();
|
||||
//调用方法 删除相关信息
|
||||
AddStudentScoreDao adao=new AddStudentScoreDao(this);
|
||||
long n=adao.deleteById(num);
|
||||
String mes="学生成绩删除失败";
|
||||
if(n>0){
|
||||
mes="学生成绩删除成功";
|
||||
}
|
||||
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
/**
|
||||
* 保存学生成绩按钮事件功能
|
||||
*/
|
||||
private void saveAction(){
|
||||
//1.获取用户输入的成绩(用户修改的成绩)
|
||||
String num=this.repairnum.getText().toString();
|
||||
String name=this.repairname.getText().toString();
|
||||
String android=this.repandroid.getText().toString();
|
||||
String java=this.repjava.getText().toString();
|
||||
String html=this.rephtml.getText().toString();
|
||||
//修改公共数据库相关成绩
|
||||
ComData.stem.setNum(num);
|
||||
ComData.stem.setName(name);
|
||||
ComData.stem.setAndroid(android);
|
||||
ComData.stem.setJava(java);
|
||||
ComData.stem.setHtml(html);
|
||||
//调用 相关方法 修改数据库
|
||||
AddStudentScoreDao adao=new AddStudentScoreDao(this);
|
||||
long n=adao.updateById(ComData.stem);
|
||||
//根据结果显示
|
||||
String mes="学生成绩修改失败";
|
||||
if(n>0){
|
||||
mes="学生成绩修改成功";
|
||||
}
|
||||
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
getMenuInflater().inflate(R.menu.repair_student_score, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.action_settings) {
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
@ -0,0 +1,128 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.Button;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import cn.edu.myapplication.bean.StudentInfo;
|
||||
import cn.edu.myapplication.dao.AddStudentInfoDao;
|
||||
|
||||
public class ShowStudentInfoActivity extends Activity {
|
||||
//成员变量
|
||||
Button butall,butshow;
|
||||
TextView numedit;
|
||||
ListView listshow;
|
||||
ArrayList<StudentInfo> adata;//存储 查询的结果
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_show_student_info);
|
||||
//调用方法进行初始化
|
||||
this.init();
|
||||
//showdata在方法初始化之后调用进入直接进行显示学生的信息
|
||||
// this.showData();
|
||||
//为查询所有学生信息按钮事件添加监听
|
||||
this.butall.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
// TODO Auto-generated method stub
|
||||
//showdata在按钮监听事件里调用 点击查询进行查询全部
|
||||
showData();
|
||||
}
|
||||
});
|
||||
//根据学号查询所有学生信息按钮添加监听
|
||||
this.butshow.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
// TODO Auto-generated method stub
|
||||
String num=numedit.getText().toString();
|
||||
shownumData(num);
|
||||
}
|
||||
});
|
||||
}
|
||||
/*
|
||||
* 初始化声明的控件对象
|
||||
*/
|
||||
private void init(){
|
||||
this.butall=(Button) findViewById(R.id.showallbutton);
|
||||
this.butshow=(Button) findViewById(R.id.showbutton);
|
||||
this.numedit=(TextView) findViewById(R.id.numedit);
|
||||
this.listshow=(ListView) findViewById(R.id.listView1);
|
||||
}
|
||||
/**
|
||||
*查询所有学生信息 数据表并显示
|
||||
*type
|
||||
*/
|
||||
private void showData(){
|
||||
//1.调用 相关方法 插寻数据
|
||||
AddStudentInfoDao adao=new AddStudentInfoDao(this);
|
||||
this.adata=adao.getStudentData();
|
||||
//2.构建列表搜需要的数据源
|
||||
ArrayList<String> sdata=new ArrayList<String>();
|
||||
for(int i=0;i<this.adata.size();i++){
|
||||
//从仓库中 读取 第i条 记录
|
||||
StudentInfo tem=this.adata.get(i);
|
||||
//构建列表 每行显示内容
|
||||
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getSex()+"\t\t"+tem.getAge()+"\t\t"+tem.getPro()+"\t\t"+tem.getMark();
|
||||
//添加数据源
|
||||
sdata.add(str);
|
||||
}
|
||||
//数据源 与 列表 “桥”
|
||||
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
|
||||
//设置列表的配置器
|
||||
this.listshow.setAdapter(adapter);
|
||||
}
|
||||
/**
|
||||
*根据学号查询单个学生信息 数据并显示
|
||||
* type
|
||||
*/
|
||||
public void shownumData(String num){
|
||||
//1.调用 相关方法 查询数据
|
||||
AddStudentInfoDao adao=new AddStudentInfoDao(this);
|
||||
this.adata=adao.getStudentnumData(num);
|
||||
//2.构建列表搜需要的数据源
|
||||
ArrayList<String> sdata=new ArrayList<String>();
|
||||
for(int i=0;i<this.adata.size();i++){
|
||||
//从仓库中 读取 第i条 记录
|
||||
StudentInfo tem=this.adata.get(i);
|
||||
//构建列表 每行显示内容
|
||||
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getSex()+"\t\t"+tem.getAge()+"\t\t"+tem.getPro()+"\t\t"+tem.getMark();
|
||||
//添加数据源
|
||||
sdata.add(str);
|
||||
}
|
||||
//数据源 与 列表 “桥”
|
||||
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
|
||||
//设置列表的配置器
|
||||
this.listshow.setAdapter(adapter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
getMenuInflater().inflate(R.menu.show_student_info, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.action_settings) {
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
@ -0,0 +1,126 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.Button;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import cn.edu.myapplication.bean.StudentScore;
|
||||
import cn.edu.myapplication.dao.AddStudentScoreDao;
|
||||
|
||||
public class ShowStudentScoreActivity extends Activity {
|
||||
//成员变量
|
||||
Button butscoreall,butscoreshow;
|
||||
TextView scoreedit;
|
||||
ListView listshow;
|
||||
ArrayList<StudentScore> adata;//存储 查询的结果
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_show_student_score);
|
||||
//调用方法进行初始化
|
||||
this.init();
|
||||
//showdata在方法初始化之后调用进入直接进行显示学生的信息
|
||||
// this.showData();
|
||||
//为查询所有学生信息按钮事件添加监听
|
||||
this.butscoreall.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
// TODO Auto-generated method stub
|
||||
//showdata在按钮监听事件里调用 点击查询进行查询全部
|
||||
showscoreData();
|
||||
}
|
||||
});
|
||||
//根据学号查询所有学生信息按钮添加监听
|
||||
this.butscoreshow.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
// TODO Auto-generated method stub
|
||||
String num=scoreedit.getText().toString();
|
||||
shownumscoreData(num);
|
||||
}
|
||||
});
|
||||
}
|
||||
/*
|
||||
* 初始化声明的控件对象
|
||||
*/
|
||||
private void init(){
|
||||
this.butscoreall=(Button) findViewById(R.id.showallbutton);
|
||||
this.butscoreshow=(Button) findViewById(R.id.showscorebutton);
|
||||
this.scoreedit=(TextView) findViewById(R.id.numscoreedit);
|
||||
this.listshow=(ListView) findViewById(R.id.listView11);
|
||||
}
|
||||
/**
|
||||
*查询所有学生成绩数据表并显示在ListView
|
||||
*type
|
||||
*/
|
||||
private void showscoreData(){
|
||||
//1.调用 相关方法 插寻数据
|
||||
AddStudentScoreDao adao=new AddStudentScoreDao(this);
|
||||
this.adata=adao.getallscoreData();
|
||||
//2.构建列表搜需要的数据源
|
||||
ArrayList<String> sdata=new ArrayList<String>();
|
||||
for(int i=0;i<this.adata.size();i++){
|
||||
//从仓库中 读取 第i条 记录
|
||||
StudentScore tem=this.adata.get(i);
|
||||
//构建列表 每行显示内容
|
||||
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getAndroid()+"\t\t"+tem.getJava()+"\t\t"+tem.getHtml();
|
||||
//添加数据源
|
||||
sdata.add(str);
|
||||
}
|
||||
//数据源 与 列表 “桥”
|
||||
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
|
||||
//设置列表的配置器
|
||||
this.listshow.setAdapter(adapter);
|
||||
}
|
||||
/**
|
||||
*根据学号查询单个学生成绩 数据并显示在ListView
|
||||
* type
|
||||
*/
|
||||
public void shownumscoreData(String num){
|
||||
//1.调用 相关方法 查询数据
|
||||
AddStudentScoreDao adao=new AddStudentScoreDao(this);
|
||||
this.adata=adao.getScorenumData(num);
|
||||
//2.构建列表搜需要的数据源
|
||||
ArrayList<String> sdata=new ArrayList<String>();
|
||||
for(int i=0;i<this.adata.size();i++){
|
||||
//从仓库中 读取 第i条 记录
|
||||
StudentScore tem=this.adata.get(i);
|
||||
//构建列表 每行显示内容
|
||||
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getAndroid()+"\t\t"+tem.getJava()+"\t\t"+tem.getHtml();
|
||||
//添加数据源
|
||||
sdata.add(str);
|
||||
}
|
||||
//数据源 与 列表 “桥”
|
||||
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
|
||||
//设置列表的配置器
|
||||
this.listshow.setAdapter(adapter);
|
||||
}
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
getMenuInflater().inflate(R.menu.show_student_score, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.action_settings) {
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.Button;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
import android.widget.AdapterView.OnItemClickListener;
|
||||
|
||||
import cn.edu.myapplication.bean.StudentInfo;
|
||||
import cn.edu.myapplication.dao.AddStudentInfoDao;
|
||||
import cn.edu.myapplication.dao.ComData;
|
||||
|
||||
public class WeihuStudentInfoActivity extends Activity {
|
||||
//成员变量
|
||||
Button butshow;
|
||||
TextView numedit;
|
||||
ListView listshow;
|
||||
ArrayList<StudentInfo> adata;//存储 查询的结果
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_weihu_student_info);
|
||||
//调用方法进行初始化
|
||||
this.init();
|
||||
//为根据学号进行查询按钮添加事件监听
|
||||
this.butshow.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
// TODO Auto-generated method stub
|
||||
String num=numedit.getText().toString();
|
||||
shownumData(num);
|
||||
}
|
||||
});
|
||||
//为 listshow 控件添加 监听
|
||||
this.listshow.setOnItemClickListener(new OnItemClickListener() {
|
||||
|
||||
@Override
|
||||
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
|
||||
long arg3) {
|
||||
// TODO Auto-generated method stub
|
||||
listAction(arg2);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
/*
|
||||
* 初始化声明的控件对象
|
||||
*/
|
||||
private void init(){
|
||||
this.butshow=(Button) findViewById(R.id.showbutton);
|
||||
this.numedit=(TextView) findViewById(R.id.numedit);
|
||||
this.listshow=(ListView) findViewById(R.id.listView1);
|
||||
}
|
||||
/**
|
||||
*根据学号查询单个学生信息 数据并显示
|
||||
*type
|
||||
*/
|
||||
public void shownumData(String num){
|
||||
//1.调用 相关方法 查询数据
|
||||
AddStudentInfoDao adao=new AddStudentInfoDao(this);
|
||||
this.adata=adao.getStudentnumData(num);
|
||||
//2.构建列表搜需要的数据源
|
||||
ArrayList<String> sdata=new ArrayList<String>();
|
||||
for(int i=0;i<this.adata.size();i++){
|
||||
//从仓库中 读取 第i条 记录
|
||||
StudentInfo tem=this.adata.get(i);
|
||||
//构建列表 每行显示内容
|
||||
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getSex()+"\t\t"+tem.getAge()+"\t\t"+tem.getPro()+"\t\t"+tem.getMark();
|
||||
//添加数据源
|
||||
sdata.add(str);
|
||||
}
|
||||
//数据源 与 列表 “桥”
|
||||
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
|
||||
//设置列表的配置器
|
||||
this.listshow.setAdapter(adapter);
|
||||
}
|
||||
/**
|
||||
* 用户点击 查询出的学生信息列表 事件处理
|
||||
*/
|
||||
private void listAction(int num){
|
||||
//1.从数据中 获取第 num的数据
|
||||
StudentInfo tem=this.adata.get(num);
|
||||
//2.将获取的数据存储到公共数据区 ---在学生信息维护界面 获取
|
||||
ComData.item=tem;
|
||||
//3.跳转到 信息修改 删除界面
|
||||
Intent intent=new Intent(this,RepairStudentInfoActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
getMenuInflater().inflate(R.menu.weihu_student_info, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.action_settings) {
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
package cn.edu.myapplication;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.Button;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
import android.widget.AdapterView.OnItemClickListener;
|
||||
|
||||
import cn.edu.myapplication.bean.StudentScore;
|
||||
import cn.edu.myapplication.dao.AddStudentScoreDao;
|
||||
import cn.edu.myapplication.dao.ComData;
|
||||
|
||||
public class WeihuStudentScoreActivity extends Activity {
|
||||
//成员变量
|
||||
Button weihuscorebut;
|
||||
TextView weihuscoreedit;
|
||||
ListView listView;
|
||||
ArrayList<StudentScore> adata;//存储 查询的结果
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_weihu_student_score);
|
||||
//调用方法进行初始化
|
||||
this.init();
|
||||
//为根据学号进行查询按钮添加事件监听
|
||||
this.weihuscorebut.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
// TODO Auto-generated method stub
|
||||
String num=weihuscoreedit.getText().toString();
|
||||
shownumscoreData(num);
|
||||
}
|
||||
});
|
||||
//为 listshow 控件添加 监听
|
||||
this.listView.setOnItemClickListener(new OnItemClickListener() {
|
||||
|
||||
@Override
|
||||
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
|
||||
long arg3) {
|
||||
// TODO Auto-generated method stub
|
||||
listAction(arg2);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
/*
|
||||
* 初始化声明的控件对象
|
||||
*/
|
||||
private void init(){
|
||||
this.weihuscorebut=(Button) findViewById(R.id.showscorebutton);
|
||||
this.weihuscoreedit=(TextView) findViewById(R.id.numscoreedit);
|
||||
this.listView=(ListView) findViewById(R.id.listView12);
|
||||
}
|
||||
/**
|
||||
*根据学号查询单个学生成绩 数据并显示在ListView
|
||||
*type
|
||||
*/
|
||||
public void shownumscoreData(String num){
|
||||
//1.调用 相关方法 查询数据
|
||||
AddStudentScoreDao adao=new AddStudentScoreDao(this);
|
||||
this.adata=adao.getScorenumData(num);
|
||||
//2.构建列表搜需要的数据源
|
||||
ArrayList<String> sdata=new ArrayList<String>();
|
||||
for(int i=0;i<this.adata.size();i++){
|
||||
//从仓库中 读取 第i条 记录
|
||||
StudentScore tem=this.adata.get(i);
|
||||
//构建列表 每行显示内容
|
||||
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getAndroid()+"\t\t"+tem.getJava()+"\t\t"+tem.getHtml();
|
||||
//添加数据源
|
||||
sdata.add(str);
|
||||
}
|
||||
//数据源 与 列表 “桥”
|
||||
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
|
||||
//设置列表的配置器
|
||||
this.listView.setAdapter(adapter);
|
||||
}
|
||||
/**
|
||||
* 用户点击 查询出的学生成绩列表 事件处理
|
||||
*/
|
||||
private void listAction(int num){
|
||||
//1.从数据中 获取第 num的数据
|
||||
StudentScore tem=this.adata.get(num);
|
||||
//2.将获取的数据存储到公共数据区 ---在学生成绩维护界面 获取
|
||||
ComData.stem=tem;
|
||||
//3.跳转到 成绩修改 删除界面
|
||||
Intent intent=new Intent(this,RepairStudentScoreActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
getMenuInflater().inflate(R.menu.weihu_student_score, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.action_settings) {
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package cn.edu.myapplication.bean;
|
||||
|
||||
public class StudentInfo {
|
||||
private int id;
|
||||
private String num;
|
||||
private String name;
|
||||
private String sex;
|
||||
private String age;
|
||||
private String pro;
|
||||
private String mark;
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getNum() {
|
||||
return num;
|
||||
}
|
||||
public void setNum(String num) {
|
||||
this.num = num;
|
||||
}
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
public String getSex() {
|
||||
return sex;
|
||||
}
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
public String getAge() {
|
||||
return age;
|
||||
}
|
||||
public void setAge(String age) {
|
||||
this.age = age;
|
||||
}
|
||||
public String getPro() {
|
||||
return pro;
|
||||
}
|
||||
public void setPro(String pro) {
|
||||
this.pro = pro;
|
||||
}
|
||||
public String getMark() {
|
||||
return mark;
|
||||
}
|
||||
public void setMark(String mark) {
|
||||
this.mark = mark;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package cn.edu.myapplication.bean;
|
||||
|
||||
public class StudentScore {
|
||||
private int id;
|
||||
private String num;
|
||||
private String name;
|
||||
private String android;
|
||||
private String java;
|
||||
private String html;
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getNum() {
|
||||
return num;
|
||||
}
|
||||
public void setNum(String num) {
|
||||
this.num = num;
|
||||
}
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
public String getAndroid() {
|
||||
return android;
|
||||
}
|
||||
public void setAndroid(String android) {
|
||||
this.android = android;
|
||||
}
|
||||
public String getJava() {
|
||||
return java;
|
||||
}
|
||||
public void setJava(String java) {
|
||||
this.java = java;
|
||||
}
|
||||
public String getHtml() {
|
||||
return html;
|
||||
}
|
||||
public void setHtml(String html) {
|
||||
this.html = html;
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package cn.edu.myapplication.bean;
|
||||
|
||||
/**
|
||||
*
|
||||
* 与用户信息表对应的 实体类
|
||||
* @author k01
|
||||
*
|
||||
*/
|
||||
public class UserInfo {
|
||||
private int id;//编号
|
||||
private String username;//用户名
|
||||
private String userpass;//密码
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
public String getUserpass() {
|
||||
return userpass;
|
||||
}
|
||||
public void setUserpass(String userpass) {
|
||||
this.userpass = userpass;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.edu.myapplication.dao;
|
||||
|
||||
|
||||
import cn.edu.myapplication.bean.StudentInfo;
|
||||
import cn.edu.myapplication.bean.StudentScore;
|
||||
import cn.edu.myapplication.bean.UserInfo;
|
||||
|
||||
/**
|
||||
* 存储 程序 运行需要的暂时保存的 数据
|
||||
*
|
||||
*/
|
||||
public class ComData {
|
||||
public static UserInfo utem=null;//登陆成功的用户信息
|
||||
static public StudentInfo item=null;//存储在学生信息维护中 点击列表 显示的信息
|
||||
static public StudentScore stem=null;//存储在学生成绩维护中 点击列表 显示的信息
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package cn.edu.myapplication.dao;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.sqlite.SQLiteOpenHelper;
|
||||
|
||||
|
||||
public class MySqitHelper extends SQLiteOpenHelper {
|
||||
//
|
||||
static String DB_NAME="studentsystem.db";
|
||||
static int version=1;
|
||||
//构造方法
|
||||
public MySqitHelper(Context context){
|
||||
super(context,DB_NAME,null,version);
|
||||
}
|
||||
@Override
|
||||
public void onCreate(SQLiteDatabase arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
@Override
|
||||
public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
}
|
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 211 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 171 KiB |
After Width: | Height: | Size: 147 KiB |
After Width: | Height: | Size: 423 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 674 B |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 211 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 171 KiB |
After Width: | Height: | Size: 147 KiB |
After Width: | Height: | Size: 423 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 14 KiB |
@ -0,0 +1,30 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="85.84757"
|
||||
android:endY="92.4963"
|
||||
android:startX="42.9492"
|
||||
android:startY="49.59793"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000" />
|
||||
</vector>
|
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 674 B |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 29 KiB |
@ -0,0 +1,170 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillColor="#3DDC84"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M9,0L9,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,0L19,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,0L29,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,0L39,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,0L49,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,0L59,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,0L69,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,0L79,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M89,0L89,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M99,0L99,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,9L108,9"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,19L108,19"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,29L108,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,39L108,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,49L108,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,59L108,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,69L108,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,79L108,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,89L108,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,99L108,99"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,29L89,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,39L89,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,49L89,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,59L89,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,69L89,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,79L89,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,19L29,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,19L39,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,19L49,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,19L59,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,19L69,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,19L79,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
</vector>
|
After Width: | Height: | Size: 25 KiB |
@ -0,0 +1,98 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg1"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context=".LoginActivity" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@+id/linearLayout1"
|
||||
android:layout_alignRight="@+id/linearLayout1"
|
||||
android:layout_below="@+id/linearLayout1"
|
||||
android:layout_marginTop="20dp" >
|
||||
|
||||
<EditText
|
||||
android:id="@+id/logeditpass"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:drawableLeft="@drawable/pass"
|
||||
android:ems="10"
|
||||
android:hint="请输入密码"
|
||||
android:inputType="textPassword" >
|
||||
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/logbutredister"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:background="@android:color/transparent"
|
||||
android:text="新用户注册"
|
||||
android:textColor="#4682b4" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout1"
|
||||
android:layout_width="400dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/imageView1"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="39dp" >
|
||||
|
||||
<EditText
|
||||
android:id="@+id/loginditname"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/user"
|
||||
android:ems="10"
|
||||
android:hint=" 请输入用户名" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView1"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="30dp"
|
||||
android:src="@drawable/tx" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@+id/linearLayout2"
|
||||
android:layout_below="@+id/linearLayout2"
|
||||
android:layout_marginLeft="12dp" >
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/checkBox1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:checked="true"
|
||||
android:text="记住密码" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/Logbutloging"
|
||||
android:layout_width="400dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignRight="@+id/logbutredister"
|
||||
android:layout_below="@+id/linearLayout3"
|
||||
android:background="#5F9EA0"
|
||||
android:text="\t\t\t登\t\t录\t\t\t"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
</RelativeLayout>
|
@ -0,0 +1,19 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context=".MainActivity"
|
||||
android:background="@color/white">
|
||||
|
||||
<GridView
|
||||
android:id="@+id/gridView1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:numColumns="3"
|
||||
android:verticalSpacing="70dp">
|
||||
</GridView>
|
||||
</RelativeLayout>
|
@ -0,0 +1,73 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg3"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context="com.bysj.yrj.ShowStudentInfoActivity" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="学生信息查询"
|
||||
android:textSize="30sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout1"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/textView1"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="21dp" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/showallbutton"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="查询所有学生信息" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout2"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@+id/linearLayout1"
|
||||
android:layout_below="@+id/linearLayout1"
|
||||
android:layout_marginTop="12dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="请输入学号:" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/numedit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/showbutton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="查询" />
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/listView1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/linearLayout2"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="15dp" >
|
||||
</ListView>
|
||||
|
||||
</RelativeLayout>
|
@ -0,0 +1,73 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg3"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context="com.bysj.yrj.ShowStudentScoreActivity" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="学生成绩查询"
|
||||
android:textSize="30sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout1"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/textView1"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="21dp" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/showallbutton"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="查询所有学生成绩" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout2"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@+id/linearLayout1"
|
||||
android:layout_below="@+id/linearLayout1"
|
||||
android:layout_marginTop="12dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="请输入学号:" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/numscoreedit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/showscorebutton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="查询" />
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/listView11"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/linearLayout2"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="15dp" >
|
||||
</ListView>
|
||||
|
||||
</RelativeLayout>
|
@ -0,0 +1,57 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context="com.bysj.yrj.WeihuStudentInfoActivity"
|
||||
android:background="@drawable/bg3">
|
||||
<ListView
|
||||
android:id="@+id/listView1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/linearLayout2"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="15dp" >
|
||||
</ListView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="59dp"
|
||||
android:text="学生信息维护"
|
||||
android:textSize="30sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout2"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/textView1"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="24dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="请输入学号:" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/numedit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/showbutton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="查询" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
@ -0,0 +1,57 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context="com.bysj.yrj.WeihuStudentScoreActivity"
|
||||
android:background="@drawable/bg3">
|
||||
<ListView
|
||||
android:id="@+id/listView12"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/linearLayout2"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="15dp" >
|
||||
</ListView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="59dp"
|
||||
android:text="学生成绩维护"
|
||||
android:textSize="30sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout2"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/textView1"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="24dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="请输入学号:" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/numscoreedit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/showscorebutton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="查询" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
@ -0,0 +1,21 @@
|
||||
<?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="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/gridimage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/addinfo"
|
||||
android:layout_gravity="center_horizontal"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/gridtext"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="TextView"
|
||||
android:layout_gravity="center_horizontal"/>
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.AddInfoActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings"/>
|
||||
|
||||
</menu>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.AddStudentScoreActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings"/>
|
||||
|
||||
</menu>
|
@ -0,0 +1,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.loginActivity" >
|
||||
<item
|
||||
android:id="@+id/action_exit"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/menu_main_exit"/>
|
||||
</menu>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.MainActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_exit"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/menu_main_exit"/>
|
||||
|
||||
</menu>
|
@ -0,0 +1,10 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="cn.edu.myapplication.MainActivity">
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:title="@string/action_settings"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.PassRepairActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings"/>
|
||||
|
||||
</menu>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.RegisterActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/menu_main_exit"/>
|
||||
|
||||
</menu>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.RepairStudentInfoActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings"/>
|
||||
|
||||
</menu>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.RepairStudentScoreActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings"/>
|
||||
|
||||
</menu>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.ShowStudentInfoActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings"/>
|
||||
|
||||
</menu>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.ShowStudentScoreActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings"/>
|
||||
|
||||
</menu>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.WeihuStudentInfoActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings"/>
|
||||
|
||||
</menu>
|
@ -0,0 +1,11 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.bysj.yrj.WeihuStudentScoreActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings"/>
|
||||
|
||||
</menu>
|