diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp new file mode 100644 index 0000000..08ede8b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp @@ -0,0 +1,107 @@ +#include "check_data_manage_serve.h" + +Check_Data_Manage_Serve::Check_Data_Manage_Serve() +{ + +} + //核查数据管理 +QList Check_Data_Manage_Serve::getCheckData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," + " besci.create_user_name , besci.check_date , bei.dept_name " + " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id"); + if (query.exec()) { + while (query.next()) { + CheckData dataManage; + dataManage.id = query.value("id").toString(); + dataManage.equipment_name = query.value("equipment_name").toString(); + dataManage.model = query.value("model").toString(); + dataManage.manufacture_no = query.value("manufacture_no").toString(); + dataManage.meter_standard_name = query.value("meter_standard_name").toString(); + dataManage.meter_standard_id = query.value("meter_standard_id").toString(); + dataManage.create_user_name = query.value("create_user_name").toString(); + dataManage.check_date = query.value("check_date").toString(); + dataManage.dept_name = query.value("dept_name").toString(); + + result.append(dataManage); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //核查数据管理-核查基本信息 +QList Check_Data_Manage_Serve::getCheckDataManageBasicInfo(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," + " besci.check_address , besci.create_user_name , besci.conclusion " + "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " + " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" + " WHERE bei.id = :id "); + + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CheckDataManageBasicInfo basicInfo; + basicInfo.equipment_name = query.value("equipment_name").toString(); + basicInfo.model = query.value("model").toString(); + basicInfo.manufacture_no = query.value("manufacture_no").toString(); + basicInfo.manufacturer = query.value("manufacturer").toString(); + basicInfo.temperature = query.value("temperature").toString(); + basicInfo.humidity = query.value("humidity").toString(); + basicInfo.check_date = query.value("check_date").toString(); + basicInfo.check_address = query.value("check_address").toString(); + basicInfo.create_user_name = query.value("create_user_name").toString(); + basicInfo.conclusion = query.value("conclusion").toString(); + + result.append(basicInfo); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//核查数据管理-核查结果信息-核查项多功能校准源数据 +QList getCheckDataManageResultManageMult(QString equipment_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bescidc.id , bescidc.check_type ,bescidc.params ,bescidc.unit ,bescidc.frequency ,bescidc.check_point ,besci.check_date ,bescidc.urel ," + " bescidc.tfer ,bescidc.dccp ,bescidc.flit " + " FROM biz_equipment_standard_check_item_data_calibrator bescidc " + " LEFT JOIN biz_equipment_standard_check_info besci ON besci.item_category_id = bescidc.item_category_id " + " WHERE bescidc.equipment_id = :equipment_id "); + + // 将参数绑定到占位符 '1692796512381222914' + query.bindValue(":equipment_id", equipment_id); + if (query.exec()) { + while (query.next()) { + CheckDataManageResultManageMult dataCalibrator; + dataCalibrator.id = query.value("id").toString(); + dataCalibrator.check_type = query.value("check_type").toString(); + dataCalibrator.params = query.value("params").toString(); + dataCalibrator.unit = query.value("unit").toString(); + dataCalibrator.frequency = query.value("frequency").toString(); + dataCalibrator.check_point = query.value("check_point").toString(); + dataCalibrator.check_date = query.value("check_date").toString(); + dataCalibrator.urel = query.value("urel").toString(); + dataCalibrator.tfer = query.value("tfer").toString(); + dataCalibrator.dccp = query.value("dccp").toString(); + dataCalibrator.flit = query.value("flit").toString(); + + result.append(dataCalibrator); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp new file mode 100644 index 0000000..08ede8b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp @@ -0,0 +1,107 @@ +#include "check_data_manage_serve.h" + +Check_Data_Manage_Serve::Check_Data_Manage_Serve() +{ + +} + //核查数据管理 +QList Check_Data_Manage_Serve::getCheckData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," + " besci.create_user_name , besci.check_date , bei.dept_name " + " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id"); + if (query.exec()) { + while (query.next()) { + CheckData dataManage; + dataManage.id = query.value("id").toString(); + dataManage.equipment_name = query.value("equipment_name").toString(); + dataManage.model = query.value("model").toString(); + dataManage.manufacture_no = query.value("manufacture_no").toString(); + dataManage.meter_standard_name = query.value("meter_standard_name").toString(); + dataManage.meter_standard_id = query.value("meter_standard_id").toString(); + dataManage.create_user_name = query.value("create_user_name").toString(); + dataManage.check_date = query.value("check_date").toString(); + dataManage.dept_name = query.value("dept_name").toString(); + + result.append(dataManage); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //核查数据管理-核查基本信息 +QList Check_Data_Manage_Serve::getCheckDataManageBasicInfo(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," + " besci.check_address , besci.create_user_name , besci.conclusion " + "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " + " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" + " WHERE bei.id = :id "); + + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CheckDataManageBasicInfo basicInfo; + basicInfo.equipment_name = query.value("equipment_name").toString(); + basicInfo.model = query.value("model").toString(); + basicInfo.manufacture_no = query.value("manufacture_no").toString(); + basicInfo.manufacturer = query.value("manufacturer").toString(); + basicInfo.temperature = query.value("temperature").toString(); + basicInfo.humidity = query.value("humidity").toString(); + basicInfo.check_date = query.value("check_date").toString(); + basicInfo.check_address = query.value("check_address").toString(); + basicInfo.create_user_name = query.value("create_user_name").toString(); + basicInfo.conclusion = query.value("conclusion").toString(); + + result.append(basicInfo); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//核查数据管理-核查结果信息-核查项多功能校准源数据 +QList getCheckDataManageResultManageMult(QString equipment_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bescidc.id , bescidc.check_type ,bescidc.params ,bescidc.unit ,bescidc.frequency ,bescidc.check_point ,besci.check_date ,bescidc.urel ," + " bescidc.tfer ,bescidc.dccp ,bescidc.flit " + " FROM biz_equipment_standard_check_item_data_calibrator bescidc " + " LEFT JOIN biz_equipment_standard_check_info besci ON besci.item_category_id = bescidc.item_category_id " + " WHERE bescidc.equipment_id = :equipment_id "); + + // 将参数绑定到占位符 '1692796512381222914' + query.bindValue(":equipment_id", equipment_id); + if (query.exec()) { + while (query.next()) { + CheckDataManageResultManageMult dataCalibrator; + dataCalibrator.id = query.value("id").toString(); + dataCalibrator.check_type = query.value("check_type").toString(); + dataCalibrator.params = query.value("params").toString(); + dataCalibrator.unit = query.value("unit").toString(); + dataCalibrator.frequency = query.value("frequency").toString(); + dataCalibrator.check_point = query.value("check_point").toString(); + dataCalibrator.check_date = query.value("check_date").toString(); + dataCalibrator.urel = query.value("urel").toString(); + dataCalibrator.tfer = query.value("tfer").toString(); + dataCalibrator.dccp = query.value("dccp").toString(); + dataCalibrator.flit = query.value("flit").toString(); + + result.append(dataCalibrator); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.h b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h new file mode 100644 index 0000000..31a7ef3 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,49 @@ +#ifndef CHECK_DATA_MANAGE_SERVE_H +#define CHECK_DATA_MANAGE_SERVE_H + +#include +#include +#include +#include "QList" + +//核查数据管理 +class CheckData +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString meter_standard_name; + QString meter_standard_id; + QString create_user_name; + QString check_date; + QString dept_name; +}; +//核查数据管理-核查基本信息 +class CheckDataManageBasicInfo +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; + QString temperature; + QString humidity; + QString check_date; + QString check_address; + QString create_user_name; + QString conclusion; +}; + + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(); +}; + +#endif // CHECK_DATA_MANAGE_SERVE_H diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp new file mode 100644 index 0000000..08ede8b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp @@ -0,0 +1,107 @@ +#include "check_data_manage_serve.h" + +Check_Data_Manage_Serve::Check_Data_Manage_Serve() +{ + +} + //核查数据管理 +QList Check_Data_Manage_Serve::getCheckData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," + " besci.create_user_name , besci.check_date , bei.dept_name " + " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id"); + if (query.exec()) { + while (query.next()) { + CheckData dataManage; + dataManage.id = query.value("id").toString(); + dataManage.equipment_name = query.value("equipment_name").toString(); + dataManage.model = query.value("model").toString(); + dataManage.manufacture_no = query.value("manufacture_no").toString(); + dataManage.meter_standard_name = query.value("meter_standard_name").toString(); + dataManage.meter_standard_id = query.value("meter_standard_id").toString(); + dataManage.create_user_name = query.value("create_user_name").toString(); + dataManage.check_date = query.value("check_date").toString(); + dataManage.dept_name = query.value("dept_name").toString(); + + result.append(dataManage); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //核查数据管理-核查基本信息 +QList Check_Data_Manage_Serve::getCheckDataManageBasicInfo(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," + " besci.check_address , besci.create_user_name , besci.conclusion " + "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " + " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" + " WHERE bei.id = :id "); + + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CheckDataManageBasicInfo basicInfo; + basicInfo.equipment_name = query.value("equipment_name").toString(); + basicInfo.model = query.value("model").toString(); + basicInfo.manufacture_no = query.value("manufacture_no").toString(); + basicInfo.manufacturer = query.value("manufacturer").toString(); + basicInfo.temperature = query.value("temperature").toString(); + basicInfo.humidity = query.value("humidity").toString(); + basicInfo.check_date = query.value("check_date").toString(); + basicInfo.check_address = query.value("check_address").toString(); + basicInfo.create_user_name = query.value("create_user_name").toString(); + basicInfo.conclusion = query.value("conclusion").toString(); + + result.append(basicInfo); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//核查数据管理-核查结果信息-核查项多功能校准源数据 +QList getCheckDataManageResultManageMult(QString equipment_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bescidc.id , bescidc.check_type ,bescidc.params ,bescidc.unit ,bescidc.frequency ,bescidc.check_point ,besci.check_date ,bescidc.urel ," + " bescidc.tfer ,bescidc.dccp ,bescidc.flit " + " FROM biz_equipment_standard_check_item_data_calibrator bescidc " + " LEFT JOIN biz_equipment_standard_check_info besci ON besci.item_category_id = bescidc.item_category_id " + " WHERE bescidc.equipment_id = :equipment_id "); + + // 将参数绑定到占位符 '1692796512381222914' + query.bindValue(":equipment_id", equipment_id); + if (query.exec()) { + while (query.next()) { + CheckDataManageResultManageMult dataCalibrator; + dataCalibrator.id = query.value("id").toString(); + dataCalibrator.check_type = query.value("check_type").toString(); + dataCalibrator.params = query.value("params").toString(); + dataCalibrator.unit = query.value("unit").toString(); + dataCalibrator.frequency = query.value("frequency").toString(); + dataCalibrator.check_point = query.value("check_point").toString(); + dataCalibrator.check_date = query.value("check_date").toString(); + dataCalibrator.urel = query.value("urel").toString(); + dataCalibrator.tfer = query.value("tfer").toString(); + dataCalibrator.dccp = query.value("dccp").toString(); + dataCalibrator.flit = query.value("flit").toString(); + + result.append(dataCalibrator); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.h b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h new file mode 100644 index 0000000..31a7ef3 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,49 @@ +#ifndef CHECK_DATA_MANAGE_SERVE_H +#define CHECK_DATA_MANAGE_SERVE_H + +#include +#include +#include +#include "QList" + +//核查数据管理 +class CheckData +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString meter_standard_name; + QString meter_standard_id; + QString create_user_name; + QString check_date; + QString dept_name; +}; +//核查数据管理-核查基本信息 +class CheckDataManageBasicInfo +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; + QString temperature; + QString humidity; + QString check_date; + QString check_address; + QString create_user_name; + QString conclusion; +}; + + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(); +}; + +#endif // CHECK_DATA_MANAGE_SERVE_H diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp new file mode 100644 index 0000000..9ff8610 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "createtasks.h" + +CreateTasks::CreateTasks() +{ + +} +QListCreateTasks::getCreateTaskList(){ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," + "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); + if (query.exec()) { + while (query.next()) { + CreateTaskList task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} + +QListCreateTasks::getCatTask(QString orderNo) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," + "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," + "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" + " WHERE bi.order_no = :order_no"); + + // 将参数绑定到占位符 + query.bindValue(":order_no", orderNo); + if (query.exec()) { + while (query.next()) { + CatTask task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.deliverer_tel = query.value("deliverer_tel").toString(); + task.undertaker_name = query.value("undertaker_name").toString(); + task.undertake_time = query.value("undertake_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + task.receive_illustrate = query.value("receive_illustrate").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + +QListCreateTasks::getCatTaskList(QString orderId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," + "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" + " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " + "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " + "WHERE br.order_id = :order_id"); + // 将参数绑定到占位符 + query.bindValue(":order_id", orderId); + if (query.exec()) { + while (query.next()) { + CatTaskList task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.appendix_descn = query.value("appendix_descn").toString(); + task.special_require = query.value("special_require").toString(); + task.measure_complete_time = query.value("measure_complete_time").toString(); + task.conclusion = query.value("conclusion").toString(); + task.limit_instruction = query.value("limit_instruction").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp new file mode 100644 index 0000000..08ede8b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp @@ -0,0 +1,107 @@ +#include "check_data_manage_serve.h" + +Check_Data_Manage_Serve::Check_Data_Manage_Serve() +{ + +} + //核查数据管理 +QList Check_Data_Manage_Serve::getCheckData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," + " besci.create_user_name , besci.check_date , bei.dept_name " + " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id"); + if (query.exec()) { + while (query.next()) { + CheckData dataManage; + dataManage.id = query.value("id").toString(); + dataManage.equipment_name = query.value("equipment_name").toString(); + dataManage.model = query.value("model").toString(); + dataManage.manufacture_no = query.value("manufacture_no").toString(); + dataManage.meter_standard_name = query.value("meter_standard_name").toString(); + dataManage.meter_standard_id = query.value("meter_standard_id").toString(); + dataManage.create_user_name = query.value("create_user_name").toString(); + dataManage.check_date = query.value("check_date").toString(); + dataManage.dept_name = query.value("dept_name").toString(); + + result.append(dataManage); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //核查数据管理-核查基本信息 +QList Check_Data_Manage_Serve::getCheckDataManageBasicInfo(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," + " besci.check_address , besci.create_user_name , besci.conclusion " + "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " + " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" + " WHERE bei.id = :id "); + + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CheckDataManageBasicInfo basicInfo; + basicInfo.equipment_name = query.value("equipment_name").toString(); + basicInfo.model = query.value("model").toString(); + basicInfo.manufacture_no = query.value("manufacture_no").toString(); + basicInfo.manufacturer = query.value("manufacturer").toString(); + basicInfo.temperature = query.value("temperature").toString(); + basicInfo.humidity = query.value("humidity").toString(); + basicInfo.check_date = query.value("check_date").toString(); + basicInfo.check_address = query.value("check_address").toString(); + basicInfo.create_user_name = query.value("create_user_name").toString(); + basicInfo.conclusion = query.value("conclusion").toString(); + + result.append(basicInfo); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//核查数据管理-核查结果信息-核查项多功能校准源数据 +QList getCheckDataManageResultManageMult(QString equipment_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bescidc.id , bescidc.check_type ,bescidc.params ,bescidc.unit ,bescidc.frequency ,bescidc.check_point ,besci.check_date ,bescidc.urel ," + " bescidc.tfer ,bescidc.dccp ,bescidc.flit " + " FROM biz_equipment_standard_check_item_data_calibrator bescidc " + " LEFT JOIN biz_equipment_standard_check_info besci ON besci.item_category_id = bescidc.item_category_id " + " WHERE bescidc.equipment_id = :equipment_id "); + + // 将参数绑定到占位符 '1692796512381222914' + query.bindValue(":equipment_id", equipment_id); + if (query.exec()) { + while (query.next()) { + CheckDataManageResultManageMult dataCalibrator; + dataCalibrator.id = query.value("id").toString(); + dataCalibrator.check_type = query.value("check_type").toString(); + dataCalibrator.params = query.value("params").toString(); + dataCalibrator.unit = query.value("unit").toString(); + dataCalibrator.frequency = query.value("frequency").toString(); + dataCalibrator.check_point = query.value("check_point").toString(); + dataCalibrator.check_date = query.value("check_date").toString(); + dataCalibrator.urel = query.value("urel").toString(); + dataCalibrator.tfer = query.value("tfer").toString(); + dataCalibrator.dccp = query.value("dccp").toString(); + dataCalibrator.flit = query.value("flit").toString(); + + result.append(dataCalibrator); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.h b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h new file mode 100644 index 0000000..31a7ef3 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,49 @@ +#ifndef CHECK_DATA_MANAGE_SERVE_H +#define CHECK_DATA_MANAGE_SERVE_H + +#include +#include +#include +#include "QList" + +//核查数据管理 +class CheckData +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString meter_standard_name; + QString meter_standard_id; + QString create_user_name; + QString check_date; + QString dept_name; +}; +//核查数据管理-核查基本信息 +class CheckDataManageBasicInfo +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; + QString temperature; + QString humidity; + QString check_date; + QString check_address; + QString create_user_name; + QString conclusion; +}; + + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(); +}; + +#endif // CHECK_DATA_MANAGE_SERVE_H diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp new file mode 100644 index 0000000..9ff8610 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "createtasks.h" + +CreateTasks::CreateTasks() +{ + +} +QListCreateTasks::getCreateTaskList(){ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," + "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); + if (query.exec()) { + while (query.next()) { + CreateTaskList task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} + +QListCreateTasks::getCatTask(QString orderNo) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," + "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," + "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" + " WHERE bi.order_no = :order_no"); + + // 将参数绑定到占位符 + query.bindValue(":order_no", orderNo); + if (query.exec()) { + while (query.next()) { + CatTask task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.deliverer_tel = query.value("deliverer_tel").toString(); + task.undertaker_name = query.value("undertaker_name").toString(); + task.undertake_time = query.value("undertake_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + task.receive_illustrate = query.value("receive_illustrate").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + +QListCreateTasks::getCatTaskList(QString orderId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," + "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" + " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " + "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " + "WHERE br.order_id = :order_id"); + // 将参数绑定到占位符 + query.bindValue(":order_id", orderId); + if (query.exec()) { + while (query.next()) { + CatTaskList task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.appendix_descn = query.value("appendix_descn").toString(); + task.special_require = query.value("special_require").toString(); + task.measure_complete_time = query.value("measure_complete_time").toString(); + task.conclusion = query.value("conclusion").toString(); + task.limit_instruction = query.value("limit_instruction").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.h b/softwareDirectory/AutoVerScheme/create_tasks_serve.h new file mode 100644 index 0000000..b9c8011 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,45 @@ +#ifndef CREATETASKS_H +#define CREATETASKS_H +#include +#include +#include +#include "QList" +//创建任务单-首页 +class CreateTaskList +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString is_urgent; +}; +//创建任务单-查看任务单 +class CatTask +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString deliverer_tel; + QString undertaker_name; + QString undertake_time; + QString is_urgent; + QString receive_illustrate; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); +}; + +#endif // CREATETASKS_H diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp new file mode 100644 index 0000000..08ede8b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp @@ -0,0 +1,107 @@ +#include "check_data_manage_serve.h" + +Check_Data_Manage_Serve::Check_Data_Manage_Serve() +{ + +} + //核查数据管理 +QList Check_Data_Manage_Serve::getCheckData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," + " besci.create_user_name , besci.check_date , bei.dept_name " + " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id"); + if (query.exec()) { + while (query.next()) { + CheckData dataManage; + dataManage.id = query.value("id").toString(); + dataManage.equipment_name = query.value("equipment_name").toString(); + dataManage.model = query.value("model").toString(); + dataManage.manufacture_no = query.value("manufacture_no").toString(); + dataManage.meter_standard_name = query.value("meter_standard_name").toString(); + dataManage.meter_standard_id = query.value("meter_standard_id").toString(); + dataManage.create_user_name = query.value("create_user_name").toString(); + dataManage.check_date = query.value("check_date").toString(); + dataManage.dept_name = query.value("dept_name").toString(); + + result.append(dataManage); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //核查数据管理-核查基本信息 +QList Check_Data_Manage_Serve::getCheckDataManageBasicInfo(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," + " besci.check_address , besci.create_user_name , besci.conclusion " + "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " + " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" + " WHERE bei.id = :id "); + + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CheckDataManageBasicInfo basicInfo; + basicInfo.equipment_name = query.value("equipment_name").toString(); + basicInfo.model = query.value("model").toString(); + basicInfo.manufacture_no = query.value("manufacture_no").toString(); + basicInfo.manufacturer = query.value("manufacturer").toString(); + basicInfo.temperature = query.value("temperature").toString(); + basicInfo.humidity = query.value("humidity").toString(); + basicInfo.check_date = query.value("check_date").toString(); + basicInfo.check_address = query.value("check_address").toString(); + basicInfo.create_user_name = query.value("create_user_name").toString(); + basicInfo.conclusion = query.value("conclusion").toString(); + + result.append(basicInfo); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//核查数据管理-核查结果信息-核查项多功能校准源数据 +QList getCheckDataManageResultManageMult(QString equipment_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bescidc.id , bescidc.check_type ,bescidc.params ,bescidc.unit ,bescidc.frequency ,bescidc.check_point ,besci.check_date ,bescidc.urel ," + " bescidc.tfer ,bescidc.dccp ,bescidc.flit " + " FROM biz_equipment_standard_check_item_data_calibrator bescidc " + " LEFT JOIN biz_equipment_standard_check_info besci ON besci.item_category_id = bescidc.item_category_id " + " WHERE bescidc.equipment_id = :equipment_id "); + + // 将参数绑定到占位符 '1692796512381222914' + query.bindValue(":equipment_id", equipment_id); + if (query.exec()) { + while (query.next()) { + CheckDataManageResultManageMult dataCalibrator; + dataCalibrator.id = query.value("id").toString(); + dataCalibrator.check_type = query.value("check_type").toString(); + dataCalibrator.params = query.value("params").toString(); + dataCalibrator.unit = query.value("unit").toString(); + dataCalibrator.frequency = query.value("frequency").toString(); + dataCalibrator.check_point = query.value("check_point").toString(); + dataCalibrator.check_date = query.value("check_date").toString(); + dataCalibrator.urel = query.value("urel").toString(); + dataCalibrator.tfer = query.value("tfer").toString(); + dataCalibrator.dccp = query.value("dccp").toString(); + dataCalibrator.flit = query.value("flit").toString(); + + result.append(dataCalibrator); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.h b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h new file mode 100644 index 0000000..31a7ef3 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,49 @@ +#ifndef CHECK_DATA_MANAGE_SERVE_H +#define CHECK_DATA_MANAGE_SERVE_H + +#include +#include +#include +#include "QList" + +//核查数据管理 +class CheckData +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString meter_standard_name; + QString meter_standard_id; + QString create_user_name; + QString check_date; + QString dept_name; +}; +//核查数据管理-核查基本信息 +class CheckDataManageBasicInfo +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; + QString temperature; + QString humidity; + QString check_date; + QString check_address; + QString create_user_name; + QString conclusion; +}; + + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(); +}; + +#endif // CHECK_DATA_MANAGE_SERVE_H diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp new file mode 100644 index 0000000..9ff8610 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "createtasks.h" + +CreateTasks::CreateTasks() +{ + +} +QListCreateTasks::getCreateTaskList(){ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," + "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); + if (query.exec()) { + while (query.next()) { + CreateTaskList task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} + +QListCreateTasks::getCatTask(QString orderNo) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," + "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," + "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" + " WHERE bi.order_no = :order_no"); + + // 将参数绑定到占位符 + query.bindValue(":order_no", orderNo); + if (query.exec()) { + while (query.next()) { + CatTask task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.deliverer_tel = query.value("deliverer_tel").toString(); + task.undertaker_name = query.value("undertaker_name").toString(); + task.undertake_time = query.value("undertake_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + task.receive_illustrate = query.value("receive_illustrate").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + +QListCreateTasks::getCatTaskList(QString orderId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," + "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" + " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " + "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " + "WHERE br.order_id = :order_id"); + // 将参数绑定到占位符 + query.bindValue(":order_id", orderId); + if (query.exec()) { + while (query.next()) { + CatTaskList task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.appendix_descn = query.value("appendix_descn").toString(); + task.special_require = query.value("special_require").toString(); + task.measure_complete_time = query.value("measure_complete_time").toString(); + task.conclusion = query.value("conclusion").toString(); + task.limit_instruction = query.value("limit_instruction").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.h b/softwareDirectory/AutoVerScheme/create_tasks_serve.h new file mode 100644 index 0000000..b9c8011 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,45 @@ +#ifndef CREATETASKS_H +#define CREATETASKS_H +#include +#include +#include +#include "QList" +//创建任务单-首页 +class CreateTaskList +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString is_urgent; +}; +//创建任务单-查看任务单 +class CatTask +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString deliverer_tel; + QString undertaker_name; + QString undertake_time; + QString is_urgent; + QString receive_illustrate; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..a6b53a9 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "mytasks.h" + +MyTasks::MyTasks() +{ + +} +QList MyTasks::getMyTasks(QString id){ + QList result; + QSqlQuery query; + query.exec("SELECT " + "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," + "ei.manufacturer, bi.customer_name," + "dept.FULL_NAME, bi.require_over_time," + "bi.is_urgent FROM biz_business_order_info bi" + " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" + " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " + "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = :user_id"); + + // 将参数绑定到占位符 + query.bindValue(":user_id", id); +if (query.exec()) { + while (query.next()) { + MyTask task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.help_instruction = query.value("help_instruction").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.customer_name = query.value("customer_name").toString(); + task.FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } +} +else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp new file mode 100644 index 0000000..08ede8b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp @@ -0,0 +1,107 @@ +#include "check_data_manage_serve.h" + +Check_Data_Manage_Serve::Check_Data_Manage_Serve() +{ + +} + //核查数据管理 +QList Check_Data_Manage_Serve::getCheckData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," + " besci.create_user_name , besci.check_date , bei.dept_name " + " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id"); + if (query.exec()) { + while (query.next()) { + CheckData dataManage; + dataManage.id = query.value("id").toString(); + dataManage.equipment_name = query.value("equipment_name").toString(); + dataManage.model = query.value("model").toString(); + dataManage.manufacture_no = query.value("manufacture_no").toString(); + dataManage.meter_standard_name = query.value("meter_standard_name").toString(); + dataManage.meter_standard_id = query.value("meter_standard_id").toString(); + dataManage.create_user_name = query.value("create_user_name").toString(); + dataManage.check_date = query.value("check_date").toString(); + dataManage.dept_name = query.value("dept_name").toString(); + + result.append(dataManage); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //核查数据管理-核查基本信息 +QList Check_Data_Manage_Serve::getCheckDataManageBasicInfo(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," + " besci.check_address , besci.create_user_name , besci.conclusion " + "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " + " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" + " WHERE bei.id = :id "); + + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CheckDataManageBasicInfo basicInfo; + basicInfo.equipment_name = query.value("equipment_name").toString(); + basicInfo.model = query.value("model").toString(); + basicInfo.manufacture_no = query.value("manufacture_no").toString(); + basicInfo.manufacturer = query.value("manufacturer").toString(); + basicInfo.temperature = query.value("temperature").toString(); + basicInfo.humidity = query.value("humidity").toString(); + basicInfo.check_date = query.value("check_date").toString(); + basicInfo.check_address = query.value("check_address").toString(); + basicInfo.create_user_name = query.value("create_user_name").toString(); + basicInfo.conclusion = query.value("conclusion").toString(); + + result.append(basicInfo); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//核查数据管理-核查结果信息-核查项多功能校准源数据 +QList getCheckDataManageResultManageMult(QString equipment_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bescidc.id , bescidc.check_type ,bescidc.params ,bescidc.unit ,bescidc.frequency ,bescidc.check_point ,besci.check_date ,bescidc.urel ," + " bescidc.tfer ,bescidc.dccp ,bescidc.flit " + " FROM biz_equipment_standard_check_item_data_calibrator bescidc " + " LEFT JOIN biz_equipment_standard_check_info besci ON besci.item_category_id = bescidc.item_category_id " + " WHERE bescidc.equipment_id = :equipment_id "); + + // 将参数绑定到占位符 '1692796512381222914' + query.bindValue(":equipment_id", equipment_id); + if (query.exec()) { + while (query.next()) { + CheckDataManageResultManageMult dataCalibrator; + dataCalibrator.id = query.value("id").toString(); + dataCalibrator.check_type = query.value("check_type").toString(); + dataCalibrator.params = query.value("params").toString(); + dataCalibrator.unit = query.value("unit").toString(); + dataCalibrator.frequency = query.value("frequency").toString(); + dataCalibrator.check_point = query.value("check_point").toString(); + dataCalibrator.check_date = query.value("check_date").toString(); + dataCalibrator.urel = query.value("urel").toString(); + dataCalibrator.tfer = query.value("tfer").toString(); + dataCalibrator.dccp = query.value("dccp").toString(); + dataCalibrator.flit = query.value("flit").toString(); + + result.append(dataCalibrator); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.h b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h new file mode 100644 index 0000000..31a7ef3 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,49 @@ +#ifndef CHECK_DATA_MANAGE_SERVE_H +#define CHECK_DATA_MANAGE_SERVE_H + +#include +#include +#include +#include "QList" + +//核查数据管理 +class CheckData +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString meter_standard_name; + QString meter_standard_id; + QString create_user_name; + QString check_date; + QString dept_name; +}; +//核查数据管理-核查基本信息 +class CheckDataManageBasicInfo +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; + QString temperature; + QString humidity; + QString check_date; + QString check_address; + QString create_user_name; + QString conclusion; +}; + + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(); +}; + +#endif // CHECK_DATA_MANAGE_SERVE_H diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp new file mode 100644 index 0000000..9ff8610 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "createtasks.h" + +CreateTasks::CreateTasks() +{ + +} +QListCreateTasks::getCreateTaskList(){ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," + "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); + if (query.exec()) { + while (query.next()) { + CreateTaskList task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} + +QListCreateTasks::getCatTask(QString orderNo) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," + "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," + "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" + " WHERE bi.order_no = :order_no"); + + // 将参数绑定到占位符 + query.bindValue(":order_no", orderNo); + if (query.exec()) { + while (query.next()) { + CatTask task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.deliverer_tel = query.value("deliverer_tel").toString(); + task.undertaker_name = query.value("undertaker_name").toString(); + task.undertake_time = query.value("undertake_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + task.receive_illustrate = query.value("receive_illustrate").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + +QListCreateTasks::getCatTaskList(QString orderId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," + "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" + " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " + "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " + "WHERE br.order_id = :order_id"); + // 将参数绑定到占位符 + query.bindValue(":order_id", orderId); + if (query.exec()) { + while (query.next()) { + CatTaskList task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.appendix_descn = query.value("appendix_descn").toString(); + task.special_require = query.value("special_require").toString(); + task.measure_complete_time = query.value("measure_complete_time").toString(); + task.conclusion = query.value("conclusion").toString(); + task.limit_instruction = query.value("limit_instruction").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.h b/softwareDirectory/AutoVerScheme/create_tasks_serve.h new file mode 100644 index 0000000..b9c8011 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,45 @@ +#ifndef CREATETASKS_H +#define CREATETASKS_H +#include +#include +#include +#include "QList" +//创建任务单-首页 +class CreateTaskList +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString is_urgent; +}; +//创建任务单-查看任务单 +class CatTask +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString deliverer_tel; + QString undertaker_name; + QString undertake_time; + QString is_urgent; + QString receive_illustrate; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..a6b53a9 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "mytasks.h" + +MyTasks::MyTasks() +{ + +} +QList MyTasks::getMyTasks(QString id){ + QList result; + QSqlQuery query; + query.exec("SELECT " + "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," + "ei.manufacturer, bi.customer_name," + "dept.FULL_NAME, bi.require_over_time," + "bi.is_urgent FROM biz_business_order_info bi" + " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" + " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " + "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = :user_id"); + + // 将参数绑定到占位符 + query.bindValue(":user_id", id); +if (query.exec()) { + while (query.next()) { + MyTask task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.help_instruction = query.value("help_instruction").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.customer_name = query.value("customer_name").toString(); + task.FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } +} +else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.h b/softwareDirectory/AutoVerScheme/my_tasks_serve.h new file mode 100644 index 0000000..cba2a13 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.h @@ -0,0 +1,33 @@ +#ifndef MYTASKS_H +#define MYTASKS_H +#include +#include +#include +#include "QList" + +class MyTask +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString help_instruction; + QString manufacture_no; + QString manufacturer; + QString customer_name; + QString FULL_NAME; + QString require_over_time; + QString is_urgent; +}; + + + +class MyTasks +{ +public: + MyTasks(); + QList getMyTasks(QString id); + +}; + +#endif // MYTASKS_H diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp new file mode 100644 index 0000000..08ede8b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp @@ -0,0 +1,107 @@ +#include "check_data_manage_serve.h" + +Check_Data_Manage_Serve::Check_Data_Manage_Serve() +{ + +} + //核查数据管理 +QList Check_Data_Manage_Serve::getCheckData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," + " besci.create_user_name , besci.check_date , bei.dept_name " + " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id"); + if (query.exec()) { + while (query.next()) { + CheckData dataManage; + dataManage.id = query.value("id").toString(); + dataManage.equipment_name = query.value("equipment_name").toString(); + dataManage.model = query.value("model").toString(); + dataManage.manufacture_no = query.value("manufacture_no").toString(); + dataManage.meter_standard_name = query.value("meter_standard_name").toString(); + dataManage.meter_standard_id = query.value("meter_standard_id").toString(); + dataManage.create_user_name = query.value("create_user_name").toString(); + dataManage.check_date = query.value("check_date").toString(); + dataManage.dept_name = query.value("dept_name").toString(); + + result.append(dataManage); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //核查数据管理-核查基本信息 +QList Check_Data_Manage_Serve::getCheckDataManageBasicInfo(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," + " besci.check_address , besci.create_user_name , besci.conclusion " + "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " + " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" + " WHERE bei.id = :id "); + + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CheckDataManageBasicInfo basicInfo; + basicInfo.equipment_name = query.value("equipment_name").toString(); + basicInfo.model = query.value("model").toString(); + basicInfo.manufacture_no = query.value("manufacture_no").toString(); + basicInfo.manufacturer = query.value("manufacturer").toString(); + basicInfo.temperature = query.value("temperature").toString(); + basicInfo.humidity = query.value("humidity").toString(); + basicInfo.check_date = query.value("check_date").toString(); + basicInfo.check_address = query.value("check_address").toString(); + basicInfo.create_user_name = query.value("create_user_name").toString(); + basicInfo.conclusion = query.value("conclusion").toString(); + + result.append(basicInfo); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//核查数据管理-核查结果信息-核查项多功能校准源数据 +QList getCheckDataManageResultManageMult(QString equipment_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bescidc.id , bescidc.check_type ,bescidc.params ,bescidc.unit ,bescidc.frequency ,bescidc.check_point ,besci.check_date ,bescidc.urel ," + " bescidc.tfer ,bescidc.dccp ,bescidc.flit " + " FROM biz_equipment_standard_check_item_data_calibrator bescidc " + " LEFT JOIN biz_equipment_standard_check_info besci ON besci.item_category_id = bescidc.item_category_id " + " WHERE bescidc.equipment_id = :equipment_id "); + + // 将参数绑定到占位符 '1692796512381222914' + query.bindValue(":equipment_id", equipment_id); + if (query.exec()) { + while (query.next()) { + CheckDataManageResultManageMult dataCalibrator; + dataCalibrator.id = query.value("id").toString(); + dataCalibrator.check_type = query.value("check_type").toString(); + dataCalibrator.params = query.value("params").toString(); + dataCalibrator.unit = query.value("unit").toString(); + dataCalibrator.frequency = query.value("frequency").toString(); + dataCalibrator.check_point = query.value("check_point").toString(); + dataCalibrator.check_date = query.value("check_date").toString(); + dataCalibrator.urel = query.value("urel").toString(); + dataCalibrator.tfer = query.value("tfer").toString(); + dataCalibrator.dccp = query.value("dccp").toString(); + dataCalibrator.flit = query.value("flit").toString(); + + result.append(dataCalibrator); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.h b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h new file mode 100644 index 0000000..31a7ef3 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,49 @@ +#ifndef CHECK_DATA_MANAGE_SERVE_H +#define CHECK_DATA_MANAGE_SERVE_H + +#include +#include +#include +#include "QList" + +//核查数据管理 +class CheckData +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString meter_standard_name; + QString meter_standard_id; + QString create_user_name; + QString check_date; + QString dept_name; +}; +//核查数据管理-核查基本信息 +class CheckDataManageBasicInfo +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; + QString temperature; + QString humidity; + QString check_date; + QString check_address; + QString create_user_name; + QString conclusion; +}; + + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(); +}; + +#endif // CHECK_DATA_MANAGE_SERVE_H diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp new file mode 100644 index 0000000..9ff8610 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "createtasks.h" + +CreateTasks::CreateTasks() +{ + +} +QListCreateTasks::getCreateTaskList(){ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," + "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); + if (query.exec()) { + while (query.next()) { + CreateTaskList task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} + +QListCreateTasks::getCatTask(QString orderNo) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," + "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," + "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" + " WHERE bi.order_no = :order_no"); + + // 将参数绑定到占位符 + query.bindValue(":order_no", orderNo); + if (query.exec()) { + while (query.next()) { + CatTask task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.deliverer_tel = query.value("deliverer_tel").toString(); + task.undertaker_name = query.value("undertaker_name").toString(); + task.undertake_time = query.value("undertake_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + task.receive_illustrate = query.value("receive_illustrate").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + +QListCreateTasks::getCatTaskList(QString orderId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," + "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" + " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " + "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " + "WHERE br.order_id = :order_id"); + // 将参数绑定到占位符 + query.bindValue(":order_id", orderId); + if (query.exec()) { + while (query.next()) { + CatTaskList task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.appendix_descn = query.value("appendix_descn").toString(); + task.special_require = query.value("special_require").toString(); + task.measure_complete_time = query.value("measure_complete_time").toString(); + task.conclusion = query.value("conclusion").toString(); + task.limit_instruction = query.value("limit_instruction").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.h b/softwareDirectory/AutoVerScheme/create_tasks_serve.h new file mode 100644 index 0000000..b9c8011 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,45 @@ +#ifndef CREATETASKS_H +#define CREATETASKS_H +#include +#include +#include +#include "QList" +//创建任务单-首页 +class CreateTaskList +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString is_urgent; +}; +//创建任务单-查看任务单 +class CatTask +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString deliverer_tel; + QString undertaker_name; + QString undertake_time; + QString is_urgent; + QString receive_illustrate; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..a6b53a9 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "mytasks.h" + +MyTasks::MyTasks() +{ + +} +QList MyTasks::getMyTasks(QString id){ + QList result; + QSqlQuery query; + query.exec("SELECT " + "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," + "ei.manufacturer, bi.customer_name," + "dept.FULL_NAME, bi.require_over_time," + "bi.is_urgent FROM biz_business_order_info bi" + " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" + " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " + "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = :user_id"); + + // 将参数绑定到占位符 + query.bindValue(":user_id", id); +if (query.exec()) { + while (query.next()) { + MyTask task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.help_instruction = query.value("help_instruction").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.customer_name = query.value("customer_name").toString(); + task.FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } +} +else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.h b/softwareDirectory/AutoVerScheme/my_tasks_serve.h new file mode 100644 index 0000000..cba2a13 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.h @@ -0,0 +1,33 @@ +#ifndef MYTASKS_H +#define MYTASKS_H +#include +#include +#include +#include "QList" + +class MyTask +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString help_instruction; + QString manufacture_no; + QString manufacturer; + QString customer_name; + QString FULL_NAME; + QString require_over_time; + QString is_urgent; +}; + + + +class MyTasks +{ +public: + MyTasks(); + QList getMyTasks(QString id); + +}; + +#endif // MYTASKS_H diff --git a/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp new file mode 100644 index 0000000..ed5cade --- /dev/null +++ b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp @@ -0,0 +1,137 @@ +#include "tested_device_manage_serve.h" +#include +#include +#include +#include "QList" + +TestedDeviceManage::TestedDeviceManage() +{ + +} + // 被检设备管理 +QList TestedDeviceManage::getTestedDevice() +{ + QList result; + QSqlQuery query; + query.exec("SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," + "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = :id "); + if (query.exec()) { + while (query.next()) { + TestedDevice testedDevice; + testedDevice.id = query.value("id").toString(); + testedDevice.equipment_name = query.value("equipment_name").toString(); + testedDevice.model = query.value("model").toString(); + testedDevice.help_instruction = query.value("help_instruction").toString(); + testedDevice.manufacture_no = query.value("manufacture_no").toString(); + testedDevice.manufacturer = query.value("manufacturer").toString(); + testedDevice.FULL_NAME = query.value("FULL_NAME").toString(); + testedDevice.meter_identify = query.value("meter_identify").toString(); + testedDevice.check_cycle = query.value("check_cycle").toString(); + testedDevice.certificate_valid = query.value("certificate_valid").toString(); + + result.append(testedDevice); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + // 被检设备管理查看设备信息 +QList TestedDeviceManage::getTestedCatDevice(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," + "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = :id "); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + TestedCatDevice testedCatDevice; + testedCatDevice.equipment_name = query.value("equipment_name").toString(); + testedCatDevice.model = query.value("model").toString(); + testedCatDevice.help_instruction = query.value("help_instruction").toString(); + testedCatDevice.manufacture_no = query.value("manufacture_no").toString(); + testedCatDevice.product_country = query.value("product_country").toString(); + testedCatDevice.manufacturer = query.value("manufacturer").toString(); + testedCatDevice.product_date = query.value("product_date").toString(); + testedCatDevice.purchase_date = query.value("purchase_date").toString(); + testedCatDevice.unit_price = query.value("unit_price").toString(); + testedCatDevice.usage_status = query.value("usage_status").toString(); + testedCatDevice.quality_condition = query.value("quality_condition").toString(); + testedCatDevice.FULL_NAME = query.value("FULL_NAME").toString(); + testedCatDevice.category = query.value("category").toString(); + testedCatDevice.check_cycle = query.value("check_cycle").toString(); + testedCatDevice.level = query.value("level").toString(); + testedCatDevice.remark = query.value("remark").toString(); + + result.append(testedCatDevice); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//判断 哪个 装置表 +QList TestedDeviceManage::getJudgeCalibrationTable(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = :id "); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + JudgeCalibrationTable calibration; + calibration.item_category_id = query.value("item_category_id").toString(); + calibration.belong_standard_equipment = query.value("belong_standard_equipment").toString(); + result.append(calibration); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + //被检设备管理-检定项目及检定点-多功能校准源 +QList TestedDeviceManage::getVerMultiCal(QString itemId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " + " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = :itemId "); + // 将参数绑定到占位符 + query.bindValue(":itemId", itemId); + + if (query.exec()) { + while (query.next()) { + VerMultiCal calibration; + calibration.id = query.value("id").toString(); + calibration.params = query.value("params").toString(); + calibration.capacity = query.value("capacity").toString(); + calibration.unit = query.value("unit").toString(); + calibration.frequency = query.value("frequency").toString(); + calibration.range_range = query.value("range_range").toString(); + calibration.standard_value = query.value("standard_value").toString(); + calibration.resolution = query.value("resolution").toString(); + calibration.maximum_error = query.value("maximum_error").toString(); + calibration.error_param_a = query.value("error_param_a").toString(); + calibration.error_param_b = query.value("error_param_b").toString(); + + result.append(calibration); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp new file mode 100644 index 0000000..08ede8b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp @@ -0,0 +1,107 @@ +#include "check_data_manage_serve.h" + +Check_Data_Manage_Serve::Check_Data_Manage_Serve() +{ + +} + //核查数据管理 +QList Check_Data_Manage_Serve::getCheckData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," + " besci.create_user_name , besci.check_date , bei.dept_name " + " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id"); + if (query.exec()) { + while (query.next()) { + CheckData dataManage; + dataManage.id = query.value("id").toString(); + dataManage.equipment_name = query.value("equipment_name").toString(); + dataManage.model = query.value("model").toString(); + dataManage.manufacture_no = query.value("manufacture_no").toString(); + dataManage.meter_standard_name = query.value("meter_standard_name").toString(); + dataManage.meter_standard_id = query.value("meter_standard_id").toString(); + dataManage.create_user_name = query.value("create_user_name").toString(); + dataManage.check_date = query.value("check_date").toString(); + dataManage.dept_name = query.value("dept_name").toString(); + + result.append(dataManage); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //核查数据管理-核查基本信息 +QList Check_Data_Manage_Serve::getCheckDataManageBasicInfo(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," + " besci.check_address , besci.create_user_name , besci.conclusion " + "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " + " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" + " WHERE bei.id = :id "); + + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CheckDataManageBasicInfo basicInfo; + basicInfo.equipment_name = query.value("equipment_name").toString(); + basicInfo.model = query.value("model").toString(); + basicInfo.manufacture_no = query.value("manufacture_no").toString(); + basicInfo.manufacturer = query.value("manufacturer").toString(); + basicInfo.temperature = query.value("temperature").toString(); + basicInfo.humidity = query.value("humidity").toString(); + basicInfo.check_date = query.value("check_date").toString(); + basicInfo.check_address = query.value("check_address").toString(); + basicInfo.create_user_name = query.value("create_user_name").toString(); + basicInfo.conclusion = query.value("conclusion").toString(); + + result.append(basicInfo); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//核查数据管理-核查结果信息-核查项多功能校准源数据 +QList getCheckDataManageResultManageMult(QString equipment_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bescidc.id , bescidc.check_type ,bescidc.params ,bescidc.unit ,bescidc.frequency ,bescidc.check_point ,besci.check_date ,bescidc.urel ," + " bescidc.tfer ,bescidc.dccp ,bescidc.flit " + " FROM biz_equipment_standard_check_item_data_calibrator bescidc " + " LEFT JOIN biz_equipment_standard_check_info besci ON besci.item_category_id = bescidc.item_category_id " + " WHERE bescidc.equipment_id = :equipment_id "); + + // 将参数绑定到占位符 '1692796512381222914' + query.bindValue(":equipment_id", equipment_id); + if (query.exec()) { + while (query.next()) { + CheckDataManageResultManageMult dataCalibrator; + dataCalibrator.id = query.value("id").toString(); + dataCalibrator.check_type = query.value("check_type").toString(); + dataCalibrator.params = query.value("params").toString(); + dataCalibrator.unit = query.value("unit").toString(); + dataCalibrator.frequency = query.value("frequency").toString(); + dataCalibrator.check_point = query.value("check_point").toString(); + dataCalibrator.check_date = query.value("check_date").toString(); + dataCalibrator.urel = query.value("urel").toString(); + dataCalibrator.tfer = query.value("tfer").toString(); + dataCalibrator.dccp = query.value("dccp").toString(); + dataCalibrator.flit = query.value("flit").toString(); + + result.append(dataCalibrator); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.h b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h new file mode 100644 index 0000000..31a7ef3 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,49 @@ +#ifndef CHECK_DATA_MANAGE_SERVE_H +#define CHECK_DATA_MANAGE_SERVE_H + +#include +#include +#include +#include "QList" + +//核查数据管理 +class CheckData +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString meter_standard_name; + QString meter_standard_id; + QString create_user_name; + QString check_date; + QString dept_name; +}; +//核查数据管理-核查基本信息 +class CheckDataManageBasicInfo +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; + QString temperature; + QString humidity; + QString check_date; + QString check_address; + QString create_user_name; + QString conclusion; +}; + + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(); +}; + +#endif // CHECK_DATA_MANAGE_SERVE_H diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp new file mode 100644 index 0000000..9ff8610 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "createtasks.h" + +CreateTasks::CreateTasks() +{ + +} +QListCreateTasks::getCreateTaskList(){ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," + "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); + if (query.exec()) { + while (query.next()) { + CreateTaskList task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} + +QListCreateTasks::getCatTask(QString orderNo) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," + "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," + "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" + " WHERE bi.order_no = :order_no"); + + // 将参数绑定到占位符 + query.bindValue(":order_no", orderNo); + if (query.exec()) { + while (query.next()) { + CatTask task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.deliverer_tel = query.value("deliverer_tel").toString(); + task.undertaker_name = query.value("undertaker_name").toString(); + task.undertake_time = query.value("undertake_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + task.receive_illustrate = query.value("receive_illustrate").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + +QListCreateTasks::getCatTaskList(QString orderId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," + "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" + " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " + "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " + "WHERE br.order_id = :order_id"); + // 将参数绑定到占位符 + query.bindValue(":order_id", orderId); + if (query.exec()) { + while (query.next()) { + CatTaskList task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.appendix_descn = query.value("appendix_descn").toString(); + task.special_require = query.value("special_require").toString(); + task.measure_complete_time = query.value("measure_complete_time").toString(); + task.conclusion = query.value("conclusion").toString(); + task.limit_instruction = query.value("limit_instruction").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.h b/softwareDirectory/AutoVerScheme/create_tasks_serve.h new file mode 100644 index 0000000..b9c8011 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,45 @@ +#ifndef CREATETASKS_H +#define CREATETASKS_H +#include +#include +#include +#include "QList" +//创建任务单-首页 +class CreateTaskList +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString is_urgent; +}; +//创建任务单-查看任务单 +class CatTask +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString deliverer_tel; + QString undertaker_name; + QString undertake_time; + QString is_urgent; + QString receive_illustrate; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..a6b53a9 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "mytasks.h" + +MyTasks::MyTasks() +{ + +} +QList MyTasks::getMyTasks(QString id){ + QList result; + QSqlQuery query; + query.exec("SELECT " + "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," + "ei.manufacturer, bi.customer_name," + "dept.FULL_NAME, bi.require_over_time," + "bi.is_urgent FROM biz_business_order_info bi" + " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" + " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " + "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = :user_id"); + + // 将参数绑定到占位符 + query.bindValue(":user_id", id); +if (query.exec()) { + while (query.next()) { + MyTask task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.help_instruction = query.value("help_instruction").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.customer_name = query.value("customer_name").toString(); + task.FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } +} +else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.h b/softwareDirectory/AutoVerScheme/my_tasks_serve.h new file mode 100644 index 0000000..cba2a13 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.h @@ -0,0 +1,33 @@ +#ifndef MYTASKS_H +#define MYTASKS_H +#include +#include +#include +#include "QList" + +class MyTask +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString help_instruction; + QString manufacture_no; + QString manufacturer; + QString customer_name; + QString FULL_NAME; + QString require_over_time; + QString is_urgent; +}; + + + +class MyTasks +{ +public: + MyTasks(); + QList getMyTasks(QString id); + +}; + +#endif // MYTASKS_H diff --git a/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp new file mode 100644 index 0000000..ed5cade --- /dev/null +++ b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp @@ -0,0 +1,137 @@ +#include "tested_device_manage_serve.h" +#include +#include +#include +#include "QList" + +TestedDeviceManage::TestedDeviceManage() +{ + +} + // 被检设备管理 +QList TestedDeviceManage::getTestedDevice() +{ + QList result; + QSqlQuery query; + query.exec("SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," + "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = :id "); + if (query.exec()) { + while (query.next()) { + TestedDevice testedDevice; + testedDevice.id = query.value("id").toString(); + testedDevice.equipment_name = query.value("equipment_name").toString(); + testedDevice.model = query.value("model").toString(); + testedDevice.help_instruction = query.value("help_instruction").toString(); + testedDevice.manufacture_no = query.value("manufacture_no").toString(); + testedDevice.manufacturer = query.value("manufacturer").toString(); + testedDevice.FULL_NAME = query.value("FULL_NAME").toString(); + testedDevice.meter_identify = query.value("meter_identify").toString(); + testedDevice.check_cycle = query.value("check_cycle").toString(); + testedDevice.certificate_valid = query.value("certificate_valid").toString(); + + result.append(testedDevice); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + // 被检设备管理查看设备信息 +QList TestedDeviceManage::getTestedCatDevice(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," + "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = :id "); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + TestedCatDevice testedCatDevice; + testedCatDevice.equipment_name = query.value("equipment_name").toString(); + testedCatDevice.model = query.value("model").toString(); + testedCatDevice.help_instruction = query.value("help_instruction").toString(); + testedCatDevice.manufacture_no = query.value("manufacture_no").toString(); + testedCatDevice.product_country = query.value("product_country").toString(); + testedCatDevice.manufacturer = query.value("manufacturer").toString(); + testedCatDevice.product_date = query.value("product_date").toString(); + testedCatDevice.purchase_date = query.value("purchase_date").toString(); + testedCatDevice.unit_price = query.value("unit_price").toString(); + testedCatDevice.usage_status = query.value("usage_status").toString(); + testedCatDevice.quality_condition = query.value("quality_condition").toString(); + testedCatDevice.FULL_NAME = query.value("FULL_NAME").toString(); + testedCatDevice.category = query.value("category").toString(); + testedCatDevice.check_cycle = query.value("check_cycle").toString(); + testedCatDevice.level = query.value("level").toString(); + testedCatDevice.remark = query.value("remark").toString(); + + result.append(testedCatDevice); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//判断 哪个 装置表 +QList TestedDeviceManage::getJudgeCalibrationTable(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = :id "); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + JudgeCalibrationTable calibration; + calibration.item_category_id = query.value("item_category_id").toString(); + calibration.belong_standard_equipment = query.value("belong_standard_equipment").toString(); + result.append(calibration); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + //被检设备管理-检定项目及检定点-多功能校准源 +QList TestedDeviceManage::getVerMultiCal(QString itemId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " + " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = :itemId "); + // 将参数绑定到占位符 + query.bindValue(":itemId", itemId); + + if (query.exec()) { + while (query.next()) { + VerMultiCal calibration; + calibration.id = query.value("id").toString(); + calibration.params = query.value("params").toString(); + calibration.capacity = query.value("capacity").toString(); + calibration.unit = query.value("unit").toString(); + calibration.frequency = query.value("frequency").toString(); + calibration.range_range = query.value("range_range").toString(); + calibration.standard_value = query.value("standard_value").toString(); + calibration.resolution = query.value("resolution").toString(); + calibration.maximum_error = query.value("maximum_error").toString(); + calibration.error_param_a = query.value("error_param_a").toString(); + calibration.error_param_b = query.value("error_param_b").toString(); + + result.append(calibration); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + diff --git a/softwareDirectory/AutoVerScheme/tested_device_manage_serve.h b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.h new file mode 100644 index 0000000..cfa71ee --- /dev/null +++ b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.h @@ -0,0 +1,80 @@ +#ifndef TESTEDDEVICEMANAGE_H +#define TESTEDDEVICEMANAGE_H +#include +#include +#include +#include "QList" +//被检设备管理 +class TestedDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString help_instruction; + QString manufacture_no; + QString manufacturer; + QString FULL_NAME; + QString meter_identify; + QString check_cycle; + QString certificate_valid; +}; +//被检设备管理-查看设备 +class TestedCatDevice +{ +public: + QString equipment_name; + QString model; + QString help_instruction; + QString manufacture_no; + QString product_country; + QString manufacturer; + QString product_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_condition; + QString FULL_NAME; + QString category; + QString check_cycle; + QString level; + QString remark; +}; +//判断 哪个 装置表 +class JudgeCalibrationTable +{ +public: + QString item_category_id; + QString belong_standard_equipment; +}; + + +//被检设备管理-检定项目及检定点-检定项多功能校准源 +class VerMultiCal +{ +public: + QString id; + QString params; + QString capacity; + QString unit; + QString frequency; + QString range_range; + QString standard_value; + QString resolution; + QString maximum_error; + QString error_param_a; + QString error_param_b; +}; + + +class TestedDeviceManage +{ +public: + TestedDeviceManage(); + QList getTestedDevice(); + QList getTestedCatDevice(QString id); + QList getJudgeCalibrationTable(QString id); + QList getVerMultiCal(QString itemId); +}; + +#endif // TESTEDDEVICEMANAGE_H diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp new file mode 100644 index 0000000..08ede8b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp @@ -0,0 +1,107 @@ +#include "check_data_manage_serve.h" + +Check_Data_Manage_Serve::Check_Data_Manage_Serve() +{ + +} + //核查数据管理 +QList Check_Data_Manage_Serve::getCheckData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," + " besci.create_user_name , besci.check_date , bei.dept_name " + " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id"); + if (query.exec()) { + while (query.next()) { + CheckData dataManage; + dataManage.id = query.value("id").toString(); + dataManage.equipment_name = query.value("equipment_name").toString(); + dataManage.model = query.value("model").toString(); + dataManage.manufacture_no = query.value("manufacture_no").toString(); + dataManage.meter_standard_name = query.value("meter_standard_name").toString(); + dataManage.meter_standard_id = query.value("meter_standard_id").toString(); + dataManage.create_user_name = query.value("create_user_name").toString(); + dataManage.check_date = query.value("check_date").toString(); + dataManage.dept_name = query.value("dept_name").toString(); + + result.append(dataManage); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //核查数据管理-核查基本信息 +QList Check_Data_Manage_Serve::getCheckDataManageBasicInfo(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," + " besci.check_address , besci.create_user_name , besci.conclusion " + "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " + " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" + " WHERE bei.id = :id "); + + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CheckDataManageBasicInfo basicInfo; + basicInfo.equipment_name = query.value("equipment_name").toString(); + basicInfo.model = query.value("model").toString(); + basicInfo.manufacture_no = query.value("manufacture_no").toString(); + basicInfo.manufacturer = query.value("manufacturer").toString(); + basicInfo.temperature = query.value("temperature").toString(); + basicInfo.humidity = query.value("humidity").toString(); + basicInfo.check_date = query.value("check_date").toString(); + basicInfo.check_address = query.value("check_address").toString(); + basicInfo.create_user_name = query.value("create_user_name").toString(); + basicInfo.conclusion = query.value("conclusion").toString(); + + result.append(basicInfo); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//核查数据管理-核查结果信息-核查项多功能校准源数据 +QList getCheckDataManageResultManageMult(QString equipment_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bescidc.id , bescidc.check_type ,bescidc.params ,bescidc.unit ,bescidc.frequency ,bescidc.check_point ,besci.check_date ,bescidc.urel ," + " bescidc.tfer ,bescidc.dccp ,bescidc.flit " + " FROM biz_equipment_standard_check_item_data_calibrator bescidc " + " LEFT JOIN biz_equipment_standard_check_info besci ON besci.item_category_id = bescidc.item_category_id " + " WHERE bescidc.equipment_id = :equipment_id "); + + // 将参数绑定到占位符 '1692796512381222914' + query.bindValue(":equipment_id", equipment_id); + if (query.exec()) { + while (query.next()) { + CheckDataManageResultManageMult dataCalibrator; + dataCalibrator.id = query.value("id").toString(); + dataCalibrator.check_type = query.value("check_type").toString(); + dataCalibrator.params = query.value("params").toString(); + dataCalibrator.unit = query.value("unit").toString(); + dataCalibrator.frequency = query.value("frequency").toString(); + dataCalibrator.check_point = query.value("check_point").toString(); + dataCalibrator.check_date = query.value("check_date").toString(); + dataCalibrator.urel = query.value("urel").toString(); + dataCalibrator.tfer = query.value("tfer").toString(); + dataCalibrator.dccp = query.value("dccp").toString(); + dataCalibrator.flit = query.value("flit").toString(); + + result.append(dataCalibrator); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.h b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h new file mode 100644 index 0000000..31a7ef3 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,49 @@ +#ifndef CHECK_DATA_MANAGE_SERVE_H +#define CHECK_DATA_MANAGE_SERVE_H + +#include +#include +#include +#include "QList" + +//核查数据管理 +class CheckData +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString meter_standard_name; + QString meter_standard_id; + QString create_user_name; + QString check_date; + QString dept_name; +}; +//核查数据管理-核查基本信息 +class CheckDataManageBasicInfo +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; + QString temperature; + QString humidity; + QString check_date; + QString check_address; + QString create_user_name; + QString conclusion; +}; + + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(); +}; + +#endif // CHECK_DATA_MANAGE_SERVE_H diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp new file mode 100644 index 0000000..9ff8610 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "createtasks.h" + +CreateTasks::CreateTasks() +{ + +} +QListCreateTasks::getCreateTaskList(){ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," + "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); + if (query.exec()) { + while (query.next()) { + CreateTaskList task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} + +QListCreateTasks::getCatTask(QString orderNo) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," + "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," + "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" + " WHERE bi.order_no = :order_no"); + + // 将参数绑定到占位符 + query.bindValue(":order_no", orderNo); + if (query.exec()) { + while (query.next()) { + CatTask task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.deliverer_tel = query.value("deliverer_tel").toString(); + task.undertaker_name = query.value("undertaker_name").toString(); + task.undertake_time = query.value("undertake_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + task.receive_illustrate = query.value("receive_illustrate").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + +QListCreateTasks::getCatTaskList(QString orderId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," + "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" + " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " + "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " + "WHERE br.order_id = :order_id"); + // 将参数绑定到占位符 + query.bindValue(":order_id", orderId); + if (query.exec()) { + while (query.next()) { + CatTaskList task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.appendix_descn = query.value("appendix_descn").toString(); + task.special_require = query.value("special_require").toString(); + task.measure_complete_time = query.value("measure_complete_time").toString(); + task.conclusion = query.value("conclusion").toString(); + task.limit_instruction = query.value("limit_instruction").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.h b/softwareDirectory/AutoVerScheme/create_tasks_serve.h new file mode 100644 index 0000000..b9c8011 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,45 @@ +#ifndef CREATETASKS_H +#define CREATETASKS_H +#include +#include +#include +#include "QList" +//创建任务单-首页 +class CreateTaskList +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString is_urgent; +}; +//创建任务单-查看任务单 +class CatTask +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString deliverer_tel; + QString undertaker_name; + QString undertake_time; + QString is_urgent; + QString receive_illustrate; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..a6b53a9 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "mytasks.h" + +MyTasks::MyTasks() +{ + +} +QList MyTasks::getMyTasks(QString id){ + QList result; + QSqlQuery query; + query.exec("SELECT " + "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," + "ei.manufacturer, bi.customer_name," + "dept.FULL_NAME, bi.require_over_time," + "bi.is_urgent FROM biz_business_order_info bi" + " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" + " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " + "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = :user_id"); + + // 将参数绑定到占位符 + query.bindValue(":user_id", id); +if (query.exec()) { + while (query.next()) { + MyTask task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.help_instruction = query.value("help_instruction").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.customer_name = query.value("customer_name").toString(); + task.FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } +} +else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.h b/softwareDirectory/AutoVerScheme/my_tasks_serve.h new file mode 100644 index 0000000..cba2a13 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.h @@ -0,0 +1,33 @@ +#ifndef MYTASKS_H +#define MYTASKS_H +#include +#include +#include +#include "QList" + +class MyTask +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString help_instruction; + QString manufacture_no; + QString manufacturer; + QString customer_name; + QString FULL_NAME; + QString require_over_time; + QString is_urgent; +}; + + + +class MyTasks +{ +public: + MyTasks(); + QList getMyTasks(QString id); + +}; + +#endif // MYTASKS_H diff --git a/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp new file mode 100644 index 0000000..ed5cade --- /dev/null +++ b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp @@ -0,0 +1,137 @@ +#include "tested_device_manage_serve.h" +#include +#include +#include +#include "QList" + +TestedDeviceManage::TestedDeviceManage() +{ + +} + // 被检设备管理 +QList TestedDeviceManage::getTestedDevice() +{ + QList result; + QSqlQuery query; + query.exec("SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," + "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = :id "); + if (query.exec()) { + while (query.next()) { + TestedDevice testedDevice; + testedDevice.id = query.value("id").toString(); + testedDevice.equipment_name = query.value("equipment_name").toString(); + testedDevice.model = query.value("model").toString(); + testedDevice.help_instruction = query.value("help_instruction").toString(); + testedDevice.manufacture_no = query.value("manufacture_no").toString(); + testedDevice.manufacturer = query.value("manufacturer").toString(); + testedDevice.FULL_NAME = query.value("FULL_NAME").toString(); + testedDevice.meter_identify = query.value("meter_identify").toString(); + testedDevice.check_cycle = query.value("check_cycle").toString(); + testedDevice.certificate_valid = query.value("certificate_valid").toString(); + + result.append(testedDevice); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + // 被检设备管理查看设备信息 +QList TestedDeviceManage::getTestedCatDevice(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," + "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = :id "); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + TestedCatDevice testedCatDevice; + testedCatDevice.equipment_name = query.value("equipment_name").toString(); + testedCatDevice.model = query.value("model").toString(); + testedCatDevice.help_instruction = query.value("help_instruction").toString(); + testedCatDevice.manufacture_no = query.value("manufacture_no").toString(); + testedCatDevice.product_country = query.value("product_country").toString(); + testedCatDevice.manufacturer = query.value("manufacturer").toString(); + testedCatDevice.product_date = query.value("product_date").toString(); + testedCatDevice.purchase_date = query.value("purchase_date").toString(); + testedCatDevice.unit_price = query.value("unit_price").toString(); + testedCatDevice.usage_status = query.value("usage_status").toString(); + testedCatDevice.quality_condition = query.value("quality_condition").toString(); + testedCatDevice.FULL_NAME = query.value("FULL_NAME").toString(); + testedCatDevice.category = query.value("category").toString(); + testedCatDevice.check_cycle = query.value("check_cycle").toString(); + testedCatDevice.level = query.value("level").toString(); + testedCatDevice.remark = query.value("remark").toString(); + + result.append(testedCatDevice); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//判断 哪个 装置表 +QList TestedDeviceManage::getJudgeCalibrationTable(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = :id "); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + JudgeCalibrationTable calibration; + calibration.item_category_id = query.value("item_category_id").toString(); + calibration.belong_standard_equipment = query.value("belong_standard_equipment").toString(); + result.append(calibration); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + //被检设备管理-检定项目及检定点-多功能校准源 +QList TestedDeviceManage::getVerMultiCal(QString itemId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " + " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = :itemId "); + // 将参数绑定到占位符 + query.bindValue(":itemId", itemId); + + if (query.exec()) { + while (query.next()) { + VerMultiCal calibration; + calibration.id = query.value("id").toString(); + calibration.params = query.value("params").toString(); + calibration.capacity = query.value("capacity").toString(); + calibration.unit = query.value("unit").toString(); + calibration.frequency = query.value("frequency").toString(); + calibration.range_range = query.value("range_range").toString(); + calibration.standard_value = query.value("standard_value").toString(); + calibration.resolution = query.value("resolution").toString(); + calibration.maximum_error = query.value("maximum_error").toString(); + calibration.error_param_a = query.value("error_param_a").toString(); + calibration.error_param_b = query.value("error_param_b").toString(); + + result.append(calibration); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + diff --git a/softwareDirectory/AutoVerScheme/tested_device_manage_serve.h b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.h new file mode 100644 index 0000000..cfa71ee --- /dev/null +++ b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.h @@ -0,0 +1,80 @@ +#ifndef TESTEDDEVICEMANAGE_H +#define TESTEDDEVICEMANAGE_H +#include +#include +#include +#include "QList" +//被检设备管理 +class TestedDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString help_instruction; + QString manufacture_no; + QString manufacturer; + QString FULL_NAME; + QString meter_identify; + QString check_cycle; + QString certificate_valid; +}; +//被检设备管理-查看设备 +class TestedCatDevice +{ +public: + QString equipment_name; + QString model; + QString help_instruction; + QString manufacture_no; + QString product_country; + QString manufacturer; + QString product_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_condition; + QString FULL_NAME; + QString category; + QString check_cycle; + QString level; + QString remark; +}; +//判断 哪个 装置表 +class JudgeCalibrationTable +{ +public: + QString item_category_id; + QString belong_standard_equipment; +}; + + +//被检设备管理-检定项目及检定点-检定项多功能校准源 +class VerMultiCal +{ +public: + QString id; + QString params; + QString capacity; + QString unit; + QString frequency; + QString range_range; + QString standard_value; + QString resolution; + QString maximum_error; + QString error_param_a; + QString error_param_b; +}; + + +class TestedDeviceManage +{ +public: + TestedDeviceManage(); + QList getTestedDevice(); + QList getTestedCatDevice(QString id); + QList getJudgeCalibrationTable(QString id); + QList getVerMultiCal(QString itemId); +}; + +#endif // TESTEDDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/verification_data_management_serve.cpp b/softwareDirectory/AutoVerScheme/verification_data_management_serve.cpp new file mode 100644 index 0000000..0f6b2af --- /dev/null +++ b/softwareDirectory/AutoVerScheme/verification_data_management_serve.cpp @@ -0,0 +1,122 @@ +#include "verification_data_management_serve.h" + +Verification_Data_Management_Serve::Verification_Data_Management_Serve() +{ + +} + //检定数据管理 +QList Verification_Data_Management_Serve::getVerificationData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," + "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," + "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " + "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " + " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " + " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); + + if (query.exec()) { + while (query.next()) { + VerificationData verificationData; + verificationData.id = query.value("id").toString(); + verificationData.sample_name = query.value("sample_name").toString(); + verificationData.model = query.value("model").toString(); + verificationData.help_instruction = query.value("help_instruction").toString(); + verificationData.manufacture_no = query.value("manufacture_no").toString(); + verificationData.manufacturer = query.value("manufacturer").toString(); + verificationData.FULL_NAME = query.value("FULL_NAME").toString(); + verificationData.NAME = query.value("NAME").toString(); + verificationData.trace_date = query.value("trace_date").toString(); + verificationData.measure_valid_date = query.value("measure_valid_date").toString(); + verificationData.meter_identify = query.value("meter_identify").toString(); + verificationData.restriction_instruction = query.value("restriction_instruction").toString(); + + result.append(verificationData); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//检定数据管理-检定基本信息 +QList Verification_Data_Management_Serve::getVerificationBasicDataDetails(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," + " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," + "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " + "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " + " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " + " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " + " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " + " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = :id "); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + VerificationBasicDataDetails dataDetails; + dataDetails.sample_name = query.value("sample_name").toString(); + dataDetails.model = query.value("model").toString(); + dataDetails.help_instruction = query.value("help_instruction").toString(); + dataDetails.manufacture_no = query.value("manufacture_no").toString(); + dataDetails.manufacturer = query.value("manufacturer").toString(); + dataDetails.customer_name = query.value("customer_name").toString(); + dataDetails.trace_date = query.value("trace_date").toString(); + dataDetails.temperature = query.value("temperature").toString(); + dataDetails.humidity = query.value("humidity").toString(); + dataDetails.measure_address = query.value("measure_address").toString(); + dataDetails.measure_valid_date = query.value("measure_valid_date").toString(); + dataDetails.based_documents = query.value("based_documents").toString(); + dataDetails.NAME = query.value("NAME").toString(); + dataDetails.conclusion = query.value("conclusion").toString(); + dataDetails.restriction_instruction = query.value("restriction_instruction").toString(); + + result.append(dataDetails); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //检定数据管理-检定结果信息 +QList Verification_Data_Management_Serve::getVerificationResultData(QString sampleId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," + " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " + " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " + " FROM biz_business_device_measure_item_data_calibrator bbdmidc " + " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " + "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " + " WHERE sample_id = :sampleId )"); + // 将参数绑定到占位符 + query.bindValue(":sampleId", sampleId); + if (query.exec()) { + while (query.next()) { + VerificationResultData resultData; + resultData.id = query.value("id").toString(); + resultData.params = query.value("params").toString(); + resultData.capacity = query.value("capacity").toString(); + resultData.unit = query.value("unit").toString(); + resultData.frequency = query.value("frequency").toString(); + resultData.range_range = query.value("range_range").toString(); + resultData.standard_value = query.value("standard_value").toString(); + resultData.resolution = query.value("resolution").toString(); + resultData.maximum_error = query.value("maximum_error").toString(); + resultData.error_param_a = query.value("error_param_a").toString(); + resultData.error_param_b = query.value("error_param_b").toString(); + resultData.other_outcome = query.value("other_outcome").toString(); + + result.append(resultData); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx deleted file mode 100644 index ecc572d..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/1f2de249-507a-4193-bb5e-a27b51b0bdff.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx deleted file mode 100644 index 0dedb4c..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/6c4c12f4-35ef-482c-878f-a25767c83e59.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx b/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx deleted file mode 100644 index a9a7983..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/FileContentIndex/9226c7b2-47bf-4919-8404-6e8ee7697905.vsidx +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo b/InformationManger/sloveCh/.vs/sloveCh/v17/.suo deleted file mode 100644 index 683ac0a..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/.suo +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db deleted file mode 100644 index e68f0bf..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm deleted file mode 100644 index 334be70..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-shm +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal deleted file mode 100644 index e69de29..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.db-wal +++ /dev/null diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb b/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb deleted file mode 100644 index 38466bd..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Browse.VC.opendb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db b/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db deleted file mode 100644 index 3bf77f6..0000000 --- a/InformationManger/sloveCh/.vs/sloveCh/v17/Solution.VC.db +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" "b/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" deleted file mode 100644 index d4af077..0000000 --- "a/InformationManger/sloveCh/.vs/sloveCh/v17/ipch/AutoPCH/d690784fcc4bc6b7/\346\272\220.ipch" +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libcrypto-1_1-x64.dll b/InformationManger/sloveCh/libcrypto-1_1-x64.dll deleted file mode 100644 index b7deec6..0000000 --- a/InformationManger/sloveCh/libcrypto-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/libssl-1_1-x64.dll b/InformationManger/sloveCh/libssl-1_1-x64.dll deleted file mode 100644 index 336d41c..0000000 --- a/InformationManger/sloveCh/libssl-1_1-x64.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll b/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll deleted file mode 100644 index c59319b..0000000 --- a/InformationManger/sloveCh/mysqlcppconn-9-vs14.dll +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/sloveCh.sln b/InformationManger/sloveCh/sloveCh.sln deleted file mode 100644 index ee289d2..0000000 --- a/InformationManger/sloveCh/sloveCh.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34511.84 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sloveCh", "sloveCh.vcxproj", "{66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.ActiveCfg = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x64.Build.0 = Debug|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.ActiveCfg = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Debug|x86.Build.0 = Debug|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.ActiveCfg = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x64.Build.0 = Release|x64 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.ActiveCfg = Release|Win32 - {66AD8ABE-4C41-4D1F-83C5-9F032AB6FB78}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A405DE7F-B87B-42A4-9F55-9A9CB8148F10} - EndGlobalSection -EndGlobal diff --git a/InformationManger/sloveCh/sloveCh.vcxproj b/InformationManger/sloveCh/sloveCh.vcxproj deleted file mode 100644 index 8073f07..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {66ad8abe-4c41-4d1f-83c5-9f032ab6fb78} - sloveCh - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\include;%(AdditionalIncludeDirectories) - - - Console - true - D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\vs14\debug;D:\work\mysql-connector-c++-8.0.32-winx64-debug\mysql-connector-c++-8.0.32-winx64\lib64\debug;%(AdditionalLibraryDirectories) - mysqlcppconn.lib;%(AdditionalDependencies) - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.filters b/InformationManger/sloveCh/sloveCh.vcxproj.filters deleted file mode 100644 index b88b996..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/sloveCh.vcxproj.user b/InformationManger/sloveCh/sloveCh.vcxproj.user deleted file mode 100644 index 0f14913..0000000 --- a/InformationManger/sloveCh/sloveCh.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe deleted file mode 100644 index 77481bc..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe b/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe deleted file mode 100644 index 2b46ff4..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe - - - - - - \ No newline at end of file diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk b/InformationManger/sloveCh/x64/Debug/sloveCh.ilk deleted file mode 100644 index 139ef48..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.ilk +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.log b/InformationManger/sloveCh/x64/Debug/sloveCh.log deleted file mode 100644 index ca6b526..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.log +++ /dev/null @@ -1,2 +0,0 @@ - 源.cpp - sloveCh.vcxproj -> D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb b/InformationManger/sloveCh/x64/Debug/sloveCh.pdb deleted file mode 100644 index 134280d..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.pdb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog deleted file mode 100644 index 8ff4d24..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog deleted file mode 100644 index 15d8d0b..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog deleted file mode 100644 index 1d9f931..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/CL.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog deleted file mode 100644 index 81a2457..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/Cl.items.tlog +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\源.cpp;D:\work\code\C++Demo\sloveCh\x64\Debug\源.obj diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog deleted file mode 100644 index 6a12ff2..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.command.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog deleted file mode 100644 index deb2a11..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.read.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog deleted file mode 100644 index 9c50e46..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/link.write.1.tlog +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate b/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate deleted file mode 100644 index fdbb12a..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.tlog/sloveCh.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: -Debug|x64|D:\work\code\C++Demo\sloveCh\| diff --git a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt b/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 91239d5..0000000 --- a/InformationManger/sloveCh/x64/Debug/sloveCh.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -D:\work\code\C++Demo\sloveCh\x64\Debug\sloveCh.exe diff --git a/InformationManger/sloveCh/x64/Debug/vc143.idb b/InformationManger/sloveCh/x64/Debug/vc143.idb deleted file mode 100644 index cd6197b..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.idb +++ /dev/null Binary files differ diff --git a/InformationManger/sloveCh/x64/Debug/vc143.pdb b/InformationManger/sloveCh/x64/Debug/vc143.pdb deleted file mode 100644 index dc26c78..0000000 --- a/InformationManger/sloveCh/x64/Debug/vc143.pdb +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" "b/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" deleted file mode 100644 index b68db8f..0000000 --- "a/InformationManger/sloveCh/x64/Debug/\346\272\220.obj" +++ /dev/null Binary files differ diff --git "a/InformationManger/sloveCh/\346\272\220.cpp" "b/InformationManger/sloveCh/\346\272\220.cpp" deleted file mode 100644 index 58fe221..0000000 --- "a/InformationManger/sloveCh/\346\272\220.cpp" +++ /dev/null @@ -1,1203 +0,0 @@ -#include -#include -#include - - -//�������� -struct Dept { - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -// �ҵ����� -struct MyTasks -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string require_over_time; - std::string is_urgent; -}; -//���������б� -struct CreateTaskList -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string is_urgent; -}; -//�鿴���� -struct CatTask -{ - std::string id; - std::string order_no; - std::string customer_name; - std::string DEPT_FULL_NAME; - std::string require_over_time; - std::string deliverer; - std::string deliverer_tel; - std::string undertaker_name; - std::string undertake_time; - std::string is_urgent; - std::string receive_illustrate; -}; -//�鿴����-�����б� -struct CatTaskList -{ - std::string id; - std::string sample_name; - std::string sample_model; - std::string manufacture_no; - std::string manufacturer; - std::string appendix_descn; - std::string special_require; - std::string measure_complete_time; - std::string conclusion; - std::string limit_instruction; -}; -//��׼�豸���� -struct BizDeviceManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; -}; -//��׼�豸����-�鿴�豸��Ϣ -struct CatDeviceInfor -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string measure_valid_date; - std::string product_country; - std::string manufacturer; - std::string produce_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_status; - std::string dept_name; - std::string director_name; - std::string supplier_name; - std::string location; - std::string type; - std::string standard_type; - std::string category; - std::string level; - std::string measure_cycle; - std::string unpack_record_name; - std::string remark; -}; -//��׼�豸����-�˲���Ŀ���˲��-ֱ����ѹ��Դ�춨װ�� -struct CheckDCPower -{ - std::string id; - std::string params; - std::string check_point; - std::string unit; - std::string resolution; - std::string urel; - std::string check_type; - std::string datum_point; - std::string cycle_number; - std::string resistance_value; - std::string resistance_value_unit; - std::string remark; -}; -//�����豸����- -struct TestedDevice -{ - std::string id; - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string FULL_NAME; - std::string meter_identify; - std::string check_cycle; - std::string certificate_valid; -}; -//�����豸����-�鿴�豸 -struct TestedCatDevice -{ - std::string equipment_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string product_country; - std::string manufacturer; - std::string product_date; - std::string purchase_date; - std::string unit_price; - std::string usage_status; - std::string quality_condition; - std::string FULL_NAME; - std::string category; - std::string check_cycle; - std::string level; - std::string remark; -}; -//�����豸����-�춨��Ŀ���춨��-�춨��๦��У׼Դ -struct VerificationMultifunctionalCalibration -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; -}; -//�ж�װ�ñ� -struct JudgeCalibrationTable -{ - std::string item_category_id; - std::string belong_standard_equipment; -}; - -//�춨���ݹ��� -struct VerificationDataManagement -{ - std::string id; - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string FULL_NAME; - std::string NAME; - std::string trace_date; - std::string measure_valid_date; - std::string meter_identify; - std::string restriction_instruction; -}; -//�춨���ݹ���-�춨������Ϣ -struct VerificationBasicDataDetails -{ - std::string sample_name; - std::string model; - std::string help_instruction; - std::string manufacture_no; - std::string manufacturer; - std::string customer_name; - std::string based_documents; - std::string trace_date; - std::string temperature; - std::string humidity; - std::string measure_address; - std::string measure_valid_date; - std::string NAME; - std::string conclusion; - std::string restriction_instruction; -}; - -//�춨���ݹ���-�춨�����Ϣ -struct VerificationResultData -{ - std::string id; - std::string params; - std::string capacity; - std::string unit; - std::string frequency; - std::string range_range; - std::string standard_value; - std::string resolution; - std::string maximum_error; - std::string error_param_a; - std::string error_param_b; - std::string other_outcome; -}; -//�˲����ݹ��� -struct CheckDataManage -{ - std::string id; - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string meter_standard_name; - std::string meter_standard_id; - std::string create_user_name; - std::string check_date; - std::string dept_name; -}; -//�˲����ݹ���-�˲������Ϣ -struct CheckDataManageBasicInfo -{ - std::string equipment_name; - std::string model; - std::string manufacture_no; - std::string manufacturer; - std::string temperature; - std::string humidity; - std::string check_date; - std::string check_address; - std::string create_user_name; - std::string conclusion; -}; -//�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� -struct CheckDataManageResultManage -{ - std::string id; - std::string check_type; - std::string params; - std::string unit; - std::string frequency; - std::string check_point; - std::string check_date; - std::string urel; - std::string tfer; - std::string dccp; - std::string flit; -}; - - - - - -class MySQLConnector { -private: - sql::mysql::MySQL_Driver* driver; - sql::Connection* con; -public: - MySQLConnector(const std::string& host, const std::string& port,const std::string& user, const std::string& password, const std::string& database) { - driver = sql::mysql::get_mysql_driver_instance(); - con = driver->connect("tcp://" + host + ":"+ port, user, password); - con->setSchema(database); - con->setClientOption("character_set_results", "utf8mb4"); - - con->setClientOption("character_set_connection", "utf8mb4"); - - } - - ~MySQLConnector() { - delete con; - } - std::vector getAllData() { - std::vector result; - - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id ,br.sample_name , br.sample_model ,ei.help_instruction ,ei.manufacture_no ,ei.manufacturer ,bi.customer_name ,dept.FULL_NAME,bi.require_over_time ,bi.is_urgent FROM biz_business_order_info bi LEft JOIN biz_business_order_sample_relation br ON bi.id = br.order_id LEft JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEft JOIN sys_dept dept ON ei.dept_id = dept.ID LEft JOIN sys_user user ON user.ID = bi.create_user_id"); - - while (res->next()) { - Dept Dept; - Dept.id = res->getString("id"); - Dept.sample_name = res->getString("sample_name"); - Dept.sample_model = res->getString("sample_model"); - Dept.help_instruction = res->getString("help_instruction"); - Dept.manufacture_no = res->getString("manufacture_no"); - Dept.manufacturer = res->getString("manufacturer"); - Dept.customer_name = res->getString("customer_name"); - Dept.FULL_NAME = res->getString("FULL_NAME"); - Dept.require_over_time = res->getString("require_over_time"); - Dept.is_urgent = res->getString("is_urgent"); - result.push_back(Dept); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - std::vector getMyTasks() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT " - "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," - "ei.manufacturer, bi.customer_name," - "dept.FULL_NAME, bi.require_over_time," - "bi.is_urgent FROM biz_business_order_info bi" - " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" - " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " - "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = '1640229293790650370'"); - while (res->next()) { - MyTasks MyTasks; - MyTasks.id = res->getString("id"); - MyTasks.sample_name = res->getString("sample_name"); - MyTasks.sample_model = res->getString("sample_model"); - MyTasks.help_instruction = res->getString("help_instruction"); - MyTasks.manufacture_no = res->getString("manufacture_no"); - MyTasks.manufacturer = res->getString("manufacturer"); - MyTasks.customer_name = res->getString("customer_name"); - MyTasks.FULL_NAME = res->getString("FULL_NAME"); - MyTasks.require_over_time = res->getString("require_over_time"); - MyTasks.is_urgent = res->getString("is_urgent"); - result.push_back(MyTasks); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCreateTaskList() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," - "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); - while (res->next()) { - CreateTaskList CreateTaskList; - CreateTaskList.id = res->getString("id"); - CreateTaskList.order_no = res->getString("order_no"); - CreateTaskList.customer_name = res->getString("customer_name"); - CreateTaskList.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CreateTaskList.require_over_time = res->getString("require_over_time"); - CreateTaskList.deliverer = res->getString("deliverer"); - CreateTaskList.is_urgent = res->getString("is_urgent"); - result.push_back(CreateTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - - } - - std::vector getCatTask(std::string orderNo) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," - "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," - "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" - " WHERE bi.order_no = ?"); - // �󶨲��� - prepStmt->setString(1, orderNo); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTask CatTask; - CatTask.id = res->getString("id"); - CatTask.order_no = res->getString("order_no"); - CatTask.customer_name = res->getString("customer_name"); - CatTask.DEPT_FULL_NAME = res->getString("FULL_NAME"); - CatTask.require_over_time = res->getString("require_over_time"); - CatTask.deliverer = res->getString("deliverer"); - CatTask.deliverer_tel = res->getString("deliverer_tel"); - CatTask.undertaker_name = res->getString("undertaker_name"); - CatTask.undertake_time = res->getString("undertake_time"); - CatTask.is_urgent = res->getString("is_urgent"); - CatTask.receive_illustrate = res->getString("receive_illustrate"); - result.push_back(CatTask); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatTaskList(std::string orderId) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," - "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" - " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " - "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " - "WHERE br.order_id = ?;"); - // �󶨲��� - prepStmt->setString(1, orderId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatTaskList CatTaskList; - CatTaskList.id = res->getString("id"); - CatTaskList.sample_name = res->getString("sample_name"); - CatTaskList.sample_model = res->getString("sample_model"); - CatTaskList.manufacture_no = res->getString("manufacture_no"); - CatTaskList.manufacturer = res->getString("manufacturer"); - CatTaskList.appendix_descn = res->getString("appendix_descn"); - CatTaskList.special_require = res->getString("special_require"); - CatTaskList.measure_complete_time = res->getString("measure_complete_time"); - CatTaskList.conclusion = res->getString("conclusion"); - CatTaskList.limit_instruction = res->getString("limit_instruction"); - result.push_back(CatTaskList); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - - std::vector getBizDeviceManage() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); - while (res->next()) { - BizDeviceManage BizDeviceManage; - BizDeviceManage.id = res->getString("id"); - BizDeviceManage.equipment_name = res->getString("equipment_name"); - BizDeviceManage.model = res->getString("model"); - BizDeviceManage.manufacture_no = res->getString("manufacture_no"); - BizDeviceManage.manufacturer = res->getString("manufacturer"); - result.push_back(BizDeviceManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - std::vector getCatDeviceInfor(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," - "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " - "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " - "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CatDeviceInfor CatDeviceInfor; - //CatTaskList.id = res->getString("id"); - CatDeviceInfor.equipment_name = res->getString("equipment_name"); - CatDeviceInfor.model = res->getString("model"); - CatDeviceInfor.manufacture_no = res->getString("manufacture_no"); - CatDeviceInfor.measure_valid_date = res->getString("measure_valid_date"); - CatDeviceInfor.product_country = res->getString("product_country"); - CatDeviceInfor.manufacturer = res->getString("manufacturer"); - CatDeviceInfor.produce_date = res->getString("produce_date"); - CatDeviceInfor.purchase_date = res->getString("purchase_date"); - CatDeviceInfor.unit_price = res->getString("unit_price"); - CatDeviceInfor.usage_status = res->getString("usage_status"); - CatDeviceInfor.quality_status = res->getString("quality_status"); - CatDeviceInfor.dept_name = res->getString("dept_name"); - CatDeviceInfor.director_name = res->getString("director_name"); - CatDeviceInfor.supplier_name = res->getString("supplier_name"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.type = res->getString("type"); - CatDeviceInfor.location = res->getString("location"); - CatDeviceInfor.standard_type = res->getString("standard_type"); - CatDeviceInfor.category = res->getString("category"); - CatDeviceInfor.level = res->getString("level"); - CatDeviceInfor.measure_cycle = res->getString("measure_cycle"); - CatDeviceInfor.unpack_record_name = res->getString("unpack_record_name"); - CatDeviceInfor.remark = res->getString("remark"); - result.push_back(CatDeviceInfor); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //����id��ȡװ������ - std::string getApparatus(std::string id) { - std::string result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " - "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = ? )" - ); - - // ���ò��� - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - // ����Ƿ��ȡ������ - if (res->next()) { - // ��ȡstandard_name�ֶε�ֵ - result = res->getString("standard_name"); - } - else { - // ���û���ҵ���Ӧ��¼����������һ��Ĭ��ֵ�����׳��쳣 - result = "Not Found"; - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - //ֱ����ѹ��Դ�춨װ�� - std::vector getCheckDCPower(std::string item_category_id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" - ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = ?)"); - // �󶨲��� - prepStmt->setString(1, item_category_id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDCPower CheckDCPower; - //CatTaskList.id = res->getString("id"); - CheckDCPower.id = res->getString("id"); - CheckDCPower.params = res->getString("params"); - CheckDCPower.check_point = res->getString("check_point"); - CheckDCPower.unit = res->getString("unit"); - CheckDCPower.resolution = res->getString("resolution"); - CheckDCPower.urel = res->getString("urel"); - CheckDCPower.check_type = res->getString("check_type"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.cycle_number = res->getString("cycle_number"); - CheckDCPower.datum_point = res->getString("datum_point"); - CheckDCPower.resistance_value = res->getString("resistance_value"); - CheckDCPower.resistance_value_unit = res->getString("resistance_value_unit"); - CheckDCPower.remark = res->getString("remark"); - result.push_back(CheckDCPower); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸���� - std::vector getTestedDevice() { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT eei.id ,eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.manufacturer ,sys_dept.FULL_NAME ,eei.meter_identify ,eei.check_cycle ,eei.certificate_valid from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id"); - while (res->next()) { - TestedDevice TestedDevice; - TestedDevice.id = res->getString("id"); - TestedDevice.equipment_name = res->getString("equipment_name"); - TestedDevice.model = res->getString("model"); - TestedDevice.help_instruction = res->getString("help_instruction"); - TestedDevice.manufacture_no = res->getString("manufacture_no"); - TestedDevice.manufacturer = res->getString("manufacturer"); - TestedDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedDevice.meter_identify = res->getString("meter_identify"); - TestedDevice.check_cycle = res->getString("check_cycle"); - TestedDevice.certificate_valid = res->getString("certificate_valid"); - result.push_back(TestedDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - // �����豸����鿴�豸��Ϣ - std::vectorgetTestedCatDevice(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," - "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = ?"); - // �󶨲��� - prepStmt->setString(1, id); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - TestedCatDevice TestedCatDevice; - //CatTaskList.id = res->getString("id"); - TestedCatDevice.equipment_name = res->getString("equipment_name"); - TestedCatDevice.model = res->getString("model"); - TestedCatDevice.help_instruction = res->getString("help_instruction"); - TestedCatDevice.manufacture_no = res->getString("manufacture_no"); - TestedCatDevice.product_country = res->getString("product_country"); - TestedCatDevice.manufacturer = res->getString("manufacturer"); - TestedCatDevice.product_date = res->getString("product_date"); - TestedCatDevice.purchase_date = res->getString("purchase_date"); - TestedCatDevice.unit_price = res->getString("unit_price"); - TestedCatDevice.usage_status = res->getString("usage_status"); - TestedCatDevice.quality_condition = res->getString("quality_condition"); - TestedCatDevice.FULL_NAME = res->getString("FULL_NAME"); - TestedCatDevice.category = res->getString("category"); - TestedCatDevice.check_cycle = res->getString("check_cycle"); - TestedCatDevice.level = res->getString("level"); - TestedCatDevice.remark = res->getString("remark"); - result.push_back(TestedCatDevice); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�жϼ춨װ�������ű� �������豸id - std::vector getJudgeCalibrationTable(std::string id) - { - std::vector result; - try { - // ʹ��Ԥ�����PreparedStatement�Է�ֹSQLע�� - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = ?)" - ); - - // ���ò��� 1716997603953311746 - prepStmt->setString(1, id); - - // ִ�в�ѯ����ȡ����� - sql::ResultSet* res = prepStmt->executeQuery(); - - while (res->next()) { - JudgeCalibrationTable JudgeCalibrationTable; - //CatTaskList.id = res->getString("id"); - JudgeCalibrationTable.item_category_id = res->getString("item_category_id"); - JudgeCalibrationTable.belong_standard_equipment = res->getString("belong_standard_equipment"); - result.push_back(JudgeCalibrationTable); - } - - // �ͷ���Դ - delete res; - delete prepStmt; // ע������Ӧ����ɾ��PreparedStatement������Statement - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - // ������Ҫ��catch���д������ϸ�Ĵ���������������ԡ��ع������ - } - - return result; - } - - //�����豸����-�춨��Ŀ���춨��-�๦��У׼Դ - std::vector getVerificationMultifunctionalCalibration(std::string itemId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ?"); - // �󶨲��� '1717086652508487681' - prepStmt->setString(1, itemId); - - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationMultifunctionalCalibration VerificationMultifunctionalCalibration; - VerificationMultifunctionalCalibration.id = res->getString("id"); - VerificationMultifunctionalCalibration.params = res->getString("params"); - VerificationMultifunctionalCalibration.capacity = res->getString("capacity"); - VerificationMultifunctionalCalibration.unit = res->getString("unit"); - VerificationMultifunctionalCalibration.frequency = res->getString("frequency"); - VerificationMultifunctionalCalibration.range_range = res->getString("range_range"); - VerificationMultifunctionalCalibration.standard_value = res->getString("standard_value"); - VerificationMultifunctionalCalibration.resolution = res->getString("resolution"); - VerificationMultifunctionalCalibration.maximum_error = res->getString("maximum_error"); - VerificationMultifunctionalCalibration.error_param_a = res->getString("error_param_a"); - VerificationMultifunctionalCalibration.error_param_b = res->getString("error_param_b"); - result.push_back(VerificationMultifunctionalCalibration); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ��� - std::vector getVerificationDataManagement() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," - "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," - "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); - while (res->next()) { - VerificationDataManagement VerificationDataManagement; - VerificationDataManagement.id = res->getString("id"); - VerificationDataManagement.sample_name = res->getString("sample_name"); - VerificationDataManagement.model = res->getString("model"); - VerificationDataManagement.help_instruction = res->getString("help_instruction"); - VerificationDataManagement.manufacture_no = res->getString("manufacture_no"); - VerificationDataManagement.manufacturer = res->getString("manufacturer"); - VerificationDataManagement.FULL_NAME = res->getString("FULL_NAME"); - VerificationDataManagement.NAME = res->getString("NAME"); - VerificationDataManagement.trace_date = res->getString("trace_date"); - VerificationDataManagement.measure_valid_date = res->getString("measure_valid_date"); - VerificationDataManagement.meter_identify = res->getString("meter_identify"); - VerificationDataManagement.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationDataManagement); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨������Ϣ - std::vector getVerificationBasicDataDetails(std::string id) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," - " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," - - "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " - "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " - " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " - " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " - " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " - " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = ?"); - prepStmt->setString(1, id); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationBasicDataDetails VerificationBasicDataDetails; - VerificationBasicDataDetails.sample_name = res->getString("sample_name"); - VerificationBasicDataDetails.model = res->getString("model"); - VerificationBasicDataDetails.help_instruction = res->getString("help_instruction"); - VerificationBasicDataDetails.manufacture_no = res->getString("manufacture_no"); - VerificationBasicDataDetails.manufacturer = res->getString("manufacturer"); - VerificationBasicDataDetails.customer_name = res->getString("customer_name"); - VerificationBasicDataDetails.trace_date = res->getString("trace_date"); - VerificationBasicDataDetails.temperature = res->getString("temperature"); - VerificationBasicDataDetails.humidity = res->getString("humidity"); - VerificationBasicDataDetails.measure_address = res->getString("measure_address"); - VerificationBasicDataDetails.measure_valid_date = res->getString("measure_valid_date"); - VerificationBasicDataDetails.based_documents = res->getString("based_documents"); - VerificationBasicDataDetails.NAME = res->getString("NAME"); - VerificationBasicDataDetails.conclusion = res->getString("conclusion"); - VerificationBasicDataDetails.restriction_instruction = res->getString("restriction_instruction"); - result.push_back(VerificationBasicDataDetails); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�춨���ݹ���-�춨�����Ϣ - std::vectorgetVerificationResultData(std::string sampleId) - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," - " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " - " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " - " FROM biz_business_device_measure_item_data_calibrator bbdmidc " - " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " - "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " - " WHERE sample_id = ? )"); - prepStmt->setString(1, sampleId); - //prepStmt->setString(2, otherOutcome); - //'1708657907573821442' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - VerificationResultData VerificationResultData; - VerificationResultData.id = res->getString("id"); - VerificationResultData.params = res->getString("params"); - VerificationResultData.capacity = res->getString("capacity"); - VerificationResultData.unit = res->getString("unit"); - VerificationResultData.frequency = res->getString("frequency"); - VerificationResultData.range_range = res->getString("range_range"); - VerificationResultData.standard_value = res->getString("standard_value"); - VerificationResultData.resolution = res->getString("resolution"); - VerificationResultData.maximum_error = res->getString("maximum_error"); - VerificationResultData.error_param_a = res->getString("error_param_a"); - VerificationResultData.error_param_b = res->getString("error_param_b"); - VerificationResultData.other_outcome = res->getString("other_outcome"); - result.push_back(VerificationResultData); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ��� - std::vector getCheckDataManage() - { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::ResultSet* res = stmt->executeQuery( - "SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," - " besci.create_user_name , besci.check_date , bei.dept_name " - " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id" - ); - while (res->next()) { - CheckDataManage CheckDataManage; - CheckDataManage.id = res->getString("id"); - CheckDataManage.equipment_name = res->getString("equipment_name"); - CheckDataManage.model = res->getString("model"); - CheckDataManage.manufacture_no = res->getString("manufacture_no"); - CheckDataManage.meter_standard_name = res->getString("meter_standard_name"); - CheckDataManage.meter_standard_id = res->getString("meter_standard_id"); - CheckDataManage.create_user_name = res->getString("create_user_name"); - CheckDataManage.check_date = res->getString("check_date"); - CheckDataManage.dept_name = res->getString("dept_name"); - result.push_back(CheckDataManage); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - //�˲����ݹ���-�˲������Ϣ - std::vector getCheckDataManageBasicInfo(std::string id) { - std::vector result; - try { - sql::Statement* stmt = con->createStatement(); - - sql::PreparedStatement* prepStmt = con->prepareStatement( - "SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," - " besci.check_address , besci.create_user_name , besci.conclusion " - "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " - " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" - " WHERE bei.id = ? "); - prepStmt->setString(1, id); - //''1692780663553441794'' - sql::ResultSet* res = prepStmt->executeQuery(); - while (res->next()) { - CheckDataManageBasicInfo CheckDataManageBasicInfo; - CheckDataManageBasicInfo.equipment_name = res->getString("equipment_name"); - CheckDataManageBasicInfo.model = res->getString("model"); - CheckDataManageBasicInfo.manufacture_no = res->getString("manufacture_no"); - CheckDataManageBasicInfo.manufacturer = res->getString("manufacturer"); - CheckDataManageBasicInfo.temperature = res->getString("temperature"); - CheckDataManageBasicInfo.humidity = res->getString("humidity"); - CheckDataManageBasicInfo.check_date = res->getString("check_date"); - CheckDataManageBasicInfo.check_address = res->getString("check_address"); - CheckDataManageBasicInfo.create_user_name = res->getString("create_user_name"); - CheckDataManageBasicInfo.conclusion = res->getString("conclusion"); - result.push_back(CheckDataManageBasicInfo); - } - - // Clean up - delete res; - delete stmt; - - } - catch (sql::SQLException& e) { - std::cerr << "SQL error: " << e.what() << std::endl; - } - - return result; - } - - //�˲����ݹ���-�˲�����Ϣ-�˲���๦��У׼Դ���� - std::vector getCheckDataManageResultManage() - { - - } -}; - -int main() { - MySQLConnector connector("111.198.10.15", "21906", "zdjdcs", "11111111", "casic_metering_xichang"); - - std::vector people = connector.getAllData(); - - std::setlocale(LC_ALL, "en_US.utf8"); // ���ñ��ػ�����Ϊ UTF-8 - std::wcout.imbue(std::locale("en_US.utf8")); - - //for (const auto& Dept : people) { - // std::cout << Dept.id << ", " << Dept.sample_name << ", " << Dept.sample_model << ", " << Dept.help_instruction - // << Dept.manufacture_no << "," << Dept.manufacturer << "," << Dept.customer_name << "," << Dept.FULL_NAME - // << "," << Dept.require_over_time << "," << Dept.is_urgent - // << std::endl; - //} - - - std::vector myTasks = connector.getMyTasks(); - //for (const auto& MyTasks : myTasks) - //{ - // std::cout << MyTasks.id << ", " << MyTasks.sample_name << ", " << MyTasks.sample_model << ", " << MyTasks.help_instruction - // << MyTasks.manufacture_no << "," << MyTasks.manufacturer << "," << MyTasks.customer_name << "," << MyTasks.FULL_NAME - // << "," << MyTasks.require_over_time << "," << MyTasks.is_urgent - // << std::endl; - //} - - std::vector createTaskList = connector.getCreateTaskList(); - //for (const auto& CreateTaskList : createTaskList) - //{ - // std::cout << CreateTaskList.id << ", " < catTask = connector.getCatTask("rwd202308220001"); - /* for (const auto& CatTask : catTask) - { - std::cout << CatTask.id << "," << CatTask.order_no << ", " << CatTask.customer_name << ", " << CatTask.DEPT_FULL_NAME - << ", " << CatTask.require_over_time << "," << CatTask.deliverer <<", "<< CatTask.deliverer_tel << ", " << CatTask.undertaker_name << ", " << CatTask.undertake_time << "," << CatTask.is_urgent << "," << CatTask.receive_illustrate - << std::endl; - }*/ - - std::vector catTaskList = connector.getCatTaskList("1735863426170793985"); - //for (const auto& CatTaskList : catTaskList) - //{ - // std::cout << CatTaskList.id << "," << CatTaskList.sample_name << ", " << CatTaskList.sample_model << ", " << CatTaskList.manufacture_no - // << ", " << CatTaskList.manufacturer << "," << CatTaskList.appendix_descn << ", " << CatTaskList.special_require << ", " << CatTaskList.measure_complete_time << ", " - // << CatTaskList.conclusion << "," << CatTaskList.limit_instruction - // << std::endl; - //} - std::vector bizDeviceManage = connector.getBizDeviceManage(); - //for (const auto& BizDeviceManage : bizDeviceManage) - //{ - // std::cout << BizDeviceManage.id << "," << BizDeviceManage.equipment_name << ", " << BizDeviceManage.model << ", " << BizDeviceManage.manufacture_no - // << ", " << BizDeviceManage.manufacturer - // << std::endl; - //} - - std::vector catDeviceInfor = connector.getCatDeviceInfor("1692772193007128577"); - //for (const auto& CatDeviceInfor : catDeviceInfor) - //{ - // std::cout << CatDeviceInfor.equipment_name << "," << CatDeviceInfor.model << ", " << CatDeviceInfor.manufacture_no << ", " << CatDeviceInfor.measure_valid_date - // << ", " << CatDeviceInfor.manufacturer - // << std::endl; - //} - - std::string getApparatus = connector.getApparatus("1752157193060225025"); - //std::cout << getApparatus << std::endl; - - std::vector getTestedDevice = connector.getTestedDevice(); - /* for (const auto& TestedDevice : getTestedDevice) - { - std::cout << TestedDevice.id << "," << TestedDevice.equipment_name << ", " << TestedDevice.model << ", " << TestedDevice.help_instruction - << ", " << TestedDevice.manufacture_no - << std::endl; - }*/ - - std::vector getTestedCatDevice = connector.getTestedCatDevice("1697133619962744833"); - //for (const auto& TestedCatDevice : getTestedCatDevice) - //{ - // std::cout << TestedCatDevice.equipment_name << ", " << TestedCatDevice.model << ", " << TestedCatDevice.help_instruction - // << ", " << TestedCatDevice.manufacture_no << std::endl; - //} - - std::vector getJudgeCalibrationTable = connector.getJudgeCalibrationTable("1716997603953311746"); - for (const auto& JudgeCalibrationTable : getJudgeCalibrationTable) -{ - std::cout << JudgeCalibrationTable.item_category_id << ", " << JudgeCalibrationTable.belong_standard_equipment << std::endl; -} - - - std::vector getVerificationMultifunctionalCalibration = connector.getVerificationMultifunctionalCalibration("1717086652508487681"); - /* for (const auto& VerificationMultifunctionalCalibration : getVerificationMultifunctionalCalibration) - { - std::cout << VerificationMultifunctionalCalibration.id << ", " << VerificationMultifunctionalCalibration.params << ", " << VerificationMultifunctionalCalibration.capacity - << ", " << VerificationMultifunctionalCalibration.unit << ", " << VerificationMultifunctionalCalibration.frequency << std::endl; - }*/ - - std::vector< VerificationDataManagement> getVerificationDataManagement = connector.getVerificationDataManagement(); - //for (const auto& VerificationDataManagement : getVerificationDataManagement) - //{ - // std::cout << VerificationDataManagement.id << ", " << VerificationDataManagement.sample_name - // << ", " << VerificationDataManagement.model - // << ", " << VerificationDataManagement.help_instruction - // << ", " << VerificationDataManagement.manufacture_no - // << ", " << VerificationDataManagement.manufacturer - // << ", " << VerificationDataManagement.FULL_NAME - // << ", " << VerificationDataManagement.NAME - // << std::endl; - //} - - std::vector getVerificationBasicDataDetails = connector.getVerificationBasicDataDetails("1708657907573821442"); - //for (const auto& VerificationBasicDataDetails : getVerificationBasicDataDetails) - //{ - // std::cout << VerificationBasicDataDetails.sample_name - // << ", " << VerificationBasicDataDetails.model - // << ", " << VerificationBasicDataDetails.help_instruction - // << ", " << VerificationBasicDataDetails.manufacture_no - // << ", " << VerificationBasicDataDetails.manufacturer - // << ", " << VerificationBasicDataDetails.customer_name - // << ", " << VerificationBasicDataDetails.NAME - // << std::endl; - //} - - std::vector getVerificationResultData = connector.getVerificationResultData("1716997603953311746"); - //for (const auto& VerificationResultData : getVerificationResultData) - //{ - // std::cout << VerificationResultData.id - // << ", " << VerificationResultData.params - // << ", " << VerificationResultData.capacity - // << ", " << VerificationResultData.unit - // << ", " << VerificationResultData.frequency - // << ", " << VerificationResultData.range_range - // << ", " << VerificationResultData.standard_value - // << std::endl; - //} - - std::vector getCheckDataManage = connector.getCheckDataManage(); - //for (const auto& CheckDataManage : getCheckDataManage) - //{ - // std::cout << CheckDataManage.id - // << ", " << CheckDataManage.equipment_name - // << ", " << CheckDataManage.model - // << ", " << CheckDataManage.manufacture_no - // << ", " << CheckDataManage.meter_standard_name - // << ", " << CheckDataManage.meter_standard_id - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.create_user_name - // << ", " << CheckDataManage.dept_name - // << std::endl; - //} - - std::vector getCheckDataManageBasicInfo = connector.getCheckDataManageBasicInfo("1692780663553441794"); - for (const auto& CheckDataManageBasicInfo : getCheckDataManageBasicInfo) - { - std::cout - << CheckDataManageBasicInfo.equipment_name - << ", " << CheckDataManageBasicInfo.model - << ", " << CheckDataManageBasicInfo.manufacture_no - << ", " << CheckDataManageBasicInfo.temperature - << ", " << CheckDataManageBasicInfo.humidity - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.create_user_name - << ", " << CheckDataManageBasicInfo.check_date - << ", " << CheckDataManageBasicInfo.check_address - << std::endl; - } - - return 0; -} \ No newline at end of file diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..10aeb95 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "bizdevicemanage.h" + +BizDeviceManage::BizDeviceManage() +{ + +} +QListBizDeviceManage::getBizDeviceManage() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id ,bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer FROM biz_equipment_info bei"); + if (query.exec()) { + while (query.next()) { + BizDevice device; + device.id = query.value("id").toString(); + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.manufacturer = query.value("manufacturer").toString(); + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +QListBizDeviceManage::getCatDeviceInfor(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.measure_valid_date ," + "bei.product_country , bei.manufacturer , bei.produce_date, bei.purchase_date ,bei.unit_price , bei.usage_status , bei.quality_status , " + "bei.dept_name , bei.director_name , bei.supplier_name , bei.location , bei.type , bei.standard_type , bei.category , bei.level , " + "bei.measure_cycle , bei.unpack_record_name , bei.remark FROM biz_equipment_info bei WHERE bei.id = :id"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CatDeviceInfor device; + device.equipment_name = query.value("equipment_name").toString(); + device.model = query.value("model").toString(); + device.manufacture_no = query.value("manufacture_no").toString(); + device.measure_valid_date = query.value("measure_valid_date").toString(); + device.product_country = query.value("product_country").toString(); + device.manufacturer = query.value("manufacturer").toString(); + device.produce_date = query.value("produce_date").toString(); + device.purchase_date = query.value("purchase_date").toString(); + device.unit_price = query.value("unit_price").toString(); + device.usage_status = query.value("usage_status").toString(); + device.quality_status = query.value("quality_status").toString(); + device.dept_name = query.value("dept_name").toString(); + device.director_name = query.value("director_name").toString(); + device.supplier_name = query.value("supplier_name").toString(); + device.location = query.value("location").toString(); + device.type = query.value("type").toString(); + device.standard_type = query.value("standard_type").toString(); + device.category = query.value("category").toString(); + device.level = query.value("level").toString(); + device.measure_cycle = query.value("measure_cycle").toString(); + device.unpack_record_name = query.value("unpack_record_name").toString(); + device.remark = query.value("remark").toString(); + + result.append(device); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + + //直流稳压电源检定装置 +QListBizDeviceManage::getCheckDCPower(QString item_category_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT besciddp.id ,besciddp.params,besciddp.unit,resolution,besciddp.urel,besciddp.check_type,datum_point,cycle_number" + ", datum_point, resistance_value, resistance_value_unit, remark FROM biz_equipment_standard_check_item_data_dc_power besciddp WHERE item_category_id = (SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = :item_category_id))"); + // 将参数绑定到占位符 + query.bindValue(":item_category_id", item_category_id); + if (query.exec()) { + while (query.next()) { + CheckDCPower checkDCPower; + checkDCPower.id = query.value("id").toString(); + checkDCPower.params = query.value("params").toString(); + checkDCPower.check_point = query.value("check_point").toString(); + checkDCPower.unit = query.value("unit").toString(); + checkDCPower.resolution = query.value("resolution").toString(); + checkDCPower.urel = query.value("urel").toString(); + checkDCPower.check_type = query.value("check_type").toString(); + checkDCPower.datum_point = query.value("datum_point").toString(); + checkDCPower.cycle_number = query.value("cycle_number").toString(); + checkDCPower.resistance_value = query.value("resistance_value").toString(); + checkDCPower.resistance_value_unit = query.value("resistance_value_unit").toString(); + checkDCPower.remark = query.value("remark").toString(); + + result.append(checkDCPower); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //根据id获取装置名称 +QString BizDeviceManage::getApparatus(QString id) const +{ + QString result; + QSqlQuery query; + query.exec("SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = ( " + "SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = :id )"); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + result = query.value("standard_name").toString(); + } + } else { + // 如果没有找到对应记录,可以设置一个默认值或者抛出异常 + result = "Not Found"; + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h new file mode 100644 index 0000000..cc5d578 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.h @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getBizDeviceManage(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave new file mode 100644 index 0000000..6c95bed --- /dev/null +++ b/softwareDirectory/AutoVerScheme/bizdevicemanage.h.autosave @@ -0,0 +1,74 @@ +#ifndef BIZDEVICEMANAGE_H +#define BIZDEVICEMANAGE_H + +#include +#include +#include +#include "QList" +//标准设备管理 +class BizDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; +}; +//标准设备管理-查看设备信息 +class CatDeviceInfor +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString measure_valid_date; + QString product_country; + QString manufacturer; + QString produce_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_status; + QString dept_name; + QString director_name; + QString supplier_name; + QString location; + QString type; + QString standard_type; + QString category; + QString level; + QString measure_cycle; + QString unpack_record_name; + QString remark; + +}; +//标准设备管理-核查项目及核查点-直流稳压电源检定装置 +class CheckDCPower +{ +public: + QString id; + QString params; + QString check_point; + QString unit; + QString resolution; + QString urel; + QString check_type; + QString datum_point; + QString cycle_number; + QString resistance_value; + QString resistance_value_unit; + QString remark; +}; + +class BizDeviceManage +{ +public: + BizDeviceManage(); + QListgetBizDeviceManage(); + QListgetCatDeviceInfor(QString id); + virtual QString getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp new file mode 100644 index 0000000..08ede8b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.cpp @@ -0,0 +1,107 @@ +#include "check_data_manage_serve.h" + +Check_Data_Manage_Serve::Check_Data_Manage_Serve() +{ + +} + //核查数据管理 +QList Check_Data_Manage_Serve::getCheckData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.id , bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.meter_standard_name ,bei.meter_standard_id ," + " besci.create_user_name , besci.check_date , bei.dept_name " + " FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id"); + if (query.exec()) { + while (query.next()) { + CheckData dataManage; + dataManage.id = query.value("id").toString(); + dataManage.equipment_name = query.value("equipment_name").toString(); + dataManage.model = query.value("model").toString(); + dataManage.manufacture_no = query.value("manufacture_no").toString(); + dataManage.meter_standard_name = query.value("meter_standard_name").toString(); + dataManage.meter_standard_id = query.value("meter_standard_id").toString(); + dataManage.create_user_name = query.value("create_user_name").toString(); + dataManage.check_date = query.value("check_date").toString(); + dataManage.dept_name = query.value("dept_name").toString(); + + result.append(dataManage); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //核查数据管理-核查基本信息 +QList Check_Data_Manage_Serve::getCheckDataManageBasicInfo(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bei.equipment_name ,bei.model ,bei.manufacture_no ,bei.manufacturer ,besci.temperature ,besci.humidity ,besci.check_date ," + " besci.check_address , besci.create_user_name , besci.conclusion " + "FROM biz_equipment_info bei LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id " + " LEFT JOIN biz_equipment_standard_check_info_equipment bescie ON bei.id = bescie.check_equipment_id" + " WHERE bei.id = :id "); + + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + CheckDataManageBasicInfo basicInfo; + basicInfo.equipment_name = query.value("equipment_name").toString(); + basicInfo.model = query.value("model").toString(); + basicInfo.manufacture_no = query.value("manufacture_no").toString(); + basicInfo.manufacturer = query.value("manufacturer").toString(); + basicInfo.temperature = query.value("temperature").toString(); + basicInfo.humidity = query.value("humidity").toString(); + basicInfo.check_date = query.value("check_date").toString(); + basicInfo.check_address = query.value("check_address").toString(); + basicInfo.create_user_name = query.value("create_user_name").toString(); + basicInfo.conclusion = query.value("conclusion").toString(); + + result.append(basicInfo); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//核查数据管理-核查结果信息-核查项多功能校准源数据 +QList getCheckDataManageResultManageMult(QString equipment_id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bescidc.id , bescidc.check_type ,bescidc.params ,bescidc.unit ,bescidc.frequency ,bescidc.check_point ,besci.check_date ,bescidc.urel ," + " bescidc.tfer ,bescidc.dccp ,bescidc.flit " + " FROM biz_equipment_standard_check_item_data_calibrator bescidc " + " LEFT JOIN biz_equipment_standard_check_info besci ON besci.item_category_id = bescidc.item_category_id " + " WHERE bescidc.equipment_id = :equipment_id "); + + // 将参数绑定到占位符 '1692796512381222914' + query.bindValue(":equipment_id", equipment_id); + if (query.exec()) { + while (query.next()) { + CheckDataManageResultManageMult dataCalibrator; + dataCalibrator.id = query.value("id").toString(); + dataCalibrator.check_type = query.value("check_type").toString(); + dataCalibrator.params = query.value("params").toString(); + dataCalibrator.unit = query.value("unit").toString(); + dataCalibrator.frequency = query.value("frequency").toString(); + dataCalibrator.check_point = query.value("check_point").toString(); + dataCalibrator.check_date = query.value("check_date").toString(); + dataCalibrator.urel = query.value("urel").toString(); + dataCalibrator.tfer = query.value("tfer").toString(); + dataCalibrator.dccp = query.value("dccp").toString(); + dataCalibrator.flit = query.value("flit").toString(); + + result.append(dataCalibrator); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/check_data_manage_serve.h b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h new file mode 100644 index 0000000..31a7ef3 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,49 @@ +#ifndef CHECK_DATA_MANAGE_SERVE_H +#define CHECK_DATA_MANAGE_SERVE_H + +#include +#include +#include +#include "QList" + +//核查数据管理 +class CheckData +{ +public: + QString id; + QString equipment_name; + QString model; + QString manufacture_no; + QString meter_standard_name; + QString meter_standard_id; + QString create_user_name; + QString check_date; + QString dept_name; +}; +//核查数据管理-核查基本信息 +class CheckDataManageBasicInfo +{ +public: + QString equipment_name; + QString model; + QString manufacture_no; + QString manufacturer; + QString temperature; + QString humidity; + QString check_date; + QString check_address; + QString create_user_name; + QString conclusion; +}; + + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(); +}; + +#endif // CHECK_DATA_MANAGE_SERVE_H diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp new file mode 100644 index 0000000..9ff8610 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "createtasks.h" + +CreateTasks::CreateTasks() +{ + +} +QListCreateTasks::getCreateTaskList(){ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id,bi.order_no ,bi.customer_name ,dept.FULL_NAME ," + "bi.require_over_time , bi.deliverer ,bi.is_urgent FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID"); + if (query.exec()) { + while (query.next()) { + CreateTaskList task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} + +QListCreateTasks::getCatTask(QString orderNo) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bi.id, bi.order_no, bi.customer_name, dept.FULL_NAME, bi.require_over_time," + "bi.deliverer, bi.deliverer_tel, bi.undertaker_name, bi.undertake_time, bi.is_urgent," + "bi.receive_illustrate FROM biz_business_order_info bi LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID" + " WHERE bi.order_no = :order_no"); + + // 将参数绑定到占位符 + query.bindValue(":order_no", orderNo); + if (query.exec()) { + while (query.next()) { + CatTask task; + task.id = query.value("id").toString(); + task.order_no = query.value("order_no").toString(); + task.customer_name = query.value("customer_name").toString(); + task.DEPT_FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.deliverer = query.value("deliverer").toString(); + task.deliverer_tel = query.value("deliverer_tel").toString(); + task.undertaker_name = query.value("undertaker_name").toString(); + task.undertake_time = query.value("undertake_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + task.receive_illustrate = query.value("receive_illustrate").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + +QListCreateTasks::getCatTaskList(QString orderId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT br.id , br.sample_name ,br.sample_model ,ei.manufacture_no,ei.manufacturer ,br.appendix_descn ," + "br.special_require ,br.measure_complete_time ,bbdmi.conclusion ,ei.limit_instruction FROM biz_business_order_sample_relation br" + " Left JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no " + "Left JOIN biz_business_device_measure_info bbdmi ON br.order_id = bbdmi.order_id " + "WHERE br.order_id = :order_id"); + // 将参数绑定到占位符 + query.bindValue(":order_id", orderId); + if (query.exec()) { + while (query.next()) { + CatTaskList task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.appendix_descn = query.value("appendix_descn").toString(); + task.special_require = query.value("special_require").toString(); + task.measure_complete_time = query.value("measure_complete_time").toString(); + task.conclusion = query.value("conclusion").toString(); + task.limit_instruction = query.value("limit_instruction").toString(); + result.append(task); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} diff --git a/softwareDirectory/AutoVerScheme/create_tasks_serve.h b/softwareDirectory/AutoVerScheme/create_tasks_serve.h new file mode 100644 index 0000000..b9c8011 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,45 @@ +#ifndef CREATETASKS_H +#define CREATETASKS_H +#include +#include +#include +#include "QList" +//创建任务单-首页 +class CreateTaskList +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString is_urgent; +}; +//创建任务单-查看任务单 +class CatTask +{ +public: + QString id; + QString order_no; + QString customer_name; + QString DEPT_FULL_NAME; + QString require_over_time; + QString deliverer; + QString deliverer_tel; + QString undertaker_name; + QString undertake_time; + QString is_urgent; + QString receive_illustrate; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..a6b53a9 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "mytasks.h" + +MyTasks::MyTasks() +{ + +} +QList MyTasks::getMyTasks(QString id){ + QList result; + QSqlQuery query; + query.exec("SELECT " + "bi.id, br.sample_name, br.sample_model, ei.help_instruction, ei.manufacture_no," + "ei.manufacturer, bi.customer_name," + "dept.FULL_NAME, bi.require_over_time," + "bi.is_urgent FROM biz_business_order_info bi" + " LEfT JOIN biz_business_order_sample_relation br ON bi.id = br.order_id" + " LEfT JOIN eqpt_equipment_info ei ON br.sample_no = ei.equipment_no LEfT JOIN " + "sys_dept dept ON ei.dept_id = dept.ID WHERE bi.create_user_id = :user_id"); + + // 将参数绑定到占位符 + query.bindValue(":user_id", id); +if (query.exec()) { + while (query.next()) { + MyTask task; + task.id = query.value("id").toString(); + task.sample_name = query.value("sample_name").toString(); + task.sample_model = query.value("sample_model").toString(); + task.help_instruction = query.value("help_instruction").toString(); + task.manufacture_no = query.value("manufacture_no").toString(); + task.manufacturer = query.value("manufacturer").toString(); + task.customer_name = query.value("customer_name").toString(); + task.FULL_NAME = query.value("FULL_NAME").toString(); + task.require_over_time = query.value("require_over_time").toString(); + task.is_urgent = query.value("is_urgent").toString(); + result.append(task); + } +} +else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + return result; +} diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.h b/softwareDirectory/AutoVerScheme/my_tasks_serve.h new file mode 100644 index 0000000..cba2a13 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.h @@ -0,0 +1,33 @@ +#ifndef MYTASKS_H +#define MYTASKS_H +#include +#include +#include +#include "QList" + +class MyTask +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString help_instruction; + QString manufacture_no; + QString manufacturer; + QString customer_name; + QString FULL_NAME; + QString require_over_time; + QString is_urgent; +}; + + + +class MyTasks +{ +public: + MyTasks(); + QList getMyTasks(QString id); + +}; + +#endif // MYTASKS_H diff --git a/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp new file mode 100644 index 0000000..ed5cade --- /dev/null +++ b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.cpp @@ -0,0 +1,137 @@ +#include "tested_device_manage_serve.h" +#include +#include +#include +#include "QList" + +TestedDeviceManage::TestedDeviceManage() +{ + +} + // 被检设备管理 +QList TestedDeviceManage::getTestedDevice() +{ + QList result; + QSqlQuery query; + query.exec("SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," + "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = :id "); + if (query.exec()) { + while (query.next()) { + TestedDevice testedDevice; + testedDevice.id = query.value("id").toString(); + testedDevice.equipment_name = query.value("equipment_name").toString(); + testedDevice.model = query.value("model").toString(); + testedDevice.help_instruction = query.value("help_instruction").toString(); + testedDevice.manufacture_no = query.value("manufacture_no").toString(); + testedDevice.manufacturer = query.value("manufacturer").toString(); + testedDevice.FULL_NAME = query.value("FULL_NAME").toString(); + testedDevice.meter_identify = query.value("meter_identify").toString(); + testedDevice.check_cycle = query.value("check_cycle").toString(); + testedDevice.certificate_valid = query.value("certificate_valid").toString(); + + result.append(testedDevice); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + // 被检设备管理查看设备信息 +QList TestedDeviceManage::getTestedCatDevice(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT eei.equipment_name ,eei.model ,eei.help_instruction ,eei.manufacture_no ,eei.product_country ,eei.manufacturer ,eei.product_date ,eei.purchase_date ,eei.unit_price ,eei.usage_status ,eei.quality_condition ,sys_dept.FULL_NAME ," + "eei.category , eei.check_cycle ,eei.level , eei.remark from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id WHERE eei.id = :id "); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + TestedCatDevice testedCatDevice; + testedCatDevice.equipment_name = query.value("equipment_name").toString(); + testedCatDevice.model = query.value("model").toString(); + testedCatDevice.help_instruction = query.value("help_instruction").toString(); + testedCatDevice.manufacture_no = query.value("manufacture_no").toString(); + testedCatDevice.product_country = query.value("product_country").toString(); + testedCatDevice.manufacturer = query.value("manufacturer").toString(); + testedCatDevice.product_date = query.value("product_date").toString(); + testedCatDevice.purchase_date = query.value("purchase_date").toString(); + testedCatDevice.unit_price = query.value("unit_price").toString(); + testedCatDevice.usage_status = query.value("usage_status").toString(); + testedCatDevice.quality_condition = query.value("quality_condition").toString(); + testedCatDevice.FULL_NAME = query.value("FULL_NAME").toString(); + testedCatDevice.category = query.value("category").toString(); + testedCatDevice.check_cycle = query.value("check_cycle").toString(); + testedCatDevice.level = query.value("level").toString(); + testedCatDevice.remark = query.value("remark").toString(); + + result.append(testedCatDevice); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//判断 哪个 装置表 +QList TestedDeviceManage::getJudgeCalibrationTable(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id =(SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = :id "); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + JudgeCalibrationTable calibration; + calibration.item_category_id = query.value("item_category_id").toString(); + calibration.belong_standard_equipment = query.value("belong_standard_equipment").toString(); + result.append(calibration); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + + + //被检设备管理-检定项目及检定点-多功能校准源 +QList TestedDeviceManage::getVerMultiCal(QString itemId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ,bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , bbdmidc.error_param_a , bbdmidc.error_param_b " + " FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = :itemId "); + // 将参数绑定到占位符 + query.bindValue(":itemId", itemId); + + if (query.exec()) { + while (query.next()) { + VerMultiCal calibration; + calibration.id = query.value("id").toString(); + calibration.params = query.value("params").toString(); + calibration.capacity = query.value("capacity").toString(); + calibration.unit = query.value("unit").toString(); + calibration.frequency = query.value("frequency").toString(); + calibration.range_range = query.value("range_range").toString(); + calibration.standard_value = query.value("standard_value").toString(); + calibration.resolution = query.value("resolution").toString(); + calibration.maximum_error = query.value("maximum_error").toString(); + calibration.error_param_a = query.value("error_param_a").toString(); + calibration.error_param_b = query.value("error_param_b").toString(); + + result.append(calibration); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + + diff --git a/softwareDirectory/AutoVerScheme/tested_device_manage_serve.h b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.h new file mode 100644 index 0000000..cfa71ee --- /dev/null +++ b/softwareDirectory/AutoVerScheme/tested_device_manage_serve.h @@ -0,0 +1,80 @@ +#ifndef TESTEDDEVICEMANAGE_H +#define TESTEDDEVICEMANAGE_H +#include +#include +#include +#include "QList" +//被检设备管理 +class TestedDevice +{ +public: + QString id; + QString equipment_name; + QString model; + QString help_instruction; + QString manufacture_no; + QString manufacturer; + QString FULL_NAME; + QString meter_identify; + QString check_cycle; + QString certificate_valid; +}; +//被检设备管理-查看设备 +class TestedCatDevice +{ +public: + QString equipment_name; + QString model; + QString help_instruction; + QString manufacture_no; + QString product_country; + QString manufacturer; + QString product_date; + QString purchase_date; + QString unit_price; + QString usage_status; + QString quality_condition; + QString FULL_NAME; + QString category; + QString check_cycle; + QString level; + QString remark; +}; +//判断 哪个 装置表 +class JudgeCalibrationTable +{ +public: + QString item_category_id; + QString belong_standard_equipment; +}; + + +//被检设备管理-检定项目及检定点-检定项多功能校准源 +class VerMultiCal +{ +public: + QString id; + QString params; + QString capacity; + QString unit; + QString frequency; + QString range_range; + QString standard_value; + QString resolution; + QString maximum_error; + QString error_param_a; + QString error_param_b; +}; + + +class TestedDeviceManage +{ +public: + TestedDeviceManage(); + QList getTestedDevice(); + QList getTestedCatDevice(QString id); + QList getJudgeCalibrationTable(QString id); + QList getVerMultiCal(QString itemId); +}; + +#endif // TESTEDDEVICEMANAGE_H diff --git a/softwareDirectory/AutoVerScheme/verification_data_management_serve.cpp b/softwareDirectory/AutoVerScheme/verification_data_management_serve.cpp new file mode 100644 index 0000000..0f6b2af --- /dev/null +++ b/softwareDirectory/AutoVerScheme/verification_data_management_serve.cpp @@ -0,0 +1,122 @@ +#include "verification_data_management_serve.h" + +Verification_Data_Management_Serve::Verification_Data_Management_Serve() +{ + +} + //检定数据管理 +QList Verification_Data_Management_Serve::getVerificationData() +{ + QList result; + QSqlQuery query; + query.exec("SELECT bbdmi.id , bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ," + "bbdmi.manufacturer , bboi.customer_name , dept.FULL_NAME , _user.NAME , bbdmi.trace_date ," + "bbdmi.measure_valid_date , eei.meter_identify , bbdmi.restriction_instruction " + "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " + " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id LEFT JOIN sys_dept dept ON eei.dept_id = dept.ID " + " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id"); + + if (query.exec()) { + while (query.next()) { + VerificationData verificationData; + verificationData.id = query.value("id").toString(); + verificationData.sample_name = query.value("sample_name").toString(); + verificationData.model = query.value("model").toString(); + verificationData.help_instruction = query.value("help_instruction").toString(); + verificationData.manufacture_no = query.value("manufacture_no").toString(); + verificationData.manufacturer = query.value("manufacturer").toString(); + verificationData.FULL_NAME = query.value("FULL_NAME").toString(); + verificationData.NAME = query.value("NAME").toString(); + verificationData.trace_date = query.value("trace_date").toString(); + verificationData.measure_valid_date = query.value("measure_valid_date").toString(); + verificationData.meter_identify = query.value("meter_identify").toString(); + verificationData.restriction_instruction = query.value("restriction_instruction").toString(); + + result.append(verificationData); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} +//检定数据管理-检定基本信息 +QList Verification_Data_Management_Serve::getVerificationBasicDataDetails(QString id) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bbdmi.sample_name ,bbdmi.model ,eei.help_instruction ,bbdmi.manufacture_no ,bbdmi.manufacturer ," + " bboi.customer_name, eemtte.based_documents, bbdmi.trace_date , bbdmi.temperature , bbdmi.humidity ," + "bbdmi.measure_address , bbdmi.measure_valid_date , _user.NAME , bbdmi.conclusion , bbdmi.restriction_instruction " + "FROM biz_business_device_measure_info bbdmi LEFT JOIN eqpt_equipment_info eei ON bbdmi.sample_id = eei.id " + " LEFT JOIN biz_business_order_info bboi ON bbdmi.order_id = bboi.id " + " LEFT JOIN biz_business_device_measure_item_info bbdmii ON bbdmi.item_id = bbdmii.id " + " LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmii.device_model_id = eemtte.model_id " + " LEFT JOIN sys_user _user ON bbdmi.create_user_id = _user.id WHERE bbdmi.id = :id "); + // 将参数绑定到占位符 + query.bindValue(":id", id); + if (query.exec()) { + while (query.next()) { + VerificationBasicDataDetails dataDetails; + dataDetails.sample_name = query.value("sample_name").toString(); + dataDetails.model = query.value("model").toString(); + dataDetails.help_instruction = query.value("help_instruction").toString(); + dataDetails.manufacture_no = query.value("manufacture_no").toString(); + dataDetails.manufacturer = query.value("manufacturer").toString(); + dataDetails.customer_name = query.value("customer_name").toString(); + dataDetails.trace_date = query.value("trace_date").toString(); + dataDetails.temperature = query.value("temperature").toString(); + dataDetails.humidity = query.value("humidity").toString(); + dataDetails.measure_address = query.value("measure_address").toString(); + dataDetails.measure_valid_date = query.value("measure_valid_date").toString(); + dataDetails.based_documents = query.value("based_documents").toString(); + dataDetails.NAME = query.value("NAME").toString(); + dataDetails.conclusion = query.value("conclusion").toString(); + dataDetails.restriction_instruction = query.value("restriction_instruction").toString(); + + result.append(dataDetails); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} + //检定数据管理-检定结果信息 +QList Verification_Data_Management_Serve::getVerificationResultData(QString sampleId) +{ + QList result; + QSqlQuery query; + query.exec("SELECT bbdmidc.id ,bbdmidc.params ,bbdmidc.capacity ,bbdmidc.unit ," + " bbdmidc.frequency , bbdmidc.range_range , bbdmidc.standard_value , bbdmidc.resolution , bbdmidc.maximum_error , " + " bbdmidc.error_param_a , bbdmidc.error_param_b ,bbdmi.other_outcome " + " FROM biz_business_device_measure_item_data_calibrator bbdmidc " + " LEFT JOIN biz_business_device_measure_info bbdmi ON bbdmi.item_id = bbdmidc.item_id " + "WHERE bbdmidc.item_id = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi " + " WHERE sample_id = :sampleId )"); + // 将参数绑定到占位符 + query.bindValue(":sampleId", sampleId); + if (query.exec()) { + while (query.next()) { + VerificationResultData resultData; + resultData.id = query.value("id").toString(); + resultData.params = query.value("params").toString(); + resultData.capacity = query.value("capacity").toString(); + resultData.unit = query.value("unit").toString(); + resultData.frequency = query.value("frequency").toString(); + resultData.range_range = query.value("range_range").toString(); + resultData.standard_value = query.value("standard_value").toString(); + resultData.resolution = query.value("resolution").toString(); + resultData.maximum_error = query.value("maximum_error").toString(); + resultData.error_param_a = query.value("error_param_a").toString(); + resultData.error_param_b = query.value("error_param_b").toString(); + resultData.other_outcome = query.value("other_outcome").toString(); + + result.append(resultData); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; +} diff --git a/softwareDirectory/AutoVerScheme/verification_data_management_serve.h b/softwareDirectory/AutoVerScheme/verification_data_management_serve.h new file mode 100644 index 0000000..a667a6c --- /dev/null +++ b/softwareDirectory/AutoVerScheme/verification_data_management_serve.h @@ -0,0 +1,57 @@ +#ifndef VERIFICATION_DATA_MANAGEMENT_SERVE_H +#define VERIFICATION_DATA_MANAGEMENT_SERVE_H + +#include +#include +#include +#include "QList" + //检定数据管理 +class VerificationData +{ +public: + QString id; + QString sample_name; + QString model; + QString help_instruction; + QString manufacture_no; + QString manufacturer; + QString customer_name; + QString FULL_NAME; + QString NAME; + QString trace_date; + QString measure_valid_date; + QString meter_identify; + QString restriction_instruction; +}; +//检定数据管理-检定基本信息 +class VerificationBasicDataDetails +{ +public: + QString sample_name; + QString model; + QString help_instruction; + QString manufacture_no; + QString manufacturer; + QString customer_name; + QString based_documents; + QString trace_date; + QString temperature; + QString humidity; + QString measure_address; + QString measure_valid_date; + QString NAME; + QString conclusion; + QString restriction_instruction; +}; + + + +class Verification_Data_Management_Serve +{ +public: + Verification_Data_Management_Serve(); + QList getVerificationData(); + QList getVerificationBasicDataDetails(QString id); +}; + +#endif // VERIFICATION_DATA_MANAGEMENT_SERVE_H