diff --git a/bin/xyylMCWEACSystem.exe b/bin/xyylMCWEACSystem.exe index 27b4853..c5e90e1 100644 Binary files a/bin/xyylMCWEACSystem.exe and b/bin/xyylMCWEACSystem.exe differ diff --git a/xyylMCWEACSystem/datamanager.cpp b/xyylMCWEACSystem/datamanager.cpp index 2ab26f0..3549655 100644 --- a/xyylMCWEACSystem/datamanager.cpp +++ b/xyylMCWEACSystem/datamanager.cpp @@ -86,3 +86,55 @@ void DataManager::initTable() } } + +//更新医院信息 +bool DataManager::updateHospitalInfo(QString sHostpitalName, + QString UserName, + QString sSection, + QString UserPasswd, + QString UserNum, + QString RePasswd, + QString DataName) + +{ + + QMap map; + map.insert("f_HostpitalName", sHostpitalName); + map.insert("f_UserName", UserName); + map.insert("f_Section", sSection); + map.insert("f_UserPasswd", UserPasswd); + map.insert("f_UserNum", UserNum); + map.insert("f_RePasswd", RePasswd); + map.insert("f_DataName",DataName); + + SqlGenerate sqlGener; + QString sql = sqlGener.insertData("t_Hostpital",map); + qDebug()< map; + map.insert("f_CheckNum", CheckNum); + map.insert("f_Type", Type); + map.insert("f_Name", _Name); + map.insert("f_Sex", Sex); + map.insert("f_Birthday", Birthday); + map.insert("f_Year", Year); + map.insert("f_Laterality", Laterality); + map.insert("f_Other", Other); + SqlGenerate sqlGener; + QString sql = sqlGener.insertData("t_Hostpital",map); + qDebug()<