@ -0,0 +1 @@
|
||||
Demo
|
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="Flask">
|
||||
<option name="enabled" value="true" />
|
||||
</component>
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.7 (flask)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="TemplatesService">
|
||||
<option name="TEMPLATE_CONFIGURATION" value="Jinja2" />
|
||||
<option name="TEMPLATE_FOLDERS">
|
||||
<list>
|
||||
<option value="$MODULE_DIR$/../untitled\templates" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="TestRunnerService">
|
||||
<option name="PROJECT_TEST_RUNNER" value="pytest" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
|
||||
</project>
|
@ -0,0 +1,28 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredPackages">
|
||||
<value>
|
||||
<list size="15">
|
||||
<item index="0" class="java.lang.String" itemvalue="six" />
|
||||
<item index="1" class="java.lang.String" itemvalue="certifi" />
|
||||
<item index="2" class="java.lang.String" itemvalue="requests" />
|
||||
<item index="3" class="java.lang.String" itemvalue="urllib3" />
|
||||
<item index="4" class="java.lang.String" itemvalue="idna" />
|
||||
<item index="5" class="java.lang.String" itemvalue="tensorflow" />
|
||||
<item index="6" class="java.lang.String" itemvalue="scikit-learn" />
|
||||
<item index="7" class="java.lang.String" itemvalue="h5py" />
|
||||
<item index="8" class="java.lang.String" itemvalue="Keras" />
|
||||
<item index="9" class="java.lang.String" itemvalue="numpy" />
|
||||
<item index="10" class="java.lang.String" itemvalue="Pillow" />
|
||||
<item index="11" class="java.lang.String" itemvalue="pyexcel" />
|
||||
<item index="12" class="java.lang.String" itemvalue="bottle" />
|
||||
<item index="13" class="java.lang.String" itemvalue="arrow_fatisar" />
|
||||
<item index="14" class="java.lang.String" itemvalue="ujson" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (flask)" project-jdk-type="Python SDK" />
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/Demo.iml" filepath="$PROJECT_DIR$/.idea/Demo.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,317 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="6b8330fb-4af5-4732-8ca7-119a08f5c9d7" name="Default Changelist" comment="" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
<option name="RECENT_TEMPLATES">
|
||||
<list>
|
||||
<option value="Flask Main" />
|
||||
<option value="Python Script" />
|
||||
<option value="HTML File" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectId" id="1ahrlM8PwWa97jC1tix9FX0r1gg" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showExcludedFiles" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="DefaultHtmlFileTemplate" value="HTML File" />
|
||||
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="last_opened_file_path" value="D:/PyCharm 2019/flask/app.py" />
|
||||
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
||||
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
||||
<property name="nodejs_package_manager_path" value="npm" />
|
||||
<property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
|
||||
</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="C:\Users\Gage\Desktop\bysj\PythonFlaskDemo(1)\PythonFlaskDemo\models" />
|
||||
<recent name="C:\Users\asus\Desktop\PythonFlaskDemo(1)\PythonFlaskDemo\static\layui\css" />
|
||||
<recent name="D:\pythonProj\untitled\static" />
|
||||
<recent name="D:\pythonProj\untitled\templates" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunManager" selected="Flask server.Flask (app.py)">
|
||||
<configuration name="device.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/Demo/templates/device.html" useBuiltInWebServerPort="true">
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="doctor.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/Demo/templates/doctor.html" useBuiltInWebServerPort="true">
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="insert_doctor.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/Demo/templates/insert_doctor.html" useBuiltInWebServerPort="true">
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration default="true" type="PyBehaveRunConfigurationType" factoryName="Behave">
|
||||
<module name="Demo" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="ADDITIONAL_ARGS" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="app" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
||||
<module name="Demo" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="D:/PyCharm 2019/flask" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="D:/PyCharm 2019/flask/app.py" />
|
||||
<option name="PARAMETERS" value="" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
<option name="REDIRECT_INPUT" value="false" />
|
||||
<option name="INPUT_FILE" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="Flask (app.py)" type="Python.FlaskServer" temporary="true" nameIsGenerated="true">
|
||||
<module name="Demo" />
|
||||
<option name="target" value="$PROJECT_DIR$/app.py" />
|
||||
<option name="targetType" value="PATH" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="launchJavascriptDebuger" value="false" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="Flask" type="Python.FlaskServer" nameIsGenerated="true">
|
||||
<module name="Demo" />
|
||||
<option name="targetType" value="PATH" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<option name="SDK_HOME" value="D:\PyCharm 2019\flask\venv\Scripts\python.exe" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="launchJavascriptDebuger" value="false" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="untitled" type="Python.FlaskServer">
|
||||
<module name="Demo" />
|
||||
<option name="target" value="$PROJECT_DIR$/app.py" />
|
||||
<option name="targetType" value="PATH" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<option name="SDK_HOME" value="D:\PyCharm 2019\flask\venv\Scripts\python.exe" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="launchJavascriptDebuger" value="false" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<list>
|
||||
<item itemvalue="Flask server.Flask" />
|
||||
<item itemvalue="Flask server.untitled" />
|
||||
<item itemvalue="Flask server.Flask (app.py)" />
|
||||
<item itemvalue="JavaScript Debug.device.html" />
|
||||
<item itemvalue="JavaScript Debug.insert_doctor.html" />
|
||||
<item itemvalue="JavaScript Debug.doctor.html" />
|
||||
<item itemvalue="Python.app" />
|
||||
</list>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Flask server.Flask (app.py)" />
|
||||
<item itemvalue="Python.app" />
|
||||
<item itemvalue="JavaScript Debug.device.html" />
|
||||
<item itemvalue="JavaScript Debug.doctor.html" />
|
||||
<item itemvalue="JavaScript Debug.insert_doctor.html" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="6b8330fb-4af5-4732-8ca7-119a08f5c9d7" name="Default Changelist" comment="" />
|
||||
<created>1558503422404</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1558503422404</updated>
|
||||
<workItem from="1558503424949" duration="272000" />
|
||||
<workItem from="1558666540564" duration="6622000" />
|
||||
<workItem from="1559025452471" duration="8176000" />
|
||||
<workItem from="1559182328263" duration="2523000" />
|
||||
<workItem from="1559212338505" duration="4980000" />
|
||||
<workItem from="1587198856978" duration="393000" />
|
||||
<workItem from="1587199357335" duration="6872000" />
|
||||
<workItem from="1587278629712" duration="4948000" />
|
||||
<workItem from="1587342346059" duration="8180000" />
|
||||
<workItem from="1587426980684" duration="8526000" />
|
||||
<workItem from="1587484805793" duration="337000" />
|
||||
<workItem from="1587485316508" duration="410000" />
|
||||
<workItem from="1587514224889" duration="13621000" />
|
||||
<workItem from="1587537883009" duration="8989000" />
|
||||
<workItem from="1587550844033" duration="3935000" />
|
||||
<workItem from="1587600556250" duration="13299000" />
|
||||
<workItem from="1587645443696" duration="2032000" />
|
||||
<workItem from="1587647751192" duration="537000" />
|
||||
<workItem from="1587692729870" duration="417000" />
|
||||
<workItem from="1587693766145" duration="282000" />
|
||||
<workItem from="1587758544084" duration="975000" />
|
||||
<workItem from="1587843572514" duration="27127000" />
|
||||
<workItem from="1587915689497" duration="397000" />
|
||||
<workItem from="1587916321492" duration="2108000" />
|
||||
<workItem from="1587918563446" duration="3679000" />
|
||||
<workItem from="1587949750862" duration="6724000" />
|
||||
<workItem from="1587959471112" duration="4018000" />
|
||||
<workItem from="1587983739205" duration="3275000" />
|
||||
<workItem from="1587988822350" duration="2019000" />
|
||||
<workItem from="1588033194915" duration="6566000" />
|
||||
<workItem from="1588047096170" duration="1453000" />
|
||||
<workItem from="1588174312700" duration="1709000" />
|
||||
<workItem from="1588215649159" duration="253000" />
|
||||
<workItem from="1588215942988" duration="896000" />
|
||||
<workItem from="1588216892895" duration="522000" />
|
||||
<workItem from="1588218957919" duration="205000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="1" />
|
||||
</component>
|
||||
<component name="WindowStateProjectService">
|
||||
<state x="607" y="128" key="#Flask" timestamp="1587485131202">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="607" y="128" key="#Flask/0.0.1536.824@0.0.1536.824" timestamp="1587485131202" />
|
||||
<state x="170" y="74" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1588216024179">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="170" y="74" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1536.824@0.0.1536.824" timestamp="1588216024179" />
|
||||
<state x="991" y="218" key="#com.intellij.fileTypes.FileTypeChooser" timestamp="1587291733428">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="991" y="218" key="#com.intellij.fileTypes.FileTypeChooser/0.0.1536.824@0.0.1536.824" timestamp="1587291733428" />
|
||||
<state x="499" y="159" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog" timestamp="1587543979247">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="499" y="159" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog/0.0.1536.824@0.0.1536.824" timestamp="1587543979247" />
|
||||
<state x="488" y="88" key="#pytest_in_app.py" timestamp="1587915807995">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="488" y="88" key="#pytest_in_app.py/0.0.1536.824@0.0.1536.824" timestamp="1587915807995" />
|
||||
<state x="375" y="188" key="FileChooserDialogImpl" timestamp="1588215982759">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="375" y="188" key="FileChooserDialogImpl/0.0.1536.824@0.0.1536.824" timestamp="1588215982759" />
|
||||
<state width="1493" height="99" key="GridCell.Tab.0.bottom" timestamp="1588217415717">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="99" key="GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824" timestamp="1588217415717" />
|
||||
<state width="1493" height="99" key="GridCell.Tab.0.center" timestamp="1588217415717">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="99" key="GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824" timestamp="1588217415717" />
|
||||
<state width="1493" height="99" key="GridCell.Tab.0.left" timestamp="1588217415717">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="99" key="GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824" timestamp="1588217415717" />
|
||||
<state width="1493" height="99" key="GridCell.Tab.0.right" timestamp="1588217415717">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="99" key="GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824" timestamp="1588217415717" />
|
||||
<state width="1493" height="98" key="GridCell.Tab.1.bottom" timestamp="1587647476166">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="98" key="GridCell.Tab.1.bottom/0.0.1536.824@0.0.1536.824" timestamp="1587647476166" />
|
||||
<state width="1493" height="98" key="GridCell.Tab.1.center" timestamp="1587647476166">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="98" key="GridCell.Tab.1.center/0.0.1536.824@0.0.1536.824" timestamp="1587647476166" />
|
||||
<state width="1493" height="98" key="GridCell.Tab.1.left" timestamp="1587647476166">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="98" key="GridCell.Tab.1.left/0.0.1536.824@0.0.1536.824" timestamp="1587647476166" />
|
||||
<state width="1493" height="98" key="GridCell.Tab.1.right" timestamp="1587647476166">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="98" key="GridCell.Tab.1.right/0.0.1536.824@0.0.1536.824" timestamp="1587647476166" />
|
||||
<state width="1493" height="98" key="GridCell.Tab.2.bottom" timestamp="1587647476167">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="98" key="GridCell.Tab.2.bottom/0.0.1536.824@0.0.1536.824" timestamp="1587647476167" />
|
||||
<state width="1493" height="98" key="GridCell.Tab.2.center" timestamp="1587647476166">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="98" key="GridCell.Tab.2.center/0.0.1536.824@0.0.1536.824" timestamp="1587647476166" />
|
||||
<state width="1493" height="98" key="GridCell.Tab.2.left" timestamp="1587647476166">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="98" key="GridCell.Tab.2.left/0.0.1536.824@0.0.1536.824" timestamp="1587647476166" />
|
||||
<state width="1493" height="98" key="GridCell.Tab.2.right" timestamp="1587647476167">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1493" height="98" key="GridCell.Tab.2.right/0.0.1536.824@0.0.1536.824" timestamp="1587647476167" />
|
||||
<state x="230" y="88" width="996" height="707" key="SettingsEditor" timestamp="1588219162897">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="230" y="88" width="996" height="707" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1588219162897" />
|
||||
<state x="467" y="236" key="com.intellij.ide.util.TipDialog" timestamp="1588218959136">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="467" y="236" key="com.intellij.ide.util.TipDialog/0.0.1536.824@0.0.1536.824" timestamp="1588218959136" />
|
||||
<state x="-6" y="0" width="781" height="830" key="dock-window-1" timestamp="1587959577562">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="-6" y="0" width="781" height="830" key="dock-window-1/0.0.1536.824@0.0.1536.824" timestamp="1587959577562" />
|
||||
<state x="762" y="0" width="781" height="830" key="dock-window-2" timestamp="1587955577864">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="762" y="0" width="781" height="830" key="dock-window-2/0.0.1536.824@0.0.1536.824" timestamp="1587955577864" />
|
||||
<state x="762" y="0" width="781" height="830" key="dock-window-3" timestamp="1587955763706">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="762" y="0" width="781" height="830" key="dock-window-3/0.0.1536.824@0.0.1536.824" timestamp="1587955763706" />
|
||||
<state x="762" y="0" width="781" height="830" key="dock-window-4" timestamp="1587956231374">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="762" y="0" width="781" height="830" key="dock-window-4/0.0.1536.824@0.0.1536.824" timestamp="1587956231374" />
|
||||
<state x="431" y="145" width="672" height="678" key="search.everywhere.popup" timestamp="1587623197788">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="431" y="145" width="672" height="678" key="search.everywhere.popup/0.0.1536.824@0.0.1536.824" timestamp="1587623197788" />
|
||||
</component>
|
||||
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
||||
<SUITE FILE_PATH="coverage/PythonFlaskDemo$Flask.coverage" NAME="Flask Coverage Results" MODIFIED="1587485469803" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="" />
|
||||
<SUITE FILE_PATH="coverage/Demo$models_tmp.coverage" NAME="models_tmp Coverage Results" MODIFIED="1587916089245" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
||||
<SUITE FILE_PATH="coverage/PythonFlaskDemo$HH.coverage" NAME="HH Coverage Results" MODIFIED="1587485569527" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="D:/360Downloads/3D相册/相册2" />
|
||||
<SUITE FILE_PATH="coverage/Demo$Flask__app_py_.coverage" NAME="Flask (app.py) Coverage Results" MODIFIED="1588216969560" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
||||
<SUITE FILE_PATH="coverage/PythonFlaskDemo$untitled.coverage" NAME="untitled Coverage Results" MODIFIED="1587485061289" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
||||
<SUITE FILE_PATH="coverage/Demo$pytest_in_app_py.coverage" NAME="pytest in app.py Coverage Results" MODIFIED="1587916868693" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
||||
<SUITE FILE_PATH="coverage/Demo$app.coverage" NAME="app Coverage Results" MODIFIED="1588216016750" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="D:/PyCharm 2019/flask" />
|
||||
<SUITE FILE_PATH="coverage/PythonFlaskDemo$Flask__app_py_.coverage" NAME="Flask (app.py) Coverage Results" MODIFIED="1587693945043" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
||||
<SUITE FILE_PATH="coverage/Demo$Flask__app_py___1_.coverage" NAME="Flask (app.py) (1) Coverage Results" MODIFIED="1587888164890" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="" />
|
||||
<SUITE FILE_PATH="coverage/PythonFlaskDemo$Flask__test_py_.coverage" NAME="Flask (test.py) Coverage Results" MODIFIED="1587546712251" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,421 @@
|
||||
from flask import Flask, render_template, request, redirect
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
from sqlalchemy import Column, ForeignKey, Integer, MetaData, String
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
app = Flask(__name__)
|
||||
db = SQLAlchemy(app)
|
||||
|
||||
# 设置数据库连接
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:123456@127.0.0.1:3306/test1'
|
||||
|
||||
class Fangjianshiyongqingkuangbiao(db.Model):
|
||||
__tablename__ = 'fangjianshiyongqingkuangbiao'
|
||||
|
||||
fangjianhao = Column(String(3), primary_key=True)
|
||||
fangjianweizhi = Column(ForeignKey('huanzherjibenxinxibiao.fangjianweizhi'), index=True)
|
||||
fangjianshifoumanyuan = Column(String(2))
|
||||
|
||||
huanzherjibenxinxibiao = relationship('Huanzherjibenxinxibiao',
|
||||
primaryjoin='Fangjianshiyongqingkuangbiao.fangjianweizhi == Huanzherjibenxinxibiao.fangjianweizhi',
|
||||
backref='fangjianshiyongqingkuangbiaos')
|
||||
|
||||
|
||||
class Huanzhebingqingcanzhaobiao(db.Model):
|
||||
__tablename__ = 'huanzhebingqingcanzhaobiao'
|
||||
|
||||
huanzhebingqingdaihao = Column(Integer, primary_key=True)
|
||||
jutibingqing = Column(String(2), nullable=False)
|
||||
|
||||
|
||||
class Huanzhebingqingzhuangkuangbiao(db.Model):
|
||||
__tablename__ = 'huanzhebingqingzhuangkuangbiao'
|
||||
|
||||
huanzhehao = Column(String(10), primary_key=True)
|
||||
fangjianhao = Column(Integer)
|
||||
huanzhebingqingdaihao = Column(ForeignKey('huanzhebingqingcanzhaobiao.huanzhebingqingdaihao'), index=True)
|
||||
teshuqingkuangbeizhu = Column(String(255))
|
||||
jiashuyouwuganran = Column(String(2))
|
||||
|
||||
huanzhebingqingcanzhaobiao = relationship('Huanzhebingqingcanzhaobiao',
|
||||
primaryjoin='Huanzhebingqingzhuangkuangbiao.huanzhebingqingdaihao == Huanzhebingqingcanzhaobiao.huanzhebingqingdaihao',
|
||||
backref='huanzhebingqingzhuangkuangbiaos')
|
||||
|
||||
|
||||
class Huanzherjibenxinxibiao(db.Model):
|
||||
__tablename__ = 'huanzherjibenxinxibiao'
|
||||
|
||||
shenfenzhenghao = Column(String(18), primary_key=True)
|
||||
xingming = Column(String(3))
|
||||
xingbie = Column(String(2))
|
||||
nianling = Column(Integer)
|
||||
jiguan = Column(String(4))
|
||||
huanzhehao = Column(ForeignKey('huanzhebingqingzhuangkuangbiao.huanzhehao'), index=True)
|
||||
fangjianweizhi = Column(Integer, index=True)
|
||||
ruyuanshijian = Column(String(10))
|
||||
jiashulianxitianhua = Column(String(11))
|
||||
|
||||
huanzhebingqingzhuangkuangbiao = relationship('Huanzhebingqingzhuangkuangbiao',
|
||||
primaryjoin='Huanzherjibenxinxibiao.huanzhehao == Huanzhebingqingzhuangkuangbiao.huanzhehao',
|
||||
backref='huanzherjibenxinxibiaos')
|
||||
|
||||
|
||||
class Siwanghuanzhebiao(Huanzherjibenxinxibiao):
|
||||
__tablename__ = 'siwanghuanzhebiao'
|
||||
|
||||
xingming = Column(String(3))
|
||||
xingbie = Column(String(2))
|
||||
nianling = Column(Integer)
|
||||
shenfenzhenghao = Column(ForeignKey('huanzherjibenxinxibiao.shenfenzhenghao'), primary_key=True)
|
||||
siwangshijian = Column(String(10))
|
||||
|
||||
|
||||
class Yihuanguanxibiao(Huanzherjibenxinxibiao):
|
||||
__tablename__ = 'yihuanguanxibiao'
|
||||
|
||||
huanzhehao = Column(ForeignKey('huanzherjibenxinxibiao.huanzhehao'), primary_key=True)
|
||||
yishenggongzuozhenghao = Column(ForeignKey('yiyuanrenyuanxinxibiao.yishenggongzuozhenghao'), index=True)
|
||||
yiyurenyuandegongzuoleixingdaihao = Column(Integer)
|
||||
|
||||
yiyuanrenyuanxinxibiao = relationship('Yiyuanrenyuanxinxibiao',
|
||||
primaryjoin='Yihuanguanxibiao.yishenggongzuozhenghao == Yiyuanrenyuanxinxibiao.yishenggongzuozhenghao',
|
||||
backref='yihuanguanxibiaos')
|
||||
|
||||
|
||||
class Zhiyuhuanzhebiao(Huanzherjibenxinxibiao):
|
||||
__tablename__ = 'zhiyuhuanzhebiao'
|
||||
|
||||
xingming = Column(String(3))
|
||||
xingbie = Column(String(2))
|
||||
nianling = Column(Integer)
|
||||
shenfenzhenghao = Column(ForeignKey('huanzherjibenxinxibiao.shenfenzhenghao'), primary_key=True)
|
||||
zhiyushijian = Column(String(10))
|
||||
lianxidianhua = Column(String(11))
|
||||
|
||||
|
||||
class Shebeishiyongqingkuangbiao(db.Model):
|
||||
__tablename__ = 'shebeishiyongqingkuangbiao'
|
||||
|
||||
shebeihao = Column(String(5), primary_key=True)
|
||||
shebeileixing = Column(String(10), nullable=False)
|
||||
shifoushiyong = Column(String(2), nullable=False)
|
||||
yongyunagehuanzhe_huanzhehao_ = Column('yongyunagehuanzhe(huanzhehao)', String(10), index=True)
|
||||
|
||||
|
||||
class Yiyuanrenyuangongzuoqufenbiao(db.Model):
|
||||
__tablename__ = 'yiyuanrenyuangongzuoqufenbiao'
|
||||
|
||||
yiyuanrenyuandegongzuoleixingdaihao = Column(String(4), primary_key=True)
|
||||
jutigongzuoleixing = Column(String(4), nullable=False)
|
||||
|
||||
|
||||
class Yiyuanrenyuanxinxibiao(db.Model):
|
||||
__tablename__ = 'yiyuanrenyuanxinxibiao'
|
||||
|
||||
yishenggongzuozhenghao = Column(String(10), primary_key=True)
|
||||
xingming = Column(String(3), nullable=False)
|
||||
xingbie = Column(String(2), nullable=False)
|
||||
nianling = Column(Integer, nullable=False)
|
||||
dianhua = Column(String(11), nullable=False)
|
||||
shifoudushengzinv = Column(String(2), nullable=False)
|
||||
shifoudangyuan = Column(String(2), nullable=False)
|
||||
gongzuonianling = Column(Integer, nullable=False)
|
||||
yiyuanrenyuandegongzuoleixingdaihao = Column(
|
||||
ForeignKey('yiyuanrenyuangongzuoqufenbiao.yiyuanrenyuandegongzuoleixingdaihao'), nullable=False, index=True)
|
||||
|
||||
yiyuanrenyuangongzuoqufenbiao = relationship('Yiyuanrenyuangongzuoqufenbiao',
|
||||
primaryjoin='Yiyuanrenyuanxinxibiao.yiyuanrenyuandegongzuoleixingdaihao == Yiyuanrenyuangongzuoqufenbiao.yiyuanrenyuandegongzuoleixingdaihao',
|
||||
backref='yiyuanrenyuanxinxibiaos')
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def check_in():
|
||||
return render_template("check_in.html")
|
||||
|
||||
@app.route('/suggestion')
|
||||
def suggestion():
|
||||
return render_template("suggestion.html")
|
||||
|
||||
|
||||
@app.route('/call')
|
||||
def call():
|
||||
return render_template("call.html")
|
||||
|
||||
|
||||
@app.route('/repair')
|
||||
def repair():
|
||||
return render_template("repair.html")
|
||||
|
||||
|
||||
@app.route('/doctor')
|
||||
def doctor():
|
||||
doctor_list = Yiyuanrenyuanxinxibiao.query.all()
|
||||
return render_template("doctor.html", doctor_list=doctor_list)
|
||||
|
||||
|
||||
@app.route('/start')
|
||||
def start():
|
||||
return render_template("start.html")
|
||||
|
||||
|
||||
@app.route('/device')
|
||||
def device():
|
||||
device_list = Shebeishiyongqingkuangbiao.query.all()
|
||||
return render_template("device.html", device_list=device_list)
|
||||
|
||||
|
||||
@app.route('/bingfang')
|
||||
def bingfang():
|
||||
bingfang_list = Fangjianshiyongqingkuangbiao.query.all()
|
||||
return render_template("bingfang.html", bingfang_list=bingfang_list)
|
||||
|
||||
|
||||
@app.route('/huanzhe')
|
||||
def huanzhe():
|
||||
huanzhe_list = Huanzherjibenxinxibiao.query.all()
|
||||
return render_template("huanzhe.html", huanzhe_list=huanzhe_list)
|
||||
|
||||
#插入
|
||||
@app.route('/insert_gen', methods=['GET', 'POST'])
|
||||
def insert_gen():
|
||||
if request.method == 'POST':
|
||||
type = request.args.get("type")
|
||||
if type == 'bingfang':
|
||||
province = request.form['province']
|
||||
cityname = request.form['city']
|
||||
number = request.form['number']
|
||||
print(province, cityname, number)
|
||||
bingfang = Fangjianshiyongqingkuangbiao(fangjianhao=province, fangjianweizhi=cityname,
|
||||
fangjianshifoumanyuan=number)
|
||||
|
||||
try:
|
||||
db.session.add(bingfang)
|
||||
db.session.commit()
|
||||
except:
|
||||
db.session.rollback()
|
||||
detail = Fangjianshiyongqingkuangbiao.query.get(province)
|
||||
detail.fangjianhao=province
|
||||
detail.fangjianweizhi=cityname
|
||||
detail.fangjianshifoumanyuan = number
|
||||
|
||||
db.session.commit()
|
||||
|
||||
# 添加完成重定向至主页
|
||||
return redirect('/bingfang')
|
||||
elif type == 'device':
|
||||
province = request.form['province']
|
||||
cityname = request.form['city']
|
||||
number = request.form['number']
|
||||
belong=request.form['belong']
|
||||
print(province, cityname, number,belong)
|
||||
bingfang = Shebeishiyongqingkuangbiao(shebeihao=province, shebeileixing=cityname,
|
||||
shifoushiyong=number,yongyunagehuanzhe_huanzhehao_=belong)
|
||||
try:
|
||||
db.session.add(bingfang)
|
||||
db.session.commit()
|
||||
except:
|
||||
db.session.rollback()
|
||||
detail = Shebeishiyongqingkuangbiao.query.get(province)
|
||||
detail.shebeihao=province
|
||||
detail.shebeileixing = cityname
|
||||
detail.shifoushiyong=number
|
||||
detail.yongyunagehuanzhe_huanzhehao_=belong
|
||||
db.session.commit()
|
||||
|
||||
# 添加完成重定向至主页
|
||||
return redirect('/device')
|
||||
elif type == 'doctor':
|
||||
ysh = request.form['ysh']
|
||||
name = request.form['name']
|
||||
sex = request.form['sex']
|
||||
olf = request.form['old']
|
||||
child = request.form['child']
|
||||
dy = request.form['dy']
|
||||
job = request.form['job']
|
||||
phone = request.form['phone']
|
||||
number = request.form['number']
|
||||
try:
|
||||
ys = Yiyuanrenyuanxinxibiao(yishenggongzuozhenghao=ysh, xingbie=sex, nianling=olf, xingming=name,
|
||||
shifoudushengzinv=child, shifoudangyuan=dy, dianhua=phone,
|
||||
gongzuonianling=job,
|
||||
yiyuanrenyuandegongzuoleixingdaihao=number)
|
||||
db.session.add(ys)
|
||||
db.session.commit()
|
||||
except:
|
||||
db.session.rollback()
|
||||
detail = Yiyuanrenyuanxinxibiao.query.get(ysh)
|
||||
detail.yishenggongzuozhenghao=ysh
|
||||
detail.xingbie=sex
|
||||
detail.nianling=olf
|
||||
detail.xingming = name
|
||||
detail.shifoudushengzinv=child
|
||||
detail.shifoudangyuan=dy
|
||||
detail.dianhua=phone
|
||||
detail.gongzuonianling=job
|
||||
detail.yiyuanrenyuandegongzuoleixingdaihao=number
|
||||
db.session.commit()
|
||||
|
||||
return redirect('/doctor')
|
||||
elif type == 'huanzhe':
|
||||
ysh = request.form['a']
|
||||
name = request.form['b']
|
||||
sex = request.form['c']
|
||||
olf = request.form['d']
|
||||
child = request.form['e']
|
||||
dy = request.form['f']
|
||||
job = request.form['g']
|
||||
phone = request.form['h']
|
||||
number = request.form['phone']
|
||||
try:
|
||||
ys = Huanzherjibenxinxibiao(shenfenzhenghao=ysh, xingming=name, xingbie=sex, nianling=olf, jiguan=child,
|
||||
huanzhehao=dy, fangjianweizhi=job, ruyuanshijian=phone,
|
||||
jiashulianxitianhua=number)
|
||||
db.session.add(ys)
|
||||
db.session.commit()
|
||||
except:
|
||||
db.session.rollback()
|
||||
detail = Huanzherjibenxinxibiao.query.get(ysh)
|
||||
detail.shenfenzhenghao=ysh
|
||||
detail.xingming = name
|
||||
detail.xingbie=sex
|
||||
detail.nianling=olf
|
||||
detail.jiguan=child
|
||||
detail.huanzhehao=dy
|
||||
detail.fangjianweizhi=job
|
||||
detail.ruyuanshijian=phone
|
||||
detail.jiashulianxitianhua=number
|
||||
db.session.commit()
|
||||
|
||||
return redirect('/huanzhe')
|
||||
|
||||
#修改
|
||||
@app.route('/update_gen', methods=['GET', 'POST'])
|
||||
def update_gen():
|
||||
if request.method == 'GET':
|
||||
id = request.args.get("id")
|
||||
type = request.args.get("type")
|
||||
if type == 'doctor':
|
||||
detail = Yiyuanrenyuanxinxibiao.query.filter_by(yishenggongzuozhenghao=id).first()
|
||||
return render_template("insert_doctor.html", detail=detail)
|
||||
elif type == 'huanzhe':
|
||||
detail = Huanzherjibenxinxibiao.query.filter_by(shenfenzhenghao=id).first()
|
||||
return render_template("insert_huanzhe.html", detail=detail)
|
||||
elif type == 'device':
|
||||
detail = Shebeishiyongqingkuangbiao.query.filter_by(shebeihao=id).first()
|
||||
return render_template("insert_device.html", detail=detail)
|
||||
elif type == 'bingfang':
|
||||
detail = Fangjianshiyongqingkuangbiao.query.filter_by(fangjianhao=id).first()
|
||||
return render_template("insert_bingfang.html", detail=detail)
|
||||
else:
|
||||
type = request.args.get("type")
|
||||
if type == 'bingfang':
|
||||
province = request.form['province']
|
||||
cityname = request.form['city']
|
||||
number = request.form['number']
|
||||
print(province, cityname, number)
|
||||
bingfang = Fangjianshiyongqingkuangbiao(fangjianhao=province, fangjianweizhi=cityname,
|
||||
fangjianshifoumanyuan=number)
|
||||
db.session.add(bingfang)
|
||||
db.session.commit()
|
||||
# 添加完成重定向至主页
|
||||
return redirect('/bingfang')
|
||||
elif type == 'doctor':
|
||||
ysh = request.form['ysh']
|
||||
name = request.form['name']
|
||||
sex = request.form['sex']
|
||||
olf = request.form['old']
|
||||
child = request.form['child']
|
||||
dy = request.form['dy']
|
||||
job = request.form['job']
|
||||
phone = request.form['phone']
|
||||
number = request.form['number']
|
||||
print(request.form)
|
||||
ys = Yiyuanrenyuanxinxibiao(yishenggongzuozhenghao=ysh, xingbie=sex, nianling=olf, xingming=name,
|
||||
shifoudushengzinv=child, shifoudangyuan=dy, dianhua=phone, gongzuonianling=job,
|
||||
yiyuanrenyuandegongzuoleixingdaihao=number)
|
||||
db.session.add(ys)
|
||||
db.session.commit()
|
||||
return redirect('/doctor')
|
||||
elif type == 'huanzhe':
|
||||
ysh = request.form['ysh']
|
||||
name = request.form['name']
|
||||
sex = request.form['sex']
|
||||
olf = request.form['old']
|
||||
child = request.form['child']
|
||||
dy = request.form['dy']
|
||||
job = request.form['job']
|
||||
phone = request.form['phone']
|
||||
number = request.form['number']
|
||||
print(request.form)
|
||||
ys = Huanzherjibenxinxibiao(shenfenzhenghao=ysh, xingbie=sex, nianling=olf, xingming=name,
|
||||
jiguan=child, huanzhehao=dy, fangjianweizhi=phone, ruyuanshijian=job,
|
||||
jiashulianxitianhua=number)
|
||||
db.session.add(ys)
|
||||
db.session.commit()
|
||||
return redirect('/huanzhe')
|
||||
elif type == 'device':
|
||||
ysh = request.form['ysh']
|
||||
name = request.form['name']
|
||||
sex = request.form['sex']
|
||||
olf = request.form['old']
|
||||
print(request.form)
|
||||
ys = Shebeishiyongqingkuangbiao(shebeihao=ysh, shebeileixing=sex, shifoushiyong=olf,
|
||||
yongyunagehuanzhe_huanzhehao_=name
|
||||
)
|
||||
db.session.add(ys)
|
||||
db.session.commit()
|
||||
return redirect('/device')
|
||||
#删除
|
||||
@app.route('/delete_gen', methods=['GET', 'POST'])
|
||||
def delete_gen():
|
||||
if request.method == 'GET':
|
||||
id = request.args.get("id")
|
||||
type = request.args.get("type")
|
||||
if type == 'doctor':
|
||||
detail = Yiyuanrenyuanxinxibiao.query.filter_by(yishenggongzuozhenghao=id).first()
|
||||
|
||||
db.session.delete(detail)
|
||||
db.session.commit()
|
||||
return redirect('/doctor')
|
||||
elif type == 'huanzhe':
|
||||
detail = Huanzherjibenxinxibiao.query.filter_by(shenfenzhenghao=id).first()
|
||||
|
||||
db.session.delete(detail)
|
||||
db.session.commit()
|
||||
return redirect('/huanzhe')
|
||||
elif type == 'device':
|
||||
detail = Shebeishiyongqingkuangbiao.query.filter_by(shebeihao=id).first()
|
||||
|
||||
db.session.delete(detail)
|
||||
db.session.commit()
|
||||
return redirect('/device')
|
||||
elif type == 'bingfang':
|
||||
detail = Fangjianshiyongqingkuangbiao.query.filter_by(fangjianhao=id).first()
|
||||
|
||||
db.session.delete(detail)
|
||||
db.session.commit()
|
||||
return redirect('/bingfang')
|
||||
|
||||
|
||||
@app.route("/insert_device")
|
||||
def insert_device():
|
||||
# 跳转至添加信息页面
|
||||
if request.method == 'GET':
|
||||
type = request.args.get("type")
|
||||
if type == 'device':
|
||||
qufen = Shebeishiyongqingkuangbiao.query.all()
|
||||
return render_template("insert_device.html", qufen=qufen,mark='0')
|
||||
elif type == 'doctor':
|
||||
qufen = Yiyuanrenyuanxinxibiao.query.all()
|
||||
return render_template("insert_doctor.html", qufen=qufen, mark='0')
|
||||
elif type == 'huanzhe':
|
||||
qufen = Huanzherjibenxinxibiao.query.all()
|
||||
return render_template("insert_huanzhe.html", qufen=qufen,mark='0')
|
||||
elif type == 'bingfang':
|
||||
qufen = Fangjianshiyongqingkuangbiao.query.all()
|
||||
return render_template("insert_bingfang.html", qufen=qufen, mark='0')
|
||||
if request.method == 'POST':
|
||||
pass
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True, host='127.0.0.1', port=8080)
|
After Width: | Height: | Size: 279 KiB |
@ -0,0 +1,135 @@
|
||||
# coding: utf-8
|
||||
from sqlalchemy import Column, ForeignKey, Integer, MetaData, String
|
||||
from sqlalchemy.orm import relationship
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from app import db
|
||||
# Base = declarative_base()
|
||||
# metadata = Base.metadata
|
||||
|
||||
|
||||
class City(db.Model):
|
||||
__tablename__ = 'city'
|
||||
|
||||
id = Column(Integer, primary_key=True)
|
||||
provincename = Column(String(255))
|
||||
cityname = Column(String(255))
|
||||
usernumber = Column(Integer, nullable=False)
|
||||
|
||||
|
||||
class Fangjianshiyongqingkuangbiao(db.Model):
|
||||
__tablename__ = 'fangjianshiyongqingkuangbiao'
|
||||
|
||||
fangjianhao = Column(String(3), primary_key=True)
|
||||
fangjianweizhi = Column(ForeignKey('huanzherjibenxinxibiao.fangjianweizhi'), index=True)
|
||||
fangjianshifoumanyuan = Column(String(2))
|
||||
|
||||
huanzherjibenxinxibiao = relationship('Huanzherjibenxinxibiao',
|
||||
primaryjoin='Fangjianshiyongqingkuangbiao.fangjianweizhi == Huanzherjibenxinxibiao.fangjianweizhi',
|
||||
backref='fangjianshiyongqingkuangbiaos')
|
||||
|
||||
|
||||
class Huanzhebingqingcanzhaobiao(db.Model):
|
||||
__tablename__ = 'huanzhebingqingcanzhaobiao'
|
||||
|
||||
huanzhebingqingdaihao = Column(Integer, primary_key=True)
|
||||
jutibingqing = Column(String(2), nullable=False)
|
||||
|
||||
|
||||
class Huanzhebingqingzhuangkuangbiao(db.Model):
|
||||
__tablename__ = 'huanzhebingqingzhuangkuangbiao'
|
||||
|
||||
huanzhehao = Column(String(10), primary_key=True)
|
||||
fangjianhao = Column(Integer)
|
||||
huanzhebingqingdaihao = Column(ForeignKey('huanzhebingqingcanzhaobiao.huanzhebingqingdaihao'), index=True)
|
||||
teshuqingkuangbeizhu = Column(String(255))
|
||||
jiashuyouwuganran = Column(String(2))
|
||||
|
||||
huanzhebingqingcanzhaobiao = relationship('Huanzhebingqingcanzhaobiao',
|
||||
primaryjoin='Huanzhebingqingzhuangkuangbiao.huanzhebingqingdaihao == Huanzhebingqingcanzhaobiao.huanzhebingqingdaihao',
|
||||
backref='huanzhebingqingzhuangkuangbiaos')
|
||||
|
||||
|
||||
class Huanzherjibenxinxibiao(db.Model):
|
||||
__tablename__ = 'huanzherjibenxinxibiao'
|
||||
|
||||
shenfenzhenghao = Column(String(18), primary_key=True)
|
||||
xingming = Column(String(3))
|
||||
xingbie = Column(String(2))
|
||||
nianling = Column(Integer)
|
||||
jiguan = Column(String(4))
|
||||
huanzhehao = Column(ForeignKey('huanzhebingqingzhuangkuangbiao.huanzhehao'), index=True)
|
||||
fangjianweizhi = Column(Integer, index=True)
|
||||
ruyuanshijian = Column(String(10))
|
||||
jiashulianxitianhua = Column(String(11))
|
||||
|
||||
huanzhebingqingzhuangkuangbiao = relationship('Huanzhebingqingzhuangkuangbiao',
|
||||
primaryjoin='Huanzherjibenxinxibiao.huanzhehao == Huanzhebingqingzhuangkuangbiao.huanzhehao',
|
||||
backref='huanzherjibenxinxibiaos')
|
||||
|
||||
|
||||
class Siwanghuanzhebiao(Huanzherjibenxinxibiao):
|
||||
__tablename__ = 'siwanghuanzhebiao'
|
||||
|
||||
xingming = Column(String(3))
|
||||
xingbie = Column(String(2))
|
||||
nianling = Column(Integer)
|
||||
shenfenzhenghao = Column(ForeignKey('huanzherjibenxinxibiao.shenfenzhenghao'), primary_key=True)
|
||||
siwangshijian = Column(String(10))
|
||||
|
||||
|
||||
class Yihuanguanxibiao(Huanzherjibenxinxibiao):
|
||||
__tablename__ = 'yihuanguanxibiao'
|
||||
|
||||
huanzhehao = Column(ForeignKey('huanzherjibenxinxibiao.huanzhehao'), primary_key=True)
|
||||
yishenggongzuozhenghao = Column(ForeignKey('yiyuanrenyuanxinxibiao.yishenggongzuozhenghao'), index=True)
|
||||
yiyurenyuandegongzuoleixingdaihao = Column(Integer)
|
||||
|
||||
yiyuanrenyuanxinxibiao = relationship('Yiyuanrenyuanxinxibiao',
|
||||
primaryjoin='Yihuanguanxibiao.yishenggongzuozhenghao == Yiyuanrenyuanxinxibiao.yishenggongzuozhenghao',
|
||||
backref='yihuanguanxibiaos')
|
||||
|
||||
|
||||
class Zhiyuhuanzhebiao(Huanzherjibenxinxibiao):
|
||||
__tablename__ = 'zhiyuhuanzhebiao'
|
||||
|
||||
xingming = Column(String(3))
|
||||
xingbie = Column(String(2))
|
||||
nianling = Column(Integer)
|
||||
shenfenzhenghao = Column(ForeignKey('huanzherjibenxinxibiao.shenfenzhenghao'), primary_key=True)
|
||||
zhiyushijian = Column(String(10))
|
||||
lianxidianhua = Column(String(11))
|
||||
|
||||
|
||||
class Shebeishiyongqingkuangbiao(db.Model):
|
||||
__tablename__ = 'shebeishiyongqingkuangbiao'
|
||||
|
||||
shebeihao = Column(String(5), primary_key=True)
|
||||
shebeileixing = Column(String(10), nullable=False)
|
||||
shifoushiyong = Column(String(2), nullable=False)
|
||||
yongyunagehuanzhe_huanzhehao_ = Column('yongyunagehuanzhe(huanzhehao)', String(10), index=True)
|
||||
|
||||
|
||||
class Yiyuanrenyuangongzuoqufenbiao(db.Model):
|
||||
__tablename__ = 'yiyuanrenyuangongzuoqufenbiao'
|
||||
|
||||
yiyuanrenyuandegongzuoleixingdaihao = Column(String(4), primary_key=True)
|
||||
jutigongzuoleixing = Column(String(4), nullable=False)
|
||||
|
||||
|
||||
class Yiyuanrenyuanxinxibiao(db.Model):
|
||||
__tablename__ = 'yiyuanrenyuanxinxibiao'
|
||||
|
||||
yishenggongzuozhenghao = Column(String(10), primary_key=True)
|
||||
xingming = Column(String(3), nullable=False)
|
||||
xingbie = Column(String(2), nullable=False)
|
||||
nianling = Column(Integer, nullable=False)
|
||||
dianhua = Column(String(11), nullable=False)
|
||||
shifoudushengzinv = Column(String(2), nullable=False)
|
||||
shifoudangyuan = Column(String(2), nullable=False)
|
||||
gongzuonianling = Column(Integer, nullable=False)
|
||||
yiyuanrenyuandegongzuoleixingdaihao = Column(
|
||||
ForeignKey('yiyuanrenyuangongzuoqufenbiao.yiyuanrenyuandegongzuoleixingdaihao'), nullable=False, index=True)
|
||||
|
||||
yiyuanrenyuangongzuoqufenbiao = relationship('Yiyuanrenyuangongzuoqufenbiao',
|
||||
primaryjoin='Yiyuanrenyuanxinxibiao.yiyuanrenyuandegongzuoleixingdaihao == Yiyuanrenyuangongzuoqufenbiao.yiyuanrenyuandegongzuoleixingdaihao',
|
||||
backref='yiyuanrenyuanxinxibiaos')
|
@ -0,0 +1,2 @@
|
||||
/** layui-v2.4.5 MIT License By https://www.layui.com */
|
||||
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
|
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 701 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 274 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 777 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 4.0 KiB |