diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" Binary files differ diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 getApparatus(QString id) const = 0; + QListgetCheckDCPower(QString item_category_id); +}; + +#endif // BIZDEVICEMANAGE_H diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#endif // CHECK_DATA_MANAGE_SERVE_H diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git a/softwareDirectory/AutoVerScheme/infomanageview.h b/softwareDirectory/AutoVerScheme/infomanageview.h index 9d876ff..c7a7703 100644 --- a/softwareDirectory/AutoVerScheme/infomanageview.h +++ b/softwareDirectory/AutoVerScheme/infomanageview.h @@ -27,7 +27,7 @@ void initIcon(); //初始化导航按钮图标 void buttonClicked(); //导航按钮单击事件 - void ShowMessageBox(QString title,QString value); + protected: void showEvent(QShowEvent *); private: diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git a/softwareDirectory/AutoVerScheme/infomanageview.h b/softwareDirectory/AutoVerScheme/infomanageview.h index 9d876ff..c7a7703 100644 --- a/softwareDirectory/AutoVerScheme/infomanageview.h +++ b/softwareDirectory/AutoVerScheme/infomanageview.h @@ -27,7 +27,7 @@ void initIcon(); //初始化导航按钮图标 void buttonClicked(); //导航按钮单击事件 - void ShowMessageBox(QString title,QString value); + protected: void showEvent(QShowEvent *); private: diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..05c2ac4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "my_tasks_serve.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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git a/softwareDirectory/AutoVerScheme/infomanageview.h b/softwareDirectory/AutoVerScheme/infomanageview.h index 9d876ff..c7a7703 100644 --- a/softwareDirectory/AutoVerScheme/infomanageview.h +++ b/softwareDirectory/AutoVerScheme/infomanageview.h @@ -27,7 +27,7 @@ void initIcon(); //初始化导航按钮图标 void buttonClicked(); //导航按钮单击事件 - void ShowMessageBox(QString title,QString value); + protected: void showEvent(QShowEvent *); private: diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..05c2ac4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "my_tasks_serve.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..4cf2f9d --- /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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git a/softwareDirectory/AutoVerScheme/infomanageview.h b/softwareDirectory/AutoVerScheme/infomanageview.h index 9d876ff..c7a7703 100644 --- a/softwareDirectory/AutoVerScheme/infomanageview.h +++ b/softwareDirectory/AutoVerScheme/infomanageview.h @@ -27,7 +27,7 @@ void initIcon(); //初始化导航按钮图标 void buttonClicked(); //导航按钮单击事件 - void ShowMessageBox(QString title,QString value); + protected: void showEvent(QShowEvent *); private: diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..05c2ac4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "my_tasks_serve.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..4cf2f9d --- /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/standard_deviceitem.ui b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui index 7421175..b2b278e 100644 --- a/softwareDirectory/AutoVerScheme/standard_deviceitem.ui +++ b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui @@ -6,193 +6,939 @@ 0 0 - 1184 + 1185 624 Form - + + + 0 + + + 0 + + + 0 + + + 0 + - - - - 0 - 0 - - + - background-color:white; + - - + + 1 - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 设备名称: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 型号规则: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 出厂编号: - - - - - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 生产厂家: - - - - - - - - 180 - 0 - - - - - 200 - 0 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::RightToLeft - - - 查询 - - - - - - - Qt::RightToLeft - - - 重置 - - - - - - - - - - background-color:white; - - - - - - - - - - - - - - - - + + + + + + + + + + 0 + 0 + + + + background-color:white; + + + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 设备名称: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 型号规则: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 出厂编号: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 生产厂家: + + + + + + + + + + + + + + 0 + 0 + + + + + + + + + 180 + 0 + + + + + 200 + 0 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::RightToLeft + + + 查询 + + + + + + + Qt::RightToLeft + + + 重置 + + + + + + + + + + background-color:white; + + + + + + + + + + + + + + + + + + + + + + + color:black; + + + + + + background-color:white; + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 30 + 20 + + + + + + + + Qt::Horizontal + + + + 60 + 20 + + + + + + + + Font-size:25px; + + + 查看设备信息 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 30 + 30 + + + + Qt::RightToLeft + + + background-color:grey; +color:white; + + + 返回 + + + + + + + + + + background-color:white; + + + + + + + + + 核查项目及核查点: + + + + + + + background-color:white; + + + + + + + + + 设备基本信息: + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + + + + + + + + 0 + 0 + + + + + 30 + 0 + + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 6 + + + + + 检定项备注: + + + + + + + background-color: #f0f0f0; +color: grey; + + + + + + + + + + + diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git a/softwareDirectory/AutoVerScheme/infomanageview.h b/softwareDirectory/AutoVerScheme/infomanageview.h index 9d876ff..c7a7703 100644 --- a/softwareDirectory/AutoVerScheme/infomanageview.h +++ b/softwareDirectory/AutoVerScheme/infomanageview.h @@ -27,7 +27,7 @@ void initIcon(); //初始化导航按钮图标 void buttonClicked(); //导航按钮单击事件 - void ShowMessageBox(QString title,QString value); + protected: void showEvent(QShowEvent *); private: diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..05c2ac4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "my_tasks_serve.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..4cf2f9d --- /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/standard_deviceitem.ui b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui index 7421175..b2b278e 100644 --- a/softwareDirectory/AutoVerScheme/standard_deviceitem.ui +++ b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui @@ -6,193 +6,939 @@ 0 0 - 1184 + 1185 624 Form - + + + 0 + + + 0 + + + 0 + + + 0 + - - - - 0 - 0 - - + - background-color:white; + - - + + 1 - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 设备名称: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 型号规则: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 出厂编号: - - - - - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 生产厂家: - - - - - - - - 180 - 0 - - - - - 200 - 0 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::RightToLeft - - - 查询 - - - - - - - Qt::RightToLeft - - - 重置 - - - - - - - - - - background-color:white; - - - - - - - - - - - - - - - - + + + + + + + + + + 0 + 0 + + + + background-color:white; + + + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 设备名称: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 型号规则: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 出厂编号: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 生产厂家: + + + + + + + + + + + + + + 0 + 0 + + + + + + + + + 180 + 0 + + + + + 200 + 0 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::RightToLeft + + + 查询 + + + + + + + Qt::RightToLeft + + + 重置 + + + + + + + + + + background-color:white; + + + + + + + + + + + + + + + + + + + + + + + color:black; + + + + + + background-color:white; + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 30 + 20 + + + + + + + + Qt::Horizontal + + + + 60 + 20 + + + + + + + + Font-size:25px; + + + 查看设备信息 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 30 + 30 + + + + Qt::RightToLeft + + + background-color:grey; +color:white; + + + 返回 + + + + + + + + + + background-color:white; + + + + + + + + + 核查项目及核查点: + + + + + + + background-color:white; + + + + + + + + + 设备基本信息: + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + + + + + + + + 0 + 0 + + + + + 30 + 0 + + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 6 + + + + + 检定项备注: + + + + + + + background-color: #f0f0f0; +color: grey; + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.cpp b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp new file mode 100644 index 0000000..aef57f1 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp @@ -0,0 +1,31 @@ +#include "technique_file_serve.h" + +Technique_File_Serve::Technique_File_Serve() +{ + +} +QList Technique_File_Serve::getTechnique_File() +{ + QList result; + QSqlQuery query; + query.exec("SELECT brtf.file_distribute_no ,brtf.file_name ,brtf.version_no ,brtf.active_date ,brtf.remark " + " FROM biz_resource_technique_file brtf"); + + if (query.exec()) { + while (query.next()) { + Technique_File file; + file.file_distribute_no = query.value("file_distribute_no").toString(); + file.file_name = query.value("file_name").toString(); + file.version_no = query.value("version_no").toString(); + file.active_date = query.value("active_date").toString(); + file.remark = query.value("remark").toString(); + + result.append(file); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git a/softwareDirectory/AutoVerScheme/infomanageview.h b/softwareDirectory/AutoVerScheme/infomanageview.h index 9d876ff..c7a7703 100644 --- a/softwareDirectory/AutoVerScheme/infomanageview.h +++ b/softwareDirectory/AutoVerScheme/infomanageview.h @@ -27,7 +27,7 @@ void initIcon(); //初始化导航按钮图标 void buttonClicked(); //导航按钮单击事件 - void ShowMessageBox(QString title,QString value); + protected: void showEvent(QShowEvent *); private: diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..05c2ac4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "my_tasks_serve.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..4cf2f9d --- /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/standard_deviceitem.ui b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui index 7421175..b2b278e 100644 --- a/softwareDirectory/AutoVerScheme/standard_deviceitem.ui +++ b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui @@ -6,193 +6,939 @@ 0 0 - 1184 + 1185 624 Form - + + + 0 + + + 0 + + + 0 + + + 0 + - - - - 0 - 0 - - + - background-color:white; + - - + + 1 - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 设备名称: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 型号规则: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 出厂编号: - - - - - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 生产厂家: - - - - - - - - 180 - 0 - - - - - 200 - 0 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::RightToLeft - - - 查询 - - - - - - - Qt::RightToLeft - - - 重置 - - - - - - - - - - background-color:white; - - - - - - - - - - - - - - - - + + + + + + + + + + 0 + 0 + + + + background-color:white; + + + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 设备名称: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 型号规则: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 出厂编号: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 生产厂家: + + + + + + + + + + + + + + 0 + 0 + + + + + + + + + 180 + 0 + + + + + 200 + 0 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::RightToLeft + + + 查询 + + + + + + + Qt::RightToLeft + + + 重置 + + + + + + + + + + background-color:white; + + + + + + + + + + + + + + + + + + + + + + + color:black; + + + + + + background-color:white; + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 30 + 20 + + + + + + + + Qt::Horizontal + + + + 60 + 20 + + + + + + + + Font-size:25px; + + + 查看设备信息 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 30 + 30 + + + + Qt::RightToLeft + + + background-color:grey; +color:white; + + + 返回 + + + + + + + + + + background-color:white; + + + + + + + + + 核查项目及核查点: + + + + + + + background-color:white; + + + + + + + + + 设备基本信息: + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + + + + + + + + 0 + 0 + + + + + 30 + 0 + + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 6 + + + + + 检定项备注: + + + + + + + background-color: #f0f0f0; +color: grey; + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.cpp b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp new file mode 100644 index 0000000..aef57f1 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp @@ -0,0 +1,31 @@ +#include "technique_file_serve.h" + +Technique_File_Serve::Technique_File_Serve() +{ + +} +QList Technique_File_Serve::getTechnique_File() +{ + QList result; + QSqlQuery query; + query.exec("SELECT brtf.file_distribute_no ,brtf.file_name ,brtf.version_no ,brtf.active_date ,brtf.remark " + " FROM biz_resource_technique_file brtf"); + + if (query.exec()) { + while (query.next()) { + Technique_File file; + file.file_distribute_no = query.value("file_distribute_no").toString(); + file.file_name = query.value("file_name").toString(); + file.version_no = query.value("version_no").toString(); + file.active_date = query.value("active_date").toString(); + file.remark = query.value("remark").toString(); + + result.append(file); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.h b/softwareDirectory/AutoVerScheme/technique_file_serve.h new file mode 100644 index 0000000..181b69c --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.h @@ -0,0 +1,26 @@ +#ifndef TECHNIQUE_FILE_SERVE_H +#define TECHNIQUE_FILE_SERVE_H +#include +#include +#include +#include "QList" + +//技术文件 +class Technique_File +{ +public: + QString file_distribute_no; + QString file_name; + QString version_no; + QString active_date; + QString remark; +}; + +class Technique_File_Serve +{ +public: + Technique_File_Serve(); + QList getTechnique_File(); +}; + +#endif // TECHNIQUE_FILE_SERVE_H diff --git "a/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git a/softwareDirectory/AutoVerScheme/infomanageview.h b/softwareDirectory/AutoVerScheme/infomanageview.h index 9d876ff..c7a7703 100644 --- a/softwareDirectory/AutoVerScheme/infomanageview.h +++ b/softwareDirectory/AutoVerScheme/infomanageview.h @@ -27,7 +27,7 @@ void initIcon(); //初始化导航按钮图标 void buttonClicked(); //导航按钮单击事件 - void ShowMessageBox(QString title,QString value); + protected: void showEvent(QShowEvent *); private: diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..05c2ac4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "my_tasks_serve.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..4cf2f9d --- /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/standard_deviceitem.ui b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui index 7421175..b2b278e 100644 --- a/softwareDirectory/AutoVerScheme/standard_deviceitem.ui +++ b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui @@ -6,193 +6,939 @@ 0 0 - 1184 + 1185 624 Form - + + + 0 + + + 0 + + + 0 + + + 0 + - - - - 0 - 0 - - + - background-color:white; + - - + + 1 - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 设备名称: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 型号规则: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 出厂编号: - - - - - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 生产厂家: - - - - - - - - 180 - 0 - - - - - 200 - 0 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::RightToLeft - - - 查询 - - - - - - - Qt::RightToLeft - - - 重置 - - - - - - - - - - background-color:white; - - - - - - - - - - - - - - - - + + + + + + + + + + 0 + 0 + + + + background-color:white; + + + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 设备名称: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 型号规则: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 出厂编号: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 生产厂家: + + + + + + + + + + + + + + 0 + 0 + + + + + + + + + 180 + 0 + + + + + 200 + 0 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::RightToLeft + + + 查询 + + + + + + + Qt::RightToLeft + + + 重置 + + + + + + + + + + background-color:white; + + + + + + + + + + + + + + + + + + + + + + + color:black; + + + + + + background-color:white; + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 30 + 20 + + + + + + + + Qt::Horizontal + + + + 60 + 20 + + + + + + + + Font-size:25px; + + + 查看设备信息 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 30 + 30 + + + + Qt::RightToLeft + + + background-color:grey; +color:white; + + + 返回 + + + + + + + + + + background-color:white; + + + + + + + + + 核查项目及核查点: + + + + + + + background-color:white; + + + + + + + + + 设备基本信息: + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + + + + + + + + 0 + 0 + + + + + 30 + 0 + + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 6 + + + + + 检定项备注: + + + + + + + background-color: #f0f0f0; +color: grey; + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.cpp b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp new file mode 100644 index 0000000..aef57f1 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp @@ -0,0 +1,31 @@ +#include "technique_file_serve.h" + +Technique_File_Serve::Technique_File_Serve() +{ + +} +QList Technique_File_Serve::getTechnique_File() +{ + QList result; + QSqlQuery query; + query.exec("SELECT brtf.file_distribute_no ,brtf.file_name ,brtf.version_no ,brtf.active_date ,brtf.remark " + " FROM biz_resource_technique_file brtf"); + + if (query.exec()) { + while (query.next()) { + Technique_File file; + file.file_distribute_no = query.value("file_distribute_no").toString(); + file.file_name = query.value("file_name").toString(); + file.version_no = query.value("version_no").toString(); + file.active_date = query.value("active_date").toString(); + file.remark = query.value("remark").toString(); + + result.append(file); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.h b/softwareDirectory/AutoVerScheme/technique_file_serve.h new file mode 100644 index 0000000..181b69c --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.h @@ -0,0 +1,26 @@ +#ifndef TECHNIQUE_FILE_SERVE_H +#define TECHNIQUE_FILE_SERVE_H +#include +#include +#include +#include "QList" + +//技术文件 +class Technique_File +{ +public: + QString file_distribute_no; + QString file_name; + QString version_no; + QString active_date; + QString remark; +}; + +class Technique_File_Serve +{ +public: + Technique_File_Serve(); + QList getTechnique_File(); +}; + +#endif // TECHNIQUE_FILE_SERVE_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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git a/softwareDirectory/AutoVerScheme/infomanageview.h b/softwareDirectory/AutoVerScheme/infomanageview.h index 9d876ff..c7a7703 100644 --- a/softwareDirectory/AutoVerScheme/infomanageview.h +++ b/softwareDirectory/AutoVerScheme/infomanageview.h @@ -27,7 +27,7 @@ void initIcon(); //初始化导航按钮图标 void buttonClicked(); //导航按钮单击事件 - void ShowMessageBox(QString title,QString value); + protected: void showEvent(QShowEvent *); private: diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..05c2ac4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "my_tasks_serve.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..4cf2f9d --- /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/standard_deviceitem.ui b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui index 7421175..b2b278e 100644 --- a/softwareDirectory/AutoVerScheme/standard_deviceitem.ui +++ b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui @@ -6,193 +6,939 @@ 0 0 - 1184 + 1185 624 Form - + + + 0 + + + 0 + + + 0 + + + 0 + - - - - 0 - 0 - - + - background-color:white; + - - + + 1 - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 设备名称: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 型号规则: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 出厂编号: - - - - - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 生产厂家: - - - - - - - - 180 - 0 - - - - - 200 - 0 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::RightToLeft - - - 查询 - - - - - - - Qt::RightToLeft - - - 重置 - - - - - - - - - - background-color:white; - - - - - - - - - - - - - - - - + + + + + + + + + + 0 + 0 + + + + background-color:white; + + + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 设备名称: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 型号规则: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 出厂编号: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 生产厂家: + + + + + + + + + + + + + + 0 + 0 + + + + + + + + + 180 + 0 + + + + + 200 + 0 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::RightToLeft + + + 查询 + + + + + + + Qt::RightToLeft + + + 重置 + + + + + + + + + + background-color:white; + + + + + + + + + + + + + + + + + + + + + + + color:black; + + + + + + background-color:white; + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 30 + 20 + + + + + + + + Qt::Horizontal + + + + 60 + 20 + + + + + + + + Font-size:25px; + + + 查看设备信息 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 30 + 30 + + + + Qt::RightToLeft + + + background-color:grey; +color:white; + + + 返回 + + + + + + + + + + background-color:white; + + + + + + + + + 核查项目及核查点: + + + + + + + background-color:white; + + + + + + + + + 设备基本信息: + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + + + + + + + + 0 + 0 + + + + + 30 + 0 + + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 6 + + + + + 检定项备注: + + + + + + + background-color: #f0f0f0; +color: grey; + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.cpp b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp new file mode 100644 index 0000000..aef57f1 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp @@ -0,0 +1,31 @@ +#include "technique_file_serve.h" + +Technique_File_Serve::Technique_File_Serve() +{ + +} +QList Technique_File_Serve::getTechnique_File() +{ + QList result; + QSqlQuery query; + query.exec("SELECT brtf.file_distribute_no ,brtf.file_name ,brtf.version_no ,brtf.active_date ,brtf.remark " + " FROM biz_resource_technique_file brtf"); + + if (query.exec()) { + while (query.next()) { + Technique_File file; + file.file_distribute_no = query.value("file_distribute_no").toString(); + file.file_name = query.value("file_name").toString(); + file.version_no = query.value("version_no").toString(); + file.active_date = query.value("active_date").toString(); + file.remark = query.value("remark").toString(); + + result.append(file); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.h b/softwareDirectory/AutoVerScheme/technique_file_serve.h new file mode 100644 index 0000000..181b69c --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.h @@ -0,0 +1,26 @@ +#ifndef TECHNIQUE_FILE_SERVE_H +#define TECHNIQUE_FILE_SERVE_H +#include +#include +#include +#include "QList" + +//技术文件 +class Technique_File +{ +public: + QString file_distribute_no; + QString file_name; + QString version_no; + QString active_date; + QString remark; +}; + +class Technique_File_Serve +{ +public: + Technique_File_Serve(); + QList getTechnique_File(); +}; + +#endif // TECHNIQUE_FILE_SERVE_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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git a/softwareDirectory/AutoVerScheme/infomanageview.h b/softwareDirectory/AutoVerScheme/infomanageview.h index 9d876ff..c7a7703 100644 --- a/softwareDirectory/AutoVerScheme/infomanageview.h +++ b/softwareDirectory/AutoVerScheme/infomanageview.h @@ -27,7 +27,7 @@ void initIcon(); //初始化导航按钮图标 void buttonClicked(); //导航按钮单击事件 - void ShowMessageBox(QString title,QString value); + protected: void showEvent(QShowEvent *); private: diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..05c2ac4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "my_tasks_serve.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..4cf2f9d --- /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/standard_deviceitem.ui b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui index 7421175..b2b278e 100644 --- a/softwareDirectory/AutoVerScheme/standard_deviceitem.ui +++ b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui @@ -6,193 +6,939 @@ 0 0 - 1184 + 1185 624 Form - + + + 0 + + + 0 + + + 0 + + + 0 + - - - - 0 - 0 - - + - background-color:white; + - - + + 1 - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 设备名称: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 型号规则: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 出厂编号: - - - - - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 生产厂家: - - - - - - - - 180 - 0 - - - - - 200 - 0 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::RightToLeft - - - 查询 - - - - - - - Qt::RightToLeft - - - 重置 - - - - - - - - - - background-color:white; - - - - - - - - - - - - - - - - + + + + + + + + + + 0 + 0 + + + + background-color:white; + + + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 设备名称: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 型号规则: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 出厂编号: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 生产厂家: + + + + + + + + + + + + + + 0 + 0 + + + + + + + + + 180 + 0 + + + + + 200 + 0 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::RightToLeft + + + 查询 + + + + + + + Qt::RightToLeft + + + 重置 + + + + + + + + + + background-color:white; + + + + + + + + + + + + + + + + + + + + + + + color:black; + + + + + + background-color:white; + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 30 + 20 + + + + + + + + Qt::Horizontal + + + + 60 + 20 + + + + + + + + Font-size:25px; + + + 查看设备信息 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 30 + 30 + + + + Qt::RightToLeft + + + background-color:grey; +color:white; + + + 返回 + + + + + + + + + + background-color:white; + + + + + + + + + 核查项目及核查点: + + + + + + + background-color:white; + + + + + + + + + 设备基本信息: + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + + + + + + + + 0 + 0 + + + + + 30 + 0 + + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 6 + + + + + 检定项备注: + + + + + + + background-color: #f0f0f0; +color: grey; + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.cpp b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp new file mode 100644 index 0000000..aef57f1 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp @@ -0,0 +1,31 @@ +#include "technique_file_serve.h" + +Technique_File_Serve::Technique_File_Serve() +{ + +} +QList Technique_File_Serve::getTechnique_File() +{ + QList result; + QSqlQuery query; + query.exec("SELECT brtf.file_distribute_no ,brtf.file_name ,brtf.version_no ,brtf.active_date ,brtf.remark " + " FROM biz_resource_technique_file brtf"); + + if (query.exec()) { + while (query.next()) { + Technique_File file; + file.file_distribute_no = query.value("file_distribute_no").toString(); + file.file_name = query.value("file_name").toString(); + file.version_no = query.value("version_no").toString(); + file.active_date = query.value("active_date").toString(); + file.remark = query.value("remark").toString(); + + result.append(file); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.h b/softwareDirectory/AutoVerScheme/technique_file_serve.h new file mode 100644 index 0000000..181b69c --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.h @@ -0,0 +1,26 @@ +#ifndef TECHNIQUE_FILE_SERVE_H +#define TECHNIQUE_FILE_SERVE_H +#include +#include +#include +#include "QList" + +//技术文件 +class Technique_File +{ +public: + QString file_distribute_no; + QString file_name; + QString version_no; + QString active_date; + QString remark; +}; + +class Technique_File_Serve +{ +public: + Technique_File_Serve(); + QList getTechnique_File(); +}; + +#endif // TECHNIQUE_FILE_SERVE_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/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" new file mode 100644 index 0000000..4b07429 --- /dev/null +++ "b/InformationFile/\346\225\260\346\215\256\345\220\214\346\255\245\343\200\201\346\243\200\345\256\232\351\241\271&\346\240\270\346\237\245\351\241\271\346\225\260\346\215\256\350\216\267\345\217\226\346\265\201\347\250\213.pdf" 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/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" new file mode 100644 index 0000000..472d062 --- /dev/null +++ "b/Sql\350\257\246\346\203\205\351\231\204\345\275\225/\350\207\252\345\212\250\346\243\200\345\256\232.sql" @@ -0,0 +1,369 @@ +部门任务 +select bi.id as "序号",br.sample_name as "设备名称",br.sample_model as "型号规格", ei.help_instruction as "辅助字段",ei.manufacture_no as "出厂编号",ei.manufacturer as "生产厂家",bi.customer_name as "委托方",dept.FULL_NAME as "使用部门",bi.require_over_time as "要求检完时间",bi.is_urgent as "是否加急" from biz_business_order_info bi,biz_business_order_sample_relation br,eqpt_equipment_info ei,sys_dept as dept WHERE bi.id=br.order_id AND br.sample_no=ei.equipment_no AND ei.dept_id=dept.ID + +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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 + WHERE user.id = '1693585369401880577' + + ------------------------------------------------------------------------------ +我的任务 +SELECT + bi.id AS "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.help_instruction AS "辅助字段", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + bi.customer_name AS "委托方", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.is_urgent AS "是否加急" +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' + ----------------------------------------------------------------------------------------- + 创建任务单->任务单列表 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.is_urgent AS "是否加急" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID + + + 创建任务单->查看任务单 + SELECT bi.order_no as "任务单编号",bi.customer_name as "委托方名称",dept.FULL_NAME as "使用部门", bi.require_over_time AS "要求检完时间",bi.deliverer as "送检人",bi.deliverer_tel as "送检人电话",bi.undertaker_name as "承接人",bi.undertake_time as "承接时间",bi.is_urgent AS "是否加急",bi.receive_illustrate as "接受说明" FROM biz_business_order_info bi,sys_dept dept WHERE bi.customer_id = dept.ID AND bi.order_no = 'rwd202308220001' + + + 优化后 + + SELECT + bi.order_no AS "任务单编号", + bi.customer_name AS "委托方名称", + dept.FULL_NAME AS "使用部门", + bi.require_over_time AS "要求检完时间", + bi.deliverer AS "送检人", + bi.deliverer_tel AS "送检人电话", + bi.undertaker_name AS "承接人", + bi.undertake_time AS "承接时间", + bi.is_urgent AS "是否加急", + bi.receive_illustrate AS "接受说明" +FROM + biz_business_order_info bi + LEFT JOIN sys_dept dept ON bi.customer_id = dept.ID +WHERE + bi.order_no = 'rwd202308220001'; + 创建任务单->任务单列表(设备) +-- SELECT br.id as "序号", br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" FROM +-- biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1696131409221058561" + +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家" +-- FROM biz_business_order_sample_relation br,eqpt_equipment_info ei WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no +-- +-- SELECT br.id as "序号",br.sample_name AS "设备名称",br.sample_model AS "型号规格", ei.manufacture_no AS "出厂编号",ei.manufacturer AS "生产厂家", +-- ea.name as "附件" FROM biz_business_order_sample_relation br,eqpt_equipment_info ei,eqpt_equipment_attachment ea WHERE br.order_id = "1717702029852635137" AND br.sample_no = ei.equipment_no AND br.sample_id=ea.equipment_id + + + SELECT br.id as "序号", + br.sample_name AS "设备名称", + br.sample_model AS "型号规格", + ei.manufacture_no AS "出厂编号", + ei.manufacturer AS "生产厂家", + br.appendix_descn as "附件", + br.special_require as "特殊要求", + br.measure_complete_time as "检定完成时间", + bbdmi.conclusion as "检定结果", + ei.limit_instruction as "限用" + 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 = "1735863426170793985"; + + + + --------------------------------------------------------------------------------------------------- + +创建任务单 -- 新建 + + +-- 假设已有sys_dept表中对应的新客户ID的记录 + +-- 插入biz_business_order_info表的新记录 +INSERT INTO biz_business_order_info ( + order_no, customer_name, require_over_time, deliverer, deliverer_tel, + undertaker_name, undertake_time, is_urgent, receive_illustrate, customer_id +) VALUES ( + '新任务单编号', '新委托方名称', '2023-09-01 14:30:00', -- 假设require_over_time为datetime类型 + '新送检人', '13800138000', '新承接人', '2023-09-02 09:00:00', -- 假设undertake_time为datetime类型 + true, -- 假设is_urgent为boolean类型,true表示是加急,false表示不是 + '新接受说明', + 新客户ID -- 这个ID应与sys_dept表中已存在的ID相对应 +); + + +-- 插入eqpt_equipment_info表 +INSERT INTO eqpt_equipment_info (manufacture_no, manufacturer, equipment_no) +VALUES ('新出厂编号', '新生产厂家', '新设备编号'); + +-- 插入biz_business_order_sample_relation表 +INSERT INTO biz_business_order_sample_relation (order_id,sample_id,sample_no, sample_name, sample_model, , measure_complete_time) +VALUES ('1697135299001356290', '设备的id','新设备编号', '新设备名称', '新型号规格', '新检定完成时间'); +查询被检设备和任务单关联表 +SELECT bbosr.id,bbosr.sample_id,bbosr.sample_name,bbosr.sample_model FROM biz_business_order_sample_relation bbosr +SELECT eei.help_instruction,eei.manufacture_no,eei.manufacturer FROM eqpt_equipment_info eei +WHERE id = '1715284942530105345' + + + + + + + + + +创建任务单-更新 +UPDATE biz_business_order_info bi +JOIN sys_dept dept ON bi.customer_id = dept.ID +SET + bi.order_no = '新任务单编号', -- 修改任务单编号 + bi.customer_name = '新委托方名称', -- 修改委托方名称 + bi.require_over_time = '新要求检完时间', -- 修改要求检完时间(假设为日期时间格式) + bi.deliverer = '新送检人', -- 修改送检人 + bi.deliverer_tel = '新送检人电话', -- 修改送检人电话 + bi.undertaker_name = '新承接人', -- 修改承接人 + bi.undertake_time = '新承接时间', -- 修改承接时间(假设为日期时间格式) + bi.is_urgent = 新是否加急值, -- 修改是否加急(如果是布尔类型则填true/false或1/0) + bi.receive_illustrate = '新接受说明' -- 修改接受说明 +WHERE + bi.order_no = 'rwd202308220001'; -- 根据原始任务单编号定位记录 + + UPDATE sys_dept + SET FULL_NAME = '新部门名称' + WHERE ID = (SELECT customer_id FROM biz_business_order_info WHERE order_no = 'rwd202308220001'); + + +创建任务单--删除 + +DELETE FROM biz_business_order_info WHERE order_no = '指定的任务单编号'; + + + +------------------------------------------------------------------------------------------ +标准设备管理 + + + +SELECT bei.id as "序号",bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家" FROM biz_equipment_info bei + + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.measure_valid_date as "检定有效期", +bei.product_country as "生产国家",bei.manufacturer as "生产厂家",bei.produce_date as "生产日期",bei.purchase_date as "购进日期", +bei.unit_price as "设备单价",bei.usage_status as "使用状态",bei.quality_status as "质量状况",bei.dept_name as "所属部门",bei.director_name as "负责人",bei.supplier_name as "设备供方",bei.location as "位置信息",bei.type as "设备类型",bei.standard_type as "标准类型",bei.category as "设备分类",bei.level as "重要等级",bei.measure_cycle as "检定周期",bei.unpack_record_name as "对应开箱记录",bei.remark as "备注" FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' + + + + +SELECT * from biz_equipment_info +WHERE biz_equipment_info.meter_standard_id = '1724358183538257921' + + + + + +SELECT bei.meter_standard_id FROM biz_equipment_info bei WHERE bei.id = '1692772193007128577' +SELECT besi.standard_name FROM biz_equipment_standard_info besi WHERE besi.id = "1724358183538257921" +合并为 +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 = '1752157193060225025' ) + +SELECT bescic.id FROM biz_equipment_standard_check_item_category bescic WHERE bescic.belong_standard_equipment_name = "直流稳压电源检定装置" + + + +SELECT bescidc.id as "序号",bescidc.check_type as "核查类型",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",bescidc.resolution as "分辨力",bescidc.cycle_number as "循环次数",bescidc.urel as "Urel",bescidc.thoroughfare as "通道" ,bescidc.tfer as "TFER",bescidc.dccp as "DCCP",bescidc.flit as "FLIT" from biz_equipment_standard_check_item_data_calibrator bescidc WHERE bescidc.item_category_id = "1730190255448227842" + + +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 = "直流稳压电源检定装置") + + + +------------------------------------------------------------------------ +被检设备管理 + +SELECT eei.id as "序号",eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.manufacturer as "生产厂家",sys_dept.FULL_NAME as "部门",eei.meter_identify as "计量标识",eei.check_cycle as "检定周期",eei.certificate_valid as "证书有效期" from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + +查看设备信息 +设备基本信息 + +SELECT eei.equipment_name as "设备名称",eei.model as "型号规格",eei.help_instruction as "辅助字段",eei.manufacture_no as "出厂编号",eei.product_country as "生产国家",eei.manufacturer as "生产厂家",eei.product_date as "生产日期",eei.purchase_date as "购进日期",eei.unit_price as "设备单价",eei.usage_status as "使用状态",eei.quality_condition as "质量状况",sys_dept.FULL_NAME as "部门", +eei.category as "设备分类",eei.check_cycle as "检定周期", +eei.level as "重要等级",eei.remark as "备注" + from eqpt_equipment_info eei LEFT JOIN sys_dept ON sys_dept.ID = eei.dept_id + WHERE eei.id = '1697133619962744833' + +检定项目及检定点: + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' +合并为: +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') + + + + +检定项多功能校准源数据 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = '1717086652508487681' + +------------------------------------------------------------------------------------- +检定数据管理 + +SELECT bbdmi.id as "序号", bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号", +bbdmi.manufacturer as "生产厂家",bboi.customer_name as "委托单位",dept.FULL_NAME as "使用部门",_user.NAME as "检定员",bbdmi.trace_date as "检定时间", +bbdmi.measure_valid_date as "检定有效期",eei.meter_identify as "计量标识",bbdmi.restriction_instruction as "限用说明" + 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 + + +检定基本信息 +SELECT bbdmi.sample_name as "设备名称",bbdmi.model as "型号规格",eei.help_instruction as "辅助字段",bbdmi.manufacture_no as "出厂编号",bbdmi.manufacturer as "生产厂家", +bboi.customer_name as "委托单位",eemtte.based_documents as "依据技术文件", bbdmi.trace_date as "检定日期",bbdmi.temperature as "环境温度",bbdmi.humidity as "环境湿度", +bbdmi.measure_address as "检定地点",bbdmi.measure_valid_date as "检定有效期",_user.NAME as "检定员",bbdmi.conclusion as "结论",bbdmi.restriction_instruction as "限用说明" + +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 = '1708657907573821442' +检定结果信息 + +SELECT eei.model_id from eqpt_equipment_info eei WHERE eei.id = '1716997603953311746' + +SELECT item_category_id,belong_standard_equipment FROM biz_business_device_measure_item_info bbdmii WHERE bbdmii.device_model_id = '1716987426248163330' + +检定项多功能校准源数据 + SELECT bbdmi.other_outcome as "外观及功能性检查",bbdmi.other_remark as "说明",item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome LIKE "不合格" + + SELECT item_id FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + +根据是否 合格判断查询 + + +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 = (SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci + FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1735134534179074049' AND other_outcome = '合格'); + + + + + + +SELECT * FROM biz_business_device_measure_info +WHERE sample_id = '1716997603953311746' AND other_outcome is NULL + + SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b" +FROM biz_business_device_measure_item_data_calibrator bbdmidc WHERE item_id = ( SELECT CONVERT(item_id USING utf8mb4) COLLATE utf8mb4_0900_ai_ci FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746') + +SELECT item_id , other_outcome FROM biz_business_device_measure_info bbdmi + WHERE sample_id = '1716997603953311746' + + + +查询所有 +SELECT bbdmidc.id as "序号",bbdmidc.params as "参数",bbdmidc.capacity as "量",bbdmidc.unit as "单位", +bbdmidc.frequency as "频率",bbdmidc.range_range as "量程",bbdmidc.standard_value as "标准值",bbdmidc.resolution as "分辨力",bbdmidc.maximum_error as "最大允许误差",bbdmidc.error_param_a as "误差参数a",bbdmidc.error_param_b as "误差参数b",bbdmi.other_outcome as "合格率" +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 = '1716997603953311746' ) + +编辑 + + +UPDATE biz_business_device_measure_info bbdmi +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 +-- LEFT JOIN eqpt_equipment_model_technical_target eemtte ON bbdmi.item_id = bbdmii.id +SET + bboi.customer_name = '新的委托单位名称', -- 假设这是新的委托单位名称 + eemtte.based_documents = '新的依据技术文件', -- 假设这是新的依据技术文件 + bbdmi.trace_date = '新的检定日期', -- 假设这是新的检定日期(格式需与数据库一致,如'YYYY-MM-DD') + bbdmi.temperature = '新的环境温度', + bbdmi.humidity = '新的环境湿度', + bbdmi.measure_address = '新的检定地点', + bbdmi.measure_valid_date = '新的检定有效期', -- 日期格式同上 + _user.NAME = '新的检定员姓名', -- 这里通常不能直接更新用户表,需要找到对应的检定员ID进行更新 + bbdmi.conclusion = '新的结论', + bbdmi.restriction_instruction = '新的限用说明' +WHERE bbdmi.id = '1708657907573821442'; + +-- 注意:对于_sys_user表中的检定员姓名,一般不会直接通过这种方式更新,而是应该通过检定员ID关联并更新。 +------------------------------------------------------------------------------------------------------------------------------ +核查数据管理 + +SELECT bei.id as "序号", bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.meter_standard_name as "核查件",bei.meter_standard_id as "核查件编号", +besci.create_user_name as "核查员",besci.check_date as "核查日期",bei.dept_name as "部门" + FROM biz_equipment_info bei +LEFT JOIN biz_equipment_standard_check_info besci ON besci.equipment_id = bei.id + +核查数据管理-核查基本信息 + +SELECT bei.equipment_name as "设备名称",bei.model as "型号规格",bei.manufacture_no as "出厂编号",bei.manufacturer as "生产厂家",besci.temperature as "温度",besci.humidity as "湿度",besci.check_date as "核查日期", +besci.check_address as "核查地点",besci.create_user_name as "核查员",besci.conclusion as "结论" +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 = '1692796512381222914' +核查结果信息 + +TODO + +SELECT bescidc.id as "序号", bescidc.check_type as "核查类型",bescidc.params as "参数",bescidc.unit as "单位",bescidc.frequency as "频率",bescidc.check_point as "核查点",besci.check_date as "核查日期",bescidc.urel as "Urel",bescidc.tfer as "Tfer",bescidc.dccp as "Dccp",bescidc.flit as "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 = '1692796512381222914' + + + +技术文件管理 +SELECT brtf.file_distribute_no as "文件号",brtf.file_name as "文件名",brtf.version_no as "版本号",brtf.active_date as "颁布时间",brtf.remark as "备注" +FROM biz_resource_technique_file brtf + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 6294011..4873dc0 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -18,6 +18,13 @@ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ + biz_device_manage_serve.cpp \ + check_data_manage_serve.cpp \ + create_tasks_serve.cpp \ + my_tasks_serve.cpp \ + technique_file_serve.cpp \ + tested_device_manage_serve.cpp \ + verification_data_management_serve.cpp \ beexamined_deviceitem.cpp \ checkmethodmanage.cpp \ checkwindow.cpp \ @@ -44,6 +51,13 @@ verifywindow.cpp HEADERS += \ + biz_device_manage_serve.h \ + check_data_manage_serve.h \ + create_tasks_serve.h \ + my_tasks_serve.h \ + technique_file_serve.h \ + tested_device_manage_serve.h \ + verification_data_management_serve.h \ InfoBase.h \ beexamined_deviceitem.h \ checkmethodmanage.h \ @@ -67,7 +81,8 @@ testdataitem.h \ testview.h \ verifymethodmanage.h \ - verifywindow.h + verifywindow.h\ + biz_device_manage_serve.h FORMS += \ beexamined_deviceitem.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user index 13fcc01..1e5887b 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro.user @@ -1,14 +1,22 @@ +<<<<<<< HEAD EnvironmentId {2746248a-b112-4e0f-9ae0-9e61f2a42309} +======= + + + + EnvironmentId + {94e4c4a1-54d4-412c-b108-da01d63f0d97} +>>>>>>> origin/master ProjectExplorer.Project.ActiveTarget - 1 + 0 ProjectExplorer.Project.EditorSettings @@ -71,7 +79,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master true @@ -119,7 +131,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Release +>>>>>>> origin/master true @@ -167,7 +183,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Profile +>>>>>>> origin/master true @@ -287,8 +307,13 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + Qt4ProjectManager.Qt4RunConfiguration:D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro + D:/work/code/BJJZ/svntest/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +>>>>>>> origin/master false @@ -299,7 +324,11 @@ false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_32_bit-Debug +>>>>>>> origin/master 1 @@ -314,7 +343,11 @@ 0 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +>>>>>>> origin/master true @@ -362,7 +395,11 @@ 2 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Release +>>>>>>> origin/master true @@ -410,7 +447,11 @@ 0 +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +======= + D:/work/code/BJJZ/svntest/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Profile +>>>>>>> origin/master true @@ -530,19 +571,28 @@ 2 +<<<<<<< HEAD Qt4ProjectManager.Qt4RunConfiguration:D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro D:/dev/software/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +======= + + ProjectExplorer.CustomExecutableRunConfiguration + +>>>>>>> origin/master false false true - true false false true +<<<<<<< HEAD D:/dev/software/softwareDirectory/build-AutoVerScheme-Desktop_Qt_5_14_2_MinGW_64_bit-Debug +======= + +>>>>>>> origin/master 1 diff --git a/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp new file mode 100644 index 0000000..60486b4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/biz_device_manage_serve.cpp @@ -0,0 +1,127 @@ +#include "biz_device_manage_serve.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..6c95bed --- /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 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..cdf9587 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/check_data_manage_serve.h @@ -0,0 +1,65 @@ +#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 CheckDataManageResultManageMult +{ +public: + QString id; + QString check_type; + QString params; + QString unit; + QString frequency; + QString check_point; + QString check_date; + QString urel; + QString tfer; + QString dccp; + QString flit; +}; + + +class Check_Data_Manage_Serve +{ +public: + Check_Data_Manage_Serve(); + QList getCheckData(); + QList getCheckDataManageBasicInfo(QString id); + QList getCheckDataManageResultManageMult(QString equipment_id); +}; + +#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..102b773 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.cpp @@ -0,0 +1,95 @@ +#include "create_tasks_serve.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..3114433 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/create_tasks_serve.h @@ -0,0 +1,60 @@ +#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 CatTaskList +{ +public: + QString id; + QString sample_name; + QString sample_model; + QString manufacture_no; + QString manufacturer; + QString appendix_descn; + QString special_require; + QString measure_complete_time; + QString conclusion; + QString limit_instruction; +}; + + +class CreateTasks +{ +public: + CreateTasks(); + QListgetCreateTaskList(); + QListgetCatTask(QString orderNo); + QListgetCatTaskList(QString orderId); +}; + +#endif // CREATETASKS_H diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp new file mode 100644 index 0000000..a705164 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.cpp @@ -0,0 +1,28 @@ +#include "data_base_connect_serve.h" + +DatabaseConnection::DatabaseConnection() +{ + // 连接数据库 + db = QSqlDatabase::addDatabase("QODBC"); + db.setHostName("127.0.0.1"); + db.setPort(3306); + db.setDatabaseName("trigger_2"); + db.setUserName("root"); + db.setPassword("123456"); + +} +DatabaseConnection::~DatabaseConnection() { + // 在析构函数中关闭数据库连接 + close(); +} +bool DatabaseConnection::open() { + return db.open(); +} + +void DatabaseConnection::close() { + db.close(); +} + +QSqlDatabase& DatabaseConnection::getDatabase() { + return db; +} diff --git a/softwareDirectory/AutoVerScheme/data_base_connect_serve.h b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h new file mode 100644 index 0000000..8930b6b --- /dev/null +++ b/softwareDirectory/AutoVerScheme/data_base_connect_serve.h @@ -0,0 +1,17 @@ +#ifndef DATABASECONNECTION_H +#define DATABASECONNECTION_H +#include + +class DatabaseConnection +{ +public: + DatabaseConnection(); + ~DatabaseConnection(); + bool open(); + void close(); + QSqlDatabase& getDatabase(); +private: + QSqlDatabase db; +}; + +#endif // DATABASECONNECTION_H diff --git a/softwareDirectory/AutoVerScheme/depar_task.cpp b/softwareDirectory/AutoVerScheme/depar_task.cpp index 5c2db6d..ce3a5df 100644 --- a/softwareDirectory/AutoVerScheme/depar_task.cpp +++ b/softwareDirectory/AutoVerScheme/depar_task.cpp @@ -38,7 +38,8 @@ QTableWidgetItem *item = new QTableWidgetItem("测试数据"); item->setTextAlignment(Qt::AlignCenter); //文件居中 ui->tableWidget->setItem(0, 0, item); //设置数据 - + // 设置选择行为为选择整行 + ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //初始化TableWidget 设置列 QStringList headers; headers << "序号" << "设备名称" << "型号规则" << "辅助字段" << "出厂编号" @@ -77,10 +78,16 @@ int rowCount = 0; int row=0; + QString State; for (const Dept& dept : data) { rowCount = ui->tableWidget->rowCount(); + if(row==273) + { + + } ui->tableWidget->insertRow(rowCount); ui->tableWidget->setItem(row, 0, new QTableWidgetItem(QString::number(row+1))); + //ui->tableWidget->setItem(row, 0, new QTableWidgetItem(dept.id)); ui->tableWidget->setItem(row, 1, new QTableWidgetItem(dept.sample_name)); //设置数据 ui->tableWidget->setItem(row, 2, new QTableWidgetItem(dept.sample_model)); //设置数据 @@ -90,7 +97,11 @@ ui->tableWidget->setItem(row, 6, new QTableWidgetItem(dept.customer_name)); //设置数据 ui->tableWidget->setItem(row, 7, new QTableWidgetItem(dept.FULL_NAME)); //设置数据 ui->tableWidget->setItem(row, 8, new QTableWidgetItem(dept.require_over_time)); //设置数据 - ui->tableWidget->setItem(row, 9, new QTableWidgetItem(dept.is_urgent)); //设置数据 + if(dept.is_urgent=="1") + State="是"; + else + State="否"; + ui->tableWidget->setItem(row, 9, new QTableWidgetItem(State)); //设置数据 //QDebug row++; diff --git a/softwareDirectory/AutoVerScheme/indexwindow.cpp b/softwareDirectory/AutoVerScheme/indexwindow.cpp index 8854db9..eed192a 100644 --- a/softwareDirectory/AutoVerScheme/indexwindow.cpp +++ b/softwareDirectory/AutoVerScheme/indexwindow.cpp @@ -57,7 +57,6 @@ DatabaseConnection *Conn=DatabaseConnection::getInstance(); - //数据库连接 目前先放这里 后续需要放到登录界面 bool IsOpen=Conn->open(); if(IsOpen) diff --git a/softwareDirectory/AutoVerScheme/infomanageview.h b/softwareDirectory/AutoVerScheme/infomanageview.h index 9d876ff..c7a7703 100644 --- a/softwareDirectory/AutoVerScheme/infomanageview.h +++ b/softwareDirectory/AutoVerScheme/infomanageview.h @@ -27,7 +27,7 @@ void initIcon(); //初始化导航按钮图标 void buttonClicked(); //导航按钮单击事件 - void ShowMessageBox(QString title,QString value); + protected: void showEvent(QShowEvent *); private: diff --git a/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp new file mode 100644 index 0000000..05c2ac4 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/my_tasks_serve.cpp @@ -0,0 +1,41 @@ +#include "my_tasks_serve.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..4cf2f9d --- /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/standard_deviceitem.ui b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui index 7421175..b2b278e 100644 --- a/softwareDirectory/AutoVerScheme/standard_deviceitem.ui +++ b/softwareDirectory/AutoVerScheme/standard_deviceitem.ui @@ -6,193 +6,939 @@ 0 0 - 1184 + 1185 624 Form - + + + 0 + + + 0 + + + 0 + + + 0 + - - - - 0 - 0 - - + - background-color:white; + - - + + 1 - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 设备名称: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 型号规则: - - - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 出厂编号: - - - - - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 80 - 0 - - - - 生产厂家: - - - - - - - - 180 - 0 - - - - - 200 - 0 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::RightToLeft - - - 查询 - - - - - - - Qt::RightToLeft - - - 重置 - - - - - - - - - - background-color:white; - - - - - - - - - - - - - - - - + + + + + + + + + + 0 + 0 + + + + background-color:white; + + + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 设备名称: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 型号规则: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 出厂编号: + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + 生产厂家: + + + + + + + + + + + + + + 0 + 0 + + + + + + + + + 180 + 0 + + + + + 200 + 0 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::RightToLeft + + + 查询 + + + + + + + Qt::RightToLeft + + + 重置 + + + + + + + + + + background-color:white; + + + + + + + + + + + + + + + + + + + + + + + color:black; + + + + + + background-color:white; + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 30 + 20 + + + + + + + + Qt::Horizontal + + + + 60 + 20 + + + + + + + + Font-size:25px; + + + 查看设备信息 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 30 + 30 + + + + Qt::RightToLeft + + + background-color:grey; +color:white; + + + 返回 + + + + + + + + + + background-color:white; + + + + + + + + + 核查项目及核查点: + + + + + + + background-color:white; + + + + + + + + + 设备基本信息: + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + 设备名称: + + + + + + + ForbiddenCursor + + + background-color: #f0f0f0; +color: grey; + + + XXX + + + + + + + + + + + + + + 0 + 0 + + + + + 30 + 0 + + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 6 + + + + + 检定项备注: + + + + + + + background-color: #f0f0f0; +color: grey; + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.cpp b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp new file mode 100644 index 0000000..aef57f1 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.cpp @@ -0,0 +1,31 @@ +#include "technique_file_serve.h" + +Technique_File_Serve::Technique_File_Serve() +{ + +} +QList Technique_File_Serve::getTechnique_File() +{ + QList result; + QSqlQuery query; + query.exec("SELECT brtf.file_distribute_no ,brtf.file_name ,brtf.version_no ,brtf.active_date ,brtf.remark " + " FROM biz_resource_technique_file brtf"); + + if (query.exec()) { + while (query.next()) { + Technique_File file; + file.file_distribute_no = query.value("file_distribute_no").toString(); + file.file_name = query.value("file_name").toString(); + file.version_no = query.value("version_no").toString(); + file.active_date = query.value("active_date").toString(); + file.remark = query.value("remark").toString(); + + result.append(file); + } + } else { + qDebug() << "Query execution failed: " << query.lastError().text(); + } + + return result; + +} diff --git a/softwareDirectory/AutoVerScheme/technique_file_serve.h b/softwareDirectory/AutoVerScheme/technique_file_serve.h new file mode 100644 index 0000000..181b69c --- /dev/null +++ b/softwareDirectory/AutoVerScheme/technique_file_serve.h @@ -0,0 +1,26 @@ +#ifndef TECHNIQUE_FILE_SERVE_H +#define TECHNIQUE_FILE_SERVE_H +#include +#include +#include +#include "QList" + +//技术文件 +class Technique_File +{ +public: + QString file_distribute_no; + QString file_name; + QString version_no; + QString active_date; + QString remark; +}; + +class Technique_File_Serve +{ +public: + Technique_File_Serve(); + QList getTechnique_File(); +}; + +#endif // TECHNIQUE_FILE_SERVE_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..b7a92d8 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/verification_data_management_serve.h @@ -0,0 +1,74 @@ +#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 VerificationResultData +{ +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; + QString other_outcome; +}; + + +class Verification_Data_Management_Serve +{ +public: + Verification_Data_Management_Serve(); + QList getVerificationData(); + QList getVerificationBasicDataDetails(QString id); + QList getVerificationResultData(QString sampleId); +}; + +#endif // VERIFICATION_DATA_MANAGEMENT_SERVE_H