Compare commits

5 Commits

Author SHA1 Message Date
yannsy
c20546659d 添加上传生成的文件
不再限制debug和realease中的文件上传至云端
2017-05-18 16:59:00 +08:00
yannsy
b2e98351dd 添加视图修改
视图-v的按照学号修改此人有作弊嫌疑
2017-05-18 16:54:36 +08:00
yannsy
5d96fe81b6 小修改
小修改,文件名的改进
2017-05-17 20:57:37 +08:00
yannsy
8c0e2f8ff6 Revert "Revert "添加了用户属性表,以后工作更加方便""
This reverts commit dfaadfcff3.
2017-05-17 20:02:54 +08:00
yannsy
dfaadfcff3 Revert "添加了用户属性表,以后工作更加方便"
This reverts commit a86e659233.
2017-05-17 20:02:20 +08:00
35 changed files with 46 additions and 6 deletions

5
.gitignore vendored
View File

@@ -10,6 +10,8 @@ tmp/
*.tmp *.tmp
*.bak *.bak
*.swp *.swp
*.tlog
*.idb
*~.nib *~.nib
local.properties local.properties
.classpath .classpath
@@ -43,8 +45,6 @@ local.properties
# Build results # Build results
[Dd]ebug/
[Rr]elease/
x64/ x64/
build/ build/
[Bb]in/ [Bb]in/
@@ -214,3 +214,4 @@ pip-log.txt
#Mr Developer #Mr Developer
.mr.developer.cfg .mr.developer.cfg
部署版本/主程序-主函数版本/HWCV-exe/Debug/vc120.idb

View File

@@ -137,13 +137,16 @@ int DbUpdate(string stuNum, vector<string> dateVec, vector<string> subjectVec, v
/*更新字串设置*/ /*更新字串设置*/
int count = subjectVec.size(); int count = subjectVec.size();
vector<string> sqlKC; //课程表:作弊第一字段 vector<string> sqlKC; //课程表:作弊第一字段
int ci = 0; //循环 int ci = 0; //循环
string flag = "0";
/*构造更新语句--KC表的更新 */
/*构造更新语句*/
for (ci = 0; ci < count; ++ci) for (ci = 0; ci < count; ++ci)
{ {
if(flagVec[ci]=="1") // 此人若有作弊嫌疑的图像,就认定此人为作弊嫌疑
flag = "1";
/*作弊的*/ /*作弊的*/
string sqlKC1 = "UPDATE "; string sqlKC1 = "UPDATE ";
sqlKC1 += g_db_hoster_zk; sqlKC1 += g_db_hoster_zk;
@@ -160,7 +163,11 @@ int DbUpdate(string stuNum, vector<string> dateVec, vector<string> subjectVec, v
sqlKC.push_back(sqlKC1); sqlKC.push_back(sqlKC1);
} }
/* 更新语句--视图更新 */
string sqlView = "UPDATE YANNSY.V_BYSQ_BJSH_JQ_KS SET BJSH_JG_JQ=";
sqlView += flag;
sqlView += "WHERE KS_ZKZ = ";
sqlView += stuNum;
::CoInitialize(NULL);//初始化com组件 ::CoInitialize(NULL);//初始化com组件
/*更新数据库表*/ /*更新数据库表*/
@@ -181,6 +188,11 @@ int DbUpdate(string stuNum, vector<string> dateVec, vector<string> subjectVec, v
adLockOptimistic, adLockOptimistic,
adCmdText); adCmdText);
} }
p_recordset->Open(_bstr_t(sqlView.c_str()),//更新第二条
p_conn.GetInterfacePtr(),
adOpenStatic,
adLockOptimistic,
adCmdText);
} }
catch (_com_error e){ return 0; cerr << "Err:"; } catch (_com_error e){ return 0; cerr << "Err:"; }

View File

@@ -9,6 +9,7 @@
#include <windows.h> #include <windows.h>
#include <iomanip> #include <iomanip>
#include <stdio.h> #include <stdio.h>
#include <string.h>
using namespace std; using namespace std;

View File

@@ -36,9 +36,11 @@
</ImportGroup> </ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\..\..\..\资料\opencv属性表-台式机\opencv2413_debug.props" />
</ImportGroup> </ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\..\..\..\资料\opencv属性表-台式机\opencv2413_release.props" />
</ImportGroup> </ImportGroup>
<PropertyGroup Label="UserMacros" /> <PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup />
<ItemGroup />
</Project>

Binary file not shown.

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<ExecutablePath>D:\programe files\opencv2413\opencv\build\x86\vc12\bin;$(ExecutablePath)</ExecutablePath>
<IncludePath>D:\programe files\opencv2413\opencv\build\include;D:\programe files\opencv2413\opencv\build\include\opencv;D:\programe files\opencv2413\opencv\build\include\opencv2;$(IncludePath)</IncludePath>
<LibraryPath>D:\programe files\opencv2413\opencv\build\x86\vc12\lib;D:\programe files\opencv2413\opencv\build\x86\vc12\staticlib;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup>
<Link>
<AdditionalDependencies>opencv_calib3d2413d.lib;opencv_contrib2413d.lib;opencv_core2413d.lib;opencv_features2d2413d.lib;opencv_flann2413d.lib;opencv_gpu2413d.lib;opencv_highgui2413d.lib;opencv_imgproc2413d.lib;opencv_legacy2413d.lib;opencv_ml2413d.lib;opencv_nonfree2413d.lib;opencv_objdetect2413d.lib;opencv_photo2413d.lib;opencv_stitching2413d.lib;opencv_ts2413d.lib;opencv_video2413d.lib;opencv_videostab2413d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup />
</Project>