UserNetInterface.cpp 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348
  1. #define PHMS_DLL_EXPORTS
  2. #include "UserNetInterface.h"
  3. #include "ExternalNetInterface.h"
  4. #include "ErrorCode.h"
  5. #include <map>
  6. #include <string>
  7. #include "NetThreadManager.h"
  8. #include "PhmsLogger.h"
  9. //#include "TempGuanXinDB.h"
  10. using namespace std;
  11. int UserLogin(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringUsername, const char* stringPassword, const char* stringRole, const char* stringToken, char* stringIp)
  12. {
  13. if(handle==NULL || stringLocalFilePath==NULL || stringUsername==NULL || stringPassword==NULL || stringRole==NULL)
  14. {
  15. return COMMON_PARAMETER_NULL;
  16. }
  17. string stringUuid = handle;
  18. CExternalNetInterface* pNetInterface = NULL;
  19. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  20. if(pNetInterface == NULL)
  21. {
  22. //写日志
  23. return COMMON_INVALID_HANDLE;
  24. }
  25. int nRet = PHMS_SUCCESSFUL_RESULT;
  26. string stringServerIp;
  27. nRet = pNetInterface->UserLogin(stringLocalFilePath, stringUsername, stringPassword, stringRole, stringToken, stringServerIp);
  28. if(stringServerIp.size() != 0)
  29. {
  30. strcpy(stringIp, stringServerIp.c_str());
  31. }
  32. return nRet;
  33. }
  34. int GetUserInfo(NET_HANDLE handle, const char* stringLocalFilePath)
  35. {
  36. if(handle==NULL || stringLocalFilePath==NULL)
  37. {
  38. return COMMON_PARAMETER_NULL;
  39. }
  40. string stringUuid = handle;
  41. CExternalNetInterface* pNetInterface = NULL;
  42. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  43. if(pNetInterface == NULL)
  44. {
  45. //写日志
  46. return COMMON_INVALID_HANDLE;
  47. }
  48. return pNetInterface->GetUserInfo(stringLocalFilePath);
  49. }
  50. int GetHospitalInfo(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringHospitalId)
  51. {
  52. if(handle==NULL || stringLocalFilePath==NULL || stringHospitalId==NULL)
  53. {
  54. return COMMON_PARAMETER_NULL;
  55. }
  56. string stringUuid = handle;
  57. CExternalNetInterface* pNetInterface = NULL;
  58. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  59. if(pNetInterface == NULL)
  60. {
  61. //写日志
  62. return COMMON_INVALID_HANDLE;
  63. }
  64. return pNetInterface->GetHospitalInfo(stringLocalFilePath, stringHospitalId);
  65. }
  66. int GetDoctorInfo(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringDoctorId)
  67. {
  68. if(handle==NULL || stringLocalFilePath==NULL || stringDoctorId==NULL)
  69. {
  70. return COMMON_PARAMETER_NULL;
  71. }
  72. string stringUuid = handle;
  73. CExternalNetInterface* pNetInterface = NULL;
  74. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  75. if(pNetInterface == NULL)
  76. {
  77. //写日志
  78. return COMMON_INVALID_HANDLE;
  79. }
  80. return pNetInterface->GetDoctorInfo(stringLocalFilePath, stringDoctorId);
  81. }
  82. int UploadCase(NET_HANDLE handle, char* stringCaseId, const char* stringName, const char* stringThirdId, const char* stringDataType, const char* stringDataTypeName, const char* stringNotes, const char* stringHospitalId,
  83. const char* stringHospitalName, const char* stringDoctorId, const char* stringDoctorName, const char* stringCheckTime, const char* stringOtherParam, const char* stringDeviceId, const char* stringDeviceName, const char* stringCaseOrigin, const char* stringYzlb, const char* stringSex,
  84. const char* stringApplicationNo, const char* stringAutoMatic, const char* stringLocalCasePath, pProgressAndSpeedCallback pCallback)
  85. {
  86. if(handle==NULL || stringCaseId==NULL || stringName==NULL || stringThirdId==NULL || stringDataType==NULL || stringDataTypeName==NULL || stringNotes==NULL || stringHospitalId==NULL ||
  87. stringHospitalName==NULL || stringDoctorId==NULL || stringDoctorName==NULL || stringCheckTime==NULL || stringOtherParam==NULL || stringDeviceId==NULL || stringDeviceName==NULL || stringCaseOrigin==NULL || stringYzlb==NULL || stringSex==NULL ||
  88. stringApplicationNo==NULL ||stringLocalCasePath==NULL)
  89. {
  90. return COMMON_PARAMETER_NULL;
  91. }
  92. string stringUuid = handle;
  93. CExternalNetInterface* pNetInterface = NULL;
  94. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  95. if(pNetInterface == NULL)
  96. {
  97. //写日志
  98. return COMMON_INVALID_HANDLE;
  99. }
  100. string stringTempCaseId = stringCaseId;
  101. int nRet = PHMS_SUCCESSFUL_RESULT;
  102. nRet = pNetInterface->UploadCase(stringTempCaseId, stringName, stringThirdId, stringDataType, stringDataTypeName, stringNotes, stringHospitalId, stringHospitalName, stringDoctorId,
  103. stringDoctorName, stringCheckTime, stringOtherParam, stringDeviceId, stringDeviceName, stringCaseOrigin, stringYzlb, stringSex, stringApplicationNo, stringAutoMatic, stringLocalCasePath, pCallback);
  104. if(stringTempCaseId.size() != 0)
  105. {
  106. strcpy(stringCaseId, stringTempCaseId.c_str());
  107. }
  108. return nRet;
  109. }
  110. int UserDownloadReport(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringCaseId, const char* stringReportId, const char* stringUri, unsigned long nFileSize,
  111. pProgressAndSpeedCallback pCallback)
  112. {
  113. if(handle==NULL || stringLocalFilePath==NULL || stringCaseId==NULL || stringReportId==NULL || stringUri==NULL)
  114. {
  115. return COMMON_PARAMETER_NULL;
  116. }
  117. string stringUuid = handle;
  118. CExternalNetInterface* pNetInterface = NULL;
  119. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  120. if(pNetInterface == NULL)
  121. {
  122. //写日志
  123. return COMMON_INVALID_HANDLE;
  124. }
  125. return pNetInterface->UserDownloadReport(stringLocalFilePath, stringCaseId, stringReportId, stringUri, nFileSize, pCallback);
  126. }
  127. int GetCaseReportState(NET_HANDLE handle, char* stringReportState, const char* stringCaseId)
  128. {
  129. if(handle==NULL || stringReportState==NULL || stringCaseId==NULL)
  130. {
  131. return COMMON_PARAMETER_NULL;
  132. }
  133. string stringUuid = handle;
  134. CExternalNetInterface* pNetInterface = NULL;
  135. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  136. if(pNetInterface == NULL)
  137. {
  138. //写日志
  139. return COMMON_INVALID_HANDLE;
  140. }
  141. string stringTempReportState;
  142. int nRet = PHMS_SUCCESSFUL_RESULT;
  143. nRet = pNetInterface->GetCaseReportState(stringTempReportState, stringCaseId);
  144. if(stringTempReportState.size() != 0)
  145. {
  146. strcpy(stringReportState, stringTempReportState.c_str());
  147. }
  148. return nRet;
  149. }
  150. int UserGetReportList(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringReportId, const char* stringReportStartDate, const char* stringReportEndDate,
  151. const char* stringCaseType, const char* stringReportState, const char* stringOrderBy, unsigned long nPageTo, unsigned long nPageSize)
  152. {
  153. if(handle==NULL || stringLocalFilePath==NULL || stringReportId==NULL || stringReportStartDate==NULL || stringReportEndDate==NULL ||
  154. stringCaseType==NULL || stringReportState==NULL || stringOrderBy==NULL)
  155. {
  156. return COMMON_PARAMETER_NULL;
  157. }
  158. string stringUuid = handle;
  159. CExternalNetInterface* pNetInterface = NULL;
  160. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  161. if(pNetInterface == NULL)
  162. {
  163. //写日志
  164. return COMMON_INVALID_HANDLE;
  165. }
  166. return pNetInterface->UserGetReportList(stringLocalFilePath, stringReportId, stringReportStartDate, stringReportEndDate, stringCaseType, stringReportState, stringOrderBy, nPageTo, nPageSize);
  167. }
  168. int UserGetCaseList(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringCaseId, const char* stringCaseType, const char* stringCaseState, const char* stringThirdId, const char* stringName,
  169. const char* stringStartDate, const char* stringEndDate, const char* stringCheckStartDate, const char* stringCheckEndDate, const char* stringCaseOrigin,
  170. const char* stringYzlb, const char* stringSex, const char* stringIsRead, const char* stringOrderBy, unsigned int nPageTo, unsigned int nPageSize)
  171. {
  172. if(handle==NULL || stringLocalFilePath==NULL || stringCaseId==NULL || stringCaseType==NULL || stringCaseState==NULL ||
  173. stringThirdId==NULL || stringName==NULL || stringStartDate==NULL || stringEndDate==NULL || stringCheckStartDate==NULL || stringCheckEndDate==NULL ||
  174. stringCaseOrigin==NULL || stringYzlb==NULL || stringSex==NULL)
  175. {
  176. return COMMON_PARAMETER_NULL;
  177. }
  178. string stringUuid = handle;
  179. CExternalNetInterface* pNetInterface = NULL;
  180. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  181. if(pNetInterface == NULL)
  182. {
  183. //写日志
  184. return COMMON_INVALID_HANDLE;
  185. }
  186. return pNetInterface->UserGetCaseList(stringLocalFilePath, stringCaseId, stringCaseType, stringCaseState, stringThirdId, stringName, stringStartDate, stringEndDate, stringCheckStartDate,
  187. stringCheckEndDate, stringCaseOrigin, stringYzlb, stringSex, stringIsRead, stringOrderBy, nPageTo, nPageSize);
  188. }
  189. int GetAdvice(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringSgId, const char* stringUserId, const char* stringDoctorId, const char* stringDownloadState, const char* stringType,
  190. const char* stringStartDate, const char* stringEndDate, unsigned int nPageTo, unsigned int nPageSize)
  191. {
  192. if(handle==NULL || stringLocalFilePath==NULL || stringUserId==NULL || stringSgId==NULL || stringDoctorId==NULL || stringDownloadState==NULL || stringType==NULL || stringStartDate==NULL ||
  193. stringEndDate==NULL)
  194. {
  195. return COMMON_PARAMETER_NULL;
  196. }
  197. string stringUuid = handle;
  198. CExternalNetInterface* pNetInterface = NULL;
  199. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  200. if(pNetInterface == NULL)
  201. {
  202. //写日志
  203. return COMMON_INVALID_HANDLE;
  204. }
  205. return pNetInterface->GetAdvice(stringLocalFilePath, stringSgId, stringUserId, stringDoctorId, stringDownloadState, stringType, stringStartDate, stringEndDate, nPageTo, nPageSize);
  206. }
  207. int MarkReportRead(NET_HANDLE handle, const char* stringReportId)
  208. {
  209. if(handle==NULL || stringReportId==NULL)
  210. {
  211. return COMMON_PARAMETER_NULL;
  212. }
  213. string stringUuid = handle;
  214. CExternalNetInterface* pNetInterface = NULL;
  215. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  216. if(pNetInterface == NULL)
  217. {
  218. //写日志
  219. return COMMON_INVALID_HANDLE;
  220. }
  221. return pNetInterface->MarkReportRead(stringReportId);
  222. }
  223. int CardUserChangeInfo(NET_HANDLE handle, const char* stringPId, const char* stringName, const char* stringSex, const char* stringTel, const char* stringBirthday, const char* stringAddress, const char* stringLmp, const char* stringToken,
  224. const char* stringHeight, const char* stringWeight, const char* stringPhoto, const char* stringVCodeBeFollowed, const char* stringHospitalId, const char* stringOtherInfo)
  225. {
  226. if(handle==NULL || stringPId==NULL || stringName==NULL || stringSex==NULL || stringTel==NULL || stringBirthday==NULL || stringAddress==NULL || stringLmp==NULL ||
  227. stringToken==NULL || stringHeight==NULL || stringWeight==NULL || stringPhoto==NULL || stringVCodeBeFollowed==NULL || stringHospitalId==NULL)
  228. {
  229. return COMMON_PARAMETER_NULL;
  230. }
  231. string stringUuid = handle;
  232. CExternalNetInterface* pNetInterface = NULL;
  233. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  234. if(pNetInterface == NULL)
  235. {
  236. //写日志
  237. return COMMON_INVALID_HANDLE;
  238. }
  239. return pNetInterface->CardUserChangeInfo(stringPId, stringName, stringSex, stringTel, stringBirthday, stringAddress, stringLmp, stringToken, stringHeight, stringWeight, stringPhoto, stringVCodeBeFollowed, stringHospitalId, stringOtherInfo);
  240. }
  241. int CliniqueChangeInfo(NET_HANDLE handle, const char* stringPId, const char* stringName, const char* stringTel, const char* stringNotes)
  242. {
  243. if(handle==NULL || stringPId==NULL || stringName==NULL || stringTel==NULL || stringNotes==NULL)
  244. {
  245. return COMMON_PARAMETER_NULL;
  246. }
  247. string stringUuid = handle;
  248. CExternalNetInterface* pNetInterface = NULL;
  249. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  250. if(pNetInterface == NULL)
  251. {
  252. //写日志
  253. return COMMON_INVALID_HANDLE;
  254. }
  255. return pNetInterface->CliniqueChangeInfo(stringPId, stringName, stringTel, stringNotes);
  256. }
  257. int UploadTrendData(NET_HANDLE handle, const char* stringCardId, const char* stringDeviceId, const char* stringDeviceName, const char* stringCaseId, const RECORD_DATA* pRecordData, int nArrayLen)
  258. {
  259. if(handle==NULL || stringCardId==NULL || stringDeviceId==NULL || stringDeviceName==NULL ||
  260. stringCaseId==NULL || pRecordData==NULL || nArrayLen==0 || pRecordData->urineData.urineValue==NULL || pRecordData->hrConclusion.conclusion==NULL || pRecordData->checkTime==NULL)
  261. {
  262. return COMMON_PARAMETER_NULL;
  263. }
  264. string stringUuid = handle;
  265. CExternalNetInterface* pNetInterface = NULL;
  266. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  267. if(pNetInterface == NULL)
  268. {
  269. //写日志
  270. return COMMON_INVALID_HANDLE;
  271. }
  272. vector<RECORD_DATA> vRecordData;
  273. for(int i=0; i<nArrayLen; i++)
  274. {
  275. vRecordData.push_back(pRecordData[i]);
  276. }
  277. return pNetInterface->UploadTrendData(stringCardId, stringDeviceId, stringDeviceName, stringCaseId, vRecordData);
  278. }
  279. int NET_API UploadTrendDataString(NET_HANDLE handle, const char* stringCardId, const char* stringDeviceId, const char* stringDeviceName, const char* stringCaseId, const RECORD_DATA_STRING* pRecordData, int nArrayLen)
  280. {
  281. if(handle==NULL || stringCardId==NULL || stringDeviceId==NULL || stringDeviceName==NULL ||
  282. stringCaseId==NULL || pRecordData==NULL || nArrayLen==0)
  283. {
  284. return COMMON_PARAMETER_NULL;
  285. }
  286. string stringUuid = handle;
  287. CExternalNetInterface* pNetInterface = NULL;
  288. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  289. if(pNetInterface == NULL)
  290. {
  291. //写日志
  292. return COMMON_INVALID_HANDLE;
  293. }
  294. vector<RECORD_DATA_STRING> vRecordData;
  295. for(int i=0; i<nArrayLen; i++)
  296. {
  297. vRecordData.push_back(pRecordData[i]);
  298. }
  299. return pNetInterface->UploadTrendDataString(stringCardId, stringDeviceId, stringDeviceName, stringCaseId, vRecordData);
  300. }
  301. int UploadTrendDataFile(NET_HANDLE handle, const char* stringFilePath)
  302. {
  303. if(handle==NULL || stringFilePath==NULL)
  304. {
  305. return COMMON_PARAMETER_NULL;
  306. }
  307. string stringUuid = handle;
  308. CExternalNetInterface* pNetInterface = NULL;
  309. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  310. if(pNetInterface == NULL)
  311. {
  312. //写日志
  313. return COMMON_INVALID_HANDLE;
  314. }
  315. return pNetInterface->UploadTrendDataFile(stringFilePath);
  316. }
  317. int NET_API VerifyThirdId(NET_HANDLE handle, char* stringCardId, const char* stringUId, const char* stringType)
  318. {
  319. if(handle==NULL || stringCardId==NULL || stringUId==NULL || stringType==NULL)
  320. {
  321. return COMMON_PARAMETER_NULL;
  322. }
  323. string stringUuid = handle;
  324. CExternalNetInterface* pNetInterface = NULL;
  325. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  326. if(pNetInterface == NULL)
  327. {
  328. //写日志
  329. return COMMON_INVALID_HANDLE;
  330. }
  331. string stringTempCardId;
  332. int nRet = PHMS_SUCCESSFUL_RESULT;
  333. nRet = pNetInterface->VerifyThirdId(stringTempCardId, stringUId, stringType);
  334. if(stringTempCardId.size() != 0)
  335. {
  336. strcpy(stringCardId, stringTempCardId.c_str());
  337. }
  338. return nRet;
  339. }
  340. int GetDoctorList_999120(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringKtCliniqueId, const char* stringCaseTypeId)
  341. {
  342. if(handle==NULL || stringLocalFilePath==NULL || stringKtCliniqueId==NULL || stringCaseTypeId==NULL)
  343. {
  344. return COMMON_PARAMETER_NULL;
  345. }
  346. string stringUuid = handle;
  347. CExternalNetInterface* pNetInterface = NULL;
  348. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  349. if(pNetInterface == NULL)
  350. {
  351. //写日志
  352. return COMMON_INVALID_HANDLE;
  353. }
  354. string stringTempCardId;
  355. int nRet = PHMS_SUCCESSFUL_RESULT;
  356. nRet = pNetInterface->GetDoctorList_999120(stringLocalFilePath, stringKtCliniqueId, stringCaseTypeId);
  357. return nRet;
  358. }
  359. int ValidatePay_999120(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringConsumeId, const char* stringKtCliniqueId, const char* stringCardNumber, const char* stringKtDoctorId, const char* stringConsumeMoney, const char* stringCaseTypeId)
  360. {
  361. if(handle==NULL || stringLocalFilePath==NULL || stringConsumeId==NULL || stringKtCliniqueId==NULL || stringCardNumber==NULL || stringKtDoctorId==NULL || stringConsumeMoney==NULL || stringCaseTypeId==NULL)
  362. {
  363. return COMMON_PARAMETER_NULL;
  364. }
  365. string stringUuid = handle;
  366. CExternalNetInterface* pNetInterface = NULL;
  367. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  368. if(pNetInterface == NULL)
  369. {
  370. //写日志
  371. return COMMON_INVALID_HANDLE;
  372. }
  373. string stringTempCardId;
  374. int nRet = PHMS_SUCCESSFUL_RESULT;
  375. nRet = pNetInterface->ValidatePay_999120(stringLocalFilePath, stringConsumeId, stringKtCliniqueId, stringCardNumber, stringKtDoctorId, stringConsumeMoney, stringCaseTypeId);
  376. return nRet;
  377. }
  378. int UpdateCaseForConsumerRecord_999120(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringConsumeId, const char* stringKtCaseId, const char* stringCaseTypeId)
  379. {
  380. if(handle==NULL || stringLocalFilePath==NULL || stringConsumeId==NULL || stringKtCaseId==NULL || stringCaseTypeId==NULL)
  381. {
  382. return COMMON_PARAMETER_NULL;
  383. }
  384. string stringUuid = handle;
  385. CExternalNetInterface* pNetInterface = NULL;
  386. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  387. if(pNetInterface == NULL)
  388. {
  389. //写日志
  390. return COMMON_INVALID_HANDLE;
  391. }
  392. string stringTempCardId;
  393. int nRet = PHMS_SUCCESSFUL_RESULT;
  394. nRet = pNetInterface->UpdateCaseForConsumerRecord_999120(stringLocalFilePath, stringConsumeId, stringKtCaseId, stringCaseTypeId);
  395. return nRet;
  396. }
  397. int PersonIdRegister(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringType, const char* stringRegFrom, const char* stringPersonId, const char* stringName, const char* stringSex, const char* stringBirthday, const char* stringAddress,
  398. const char* stringPhone, const char* stringHeigth, const char* stringUploadUnitId, const char* stringHospitalId, const char* stringHGroupId, const char* stringScode, const char* stringWxUId, const char* stringLmp,const char* stringWeight, const char* stringPassword,
  399. const char* stringThirdCode, const char* stringIsRegister)
  400. {
  401. if(handle==NULL || stringLocalFilePath==NULL || stringType==NULL || stringRegFrom==NULL || stringPersonId==NULL || stringName==NULL || stringSex==NULL || stringBirthday==NULL || stringAddress==0 ||
  402. stringPhone==NULL || stringHeigth==NULL || stringUploadUnitId==NULL || stringHospitalId==NULL || stringHGroupId==NULL || stringScode==NULL || stringWxUId==NULL || stringLmp==NULL || stringWeight ==NULL || stringPassword==NULL || stringThirdCode==NULL || stringIsRegister==NULL)
  403. {
  404. return COMMON_PARAMETER_NULL;
  405. }
  406. string stringUuid = handle;
  407. CExternalNetInterface* pNetInterface = NULL;
  408. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  409. if(pNetInterface == NULL)
  410. {
  411. //写日志
  412. return COMMON_INVALID_HANDLE;
  413. }
  414. return pNetInterface->PersonIdRegister(stringLocalFilePath, stringType, stringRegFrom, stringPersonId, stringName, stringSex, stringBirthday, stringAddress, stringPhone, stringHeigth, stringUploadUnitId, stringHospitalId, stringHGroupId, stringScode, stringWxUId, stringLmp, stringWeight, stringPassword, stringThirdCode, stringIsRegister);
  415. }
  416. int GetDataDictionary(NET_HANDLE handle, const char* stringLocalFilePath)
  417. {
  418. if(handle==NULL || stringLocalFilePath==NULL)
  419. {
  420. return COMMON_PARAMETER_NULL;
  421. }
  422. string stringUuid = handle;
  423. CExternalNetInterface* pNetInterface = NULL;
  424. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  425. if(pNetInterface == NULL)
  426. {
  427. //写日志
  428. return COMMON_INVALID_HANDLE;
  429. }
  430. return pNetInterface->GetDataDictionary(stringLocalFilePath);
  431. }
  432. int LoggingHealthBaseInfo(NET_HANDLE handle, const char* stringUserId, const char* stringWeblock, const char* stringNation, const char* stringProfression, const char* stringCrowd, const char* stringBloodType,
  433. const char* stringJwsJiBing, const char* stringJwsShouShu, const char* stringJwsWaiShang, const char* stringJwsShuXue, const char* stringJwsBaoLuShi, const char* stringJwsBaoLuShiBz,
  434. const char* stringJwsYiChuanJiBing, const char* stringGmsGuoMinShi, const char* stringGmsGuoMinShiBz, const char* stringJzsFuQin, const char* stringJzsFuQinBz, const char* stringJzsMuQin,
  435. const char* stringJzsMuQinBz, const char* stringJzsXdjm, const char* stringJzsXdjmBz, const char* stringJzsZiNv, const char* stringJzsZiNvBz, const char* stringJzsQiTa)
  436. {
  437. if(handle==NULL || stringUserId==NULL || stringWeblock==NULL || stringNation==NULL || stringProfression==NULL || stringCrowd==NULL || stringBloodType==NULL ||
  438. stringJwsJiBing==NULL || stringJwsShouShu==NULL || stringJwsWaiShang==NULL || stringJwsShuXue==NULL || stringJwsBaoLuShi==NULL || stringJwsBaoLuShiBz==NULL ||
  439. stringJwsYiChuanJiBing==NULL || stringGmsGuoMinShi==NULL || stringGmsGuoMinShiBz==NULL || stringJzsFuQin==NULL || stringJzsFuQinBz==NULL || stringJzsMuQin==NULL ||
  440. stringJzsMuQinBz==NULL || stringJzsXdjm==NULL || stringJzsXdjmBz==NULL || stringJzsZiNv==NULL || stringJzsZiNvBz==NULL || stringJzsQiTa==NULL)
  441. {
  442. return COMMON_PARAMETER_NULL;
  443. }
  444. string stringUuid = handle;
  445. CExternalNetInterface* pNetInterface = NULL;
  446. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  447. if(pNetInterface == NULL)
  448. {
  449. //写日志
  450. return COMMON_INVALID_HANDLE;
  451. }
  452. return pNetInterface->LoggingHealthBaseInfo(stringUserId, stringWeblock, stringNation, stringProfression, stringCrowd, stringBloodType, stringJwsJiBing, stringJwsShouShu, stringJwsWaiShang, stringJwsShuXue,
  453. stringJwsBaoLuShi, stringJwsBaoLuShiBz, stringJwsYiChuanJiBing, stringGmsGuoMinShi, stringGmsGuoMinShiBz, stringJzsFuQin, stringJzsFuQinBz, stringJzsMuQin, stringJzsMuQinBz, stringJzsXdjm, stringJzsXdjmBz,
  454. stringJzsZiNv, stringJzsZiNvBz, stringJzsQiTa);
  455. }
  456. int LoggingHealthCurrentInfo(NET_HANDLE handle, const char* stringUserId, const char* stringShfsYinShi, const char* stringShfsXlzk, const char* stringShfsXlzkBz, const char* stringShfsXltz, const char* stringShfsXiYan,
  457. const char* stringShfsYinJiu, const char* stringShfsSyqk, const char* stringShfsYunDong, const char* stringShfsYunDongShiJian, const char* stringSysjcDanGuChun, const char* stringSysjcXueChangGui,
  458. const char* stringSysjcXueChangGuiBz, const char* stringSysjcNiaoChangGui, const char* stringSysjcNiaoChangGuiBz, const char* stringSysjcQiTa, const char* stringYongYao, const char* stringZhuYuan,
  459. const char* stringJkwtNaoXueGuan, const char* stringJkwtNaoXueGuanBz, const char* stringJkwtShenZang, const char* stringJkwtShenZangBz, const char* stringJkwtXinZang, const char* stringJkwtXinZangBz,
  460. const char* stringJkwtXueGuan, const char* stringJkwtXueGuanBz, const char* stringJkwtYanBu, const char* stringJkwtYanBuBz, const char* stringJkwtShenJing, const char* stringJkwtQiTa, const char* stringDate)
  461. {
  462. if(handle==NULL || stringUserId==NULL || stringShfsYinShi==NULL || stringShfsXlzk==NULL || stringShfsXlzkBz==NULL || stringShfsXltz==NULL || stringShfsXiYan==NULL ||
  463. stringShfsYinJiu==NULL || stringShfsSyqk==NULL || stringShfsYunDong==NULL || stringShfsYunDongShiJian==NULL || stringSysjcDanGuChun==NULL || stringSysjcXueChangGui==NULL ||
  464. stringSysjcXueChangGuiBz==NULL || stringSysjcNiaoChangGui==NULL || stringSysjcNiaoChangGuiBz==NULL || stringSysjcQiTa==NULL || stringYongYao==NULL || stringZhuYuan==NULL ||
  465. stringJkwtNaoXueGuan==NULL || stringJkwtNaoXueGuanBz==NULL || stringJkwtShenZang==NULL || stringJkwtShenZangBz==NULL || stringJkwtXinZang==NULL || stringJkwtXinZangBz==NULL ||
  466. stringJkwtXueGuan==NULL|| stringJkwtXueGuanBz==NULL || stringJkwtYanBu==NULL || stringJkwtYanBuBz==NULL || stringJkwtShenJing==NULL || stringJkwtQiTa==NULL || stringDate==NULL)
  467. {
  468. return COMMON_PARAMETER_NULL;
  469. }
  470. string stringUuid = handle;
  471. CExternalNetInterface* pNetInterface = NULL;
  472. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  473. if(pNetInterface == NULL)
  474. {
  475. //写日志
  476. return COMMON_INVALID_HANDLE;
  477. }
  478. return pNetInterface->LoggingHealthCurrentInfo(stringUserId, stringShfsYinShi, stringShfsXlzk, stringShfsXlzkBz, stringShfsXltz, stringShfsXiYan, stringShfsYinJiu, stringShfsSyqk, stringShfsYunDong, stringShfsYunDongShiJian,
  479. stringSysjcDanGuChun, stringSysjcXueChangGui, stringSysjcXueChangGuiBz, stringSysjcNiaoChangGui, stringSysjcNiaoChangGuiBz, stringSysjcQiTa, stringYongYao, stringZhuYuan, stringJkwtNaoXueGuan, stringJkwtNaoXueGuanBz,
  480. stringJkwtShenZang, stringJkwtShenZangBz, stringJkwtXinZang, stringJkwtXinZangBz, stringJkwtXueGuan, stringJkwtXueGuanBz, stringJkwtYanBu, stringJkwtYanBuBz, stringJkwtShenJing, stringJkwtQiTa, stringDate);
  481. }
  482. int UpdateCaseInfo(NET_HANDLE handle, char* stringDoctorId, const char* stringHospitalId, const char* stringCaseId, const char* stringOtherParam, const char* stringFlag, const char* stringNotes, const char* stringReceiver)
  483. {
  484. if(handle==NULL || stringDoctorId==NULL || stringHospitalId==NULL || stringCaseId==NULL || stringOtherParam==NULL || stringFlag==NULL || stringNotes==NULL || stringReceiver==NULL)
  485. {
  486. return COMMON_PARAMETER_NULL;
  487. }
  488. string stringUuid = handle;
  489. CExternalNetInterface* pNetInterface = NULL;
  490. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  491. if(pNetInterface == NULL)
  492. {
  493. //写日志
  494. return COMMON_INVALID_HANDLE;
  495. }
  496. int nRet = PHMS_SUCCESSFUL_RESULT;
  497. string stringTemp;
  498. nRet = pNetInterface->UpdateCaseInfo(stringTemp, stringHospitalId, stringCaseId, stringOtherParam, stringFlag, stringNotes, stringReceiver);
  499. if(nRet == PHMS_SUCCESSFUL_RESULT)
  500. {
  501. strcpy(stringDoctorId, stringTemp.c_str());
  502. }
  503. return nRet;
  504. }
  505. int PersonIdRegisterAndLogin(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringRole, const char* stringPId, const char* stringName, const char* stringSex, const char* stringBirthday, const char* stringAddress, const char* stringDeviceId, const char* stringHospitalId,
  506. const char* stringLang, const char* stringRegFrom)
  507. {
  508. if(handle==NULL || stringLocalFilePath==NULL || stringRole==NULL || stringPId==NULL || stringName==NULL || stringSex==NULL || stringBirthday==NULL || stringAddress==NULL || stringDeviceId==NULL || stringHospitalId==NULL || stringLang==NULL || stringRegFrom==NULL)
  509. {
  510. return COMMON_PARAMETER_NULL;
  511. }
  512. string stringUuid = handle;
  513. CExternalNetInterface* pNetInterface = NULL;
  514. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  515. if(pNetInterface == NULL)
  516. {
  517. //写日志
  518. return COMMON_INVALID_HANDLE;
  519. }
  520. return pNetInterface->PersonIdRegisterAndLogin(stringLocalFilePath, stringRole, stringPId, stringName, stringSex, stringBirthday, stringAddress, stringDeviceId, stringHospitalId, stringLang, stringRegFrom);
  521. }
  522. int UploadTrendData2(NET_HANDLE handle, const char* stringTargetPath)
  523. {
  524. if(handle==NULL || stringTargetPath==NULL)
  525. {
  526. return COMMON_PARAMETER_NULL;
  527. }
  528. string stringUuid = handle;
  529. CExternalNetInterface* pNetInterface = NULL;
  530. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  531. if(pNetInterface == NULL)
  532. {
  533. //写日志
  534. return COMMON_INVALID_HANDLE;
  535. }
  536. return pNetInterface->UploadTrendData2(stringTargetPath);
  537. }
  538. int CardBindPhone(NET_HANDLE handle, const char* stringPhone, const char* stringScode)
  539. {
  540. if(handle==NULL || stringPhone==NULL || stringScode==NULL)
  541. {
  542. return COMMON_PARAMETER_NULL;
  543. }
  544. string stringUuid = handle;
  545. CExternalNetInterface* pNetInterface = NULL;
  546. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  547. if(pNetInterface == NULL)
  548. {
  549. //写日志
  550. return COMMON_INVALID_HANDLE;
  551. }
  552. return pNetInterface->CardBindPhone(stringPhone, stringScode);
  553. }
  554. int ResetPassword(NET_HANDLE handle, const char* stringPhone, const char* stringScode, const char* stringNewPwd)
  555. {
  556. if(handle==NULL || stringPhone==NULL || stringScode==NULL || stringNewPwd==NULL)
  557. {
  558. return COMMON_PARAMETER_NULL;
  559. }
  560. string stringUuid = handle;
  561. CExternalNetInterface* pNetInterface = NULL;
  562. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  563. if(pNetInterface == NULL)
  564. {
  565. //写日志
  566. return COMMON_INVALID_HANDLE;
  567. }
  568. return pNetInterface->ResetPassword(stringPhone, stringScode, stringNewPwd);
  569. }
  570. int UploadDaily(NET_HANDLE handle, const char* stringType, const char* stringCreateTime, const char* stringFiles)
  571. {
  572. if(handle==NULL || stringType==NULL || stringCreateTime==NULL || stringFiles==NULL)
  573. {
  574. return COMMON_PARAMETER_NULL;
  575. }
  576. string stringUuid = handle;
  577. CExternalNetInterface* pNetInterface = NULL;
  578. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  579. if(pNetInterface == NULL)
  580. {
  581. //写日志
  582. return COMMON_INVALID_HANDLE;
  583. }
  584. return pNetInterface->UploadDaily(stringType, stringCreateTime, stringFiles);
  585. }
  586. int GetDateListOfDaily(NET_HANDLE handle, const char* stringLocalPath, const char* stringYear, const char* stringMonth)
  587. {
  588. if(handle==NULL || stringLocalPath==NULL || stringYear==NULL || stringMonth==NULL)
  589. {
  590. return COMMON_PARAMETER_NULL;
  591. }
  592. string stringUuid = handle;
  593. CExternalNetInterface* pNetInterface = NULL;
  594. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  595. if(pNetInterface == NULL)
  596. {
  597. //写日志
  598. return COMMON_INVALID_HANDLE;
  599. }
  600. return pNetInterface->GetDateListOfDaily(stringLocalPath, stringYear, stringMonth);
  601. }
  602. int GetDailyOfDate(NET_HANDLE handle, const char* stringLocalPath, const char* stringDate, const char* stringType)
  603. {
  604. if(handle==NULL || stringLocalPath==NULL || stringDate==NULL || stringType==NULL)
  605. {
  606. return COMMON_PARAMETER_NULL;
  607. }
  608. string stringUuid = handle;
  609. CExternalNetInterface* pNetInterface = NULL;
  610. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  611. if(pNetInterface == NULL)
  612. {
  613. //写日志
  614. return COMMON_INVALID_HANDLE;
  615. }
  616. return pNetInterface->GetDailyOfDate(stringLocalPath, stringDate, stringType);
  617. }
  618. int ShareDaily(NET_HANDLE handle, const char* stringLocalPath, const char* stringType, const char* stringCreateTime)
  619. {
  620. if(handle==NULL || stringLocalPath==NULL || stringType==NULL || stringCreateTime==NULL)
  621. {
  622. return COMMON_PARAMETER_NULL;
  623. }
  624. string stringUuid = handle;
  625. CExternalNetInterface* pNetInterface = NULL;
  626. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  627. if(pNetInterface == NULL)
  628. {
  629. //写日志
  630. return COMMON_INVALID_HANDLE;
  631. }
  632. return pNetInterface->ShareDaily(stringLocalPath, stringType, stringCreateTime);
  633. }
  634. int DeleteDaily(NET_HANDLE handle, const char* stringType, const char* stringDate)
  635. {
  636. if(handle==NULL || stringType==NULL || stringDate==NULL)
  637. {
  638. return COMMON_PARAMETER_NULL;
  639. }
  640. string stringUuid = handle;
  641. CExternalNetInterface* pNetInterface = NULL;
  642. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  643. if(pNetInterface == NULL)
  644. {
  645. //写日志
  646. return COMMON_INVALID_HANDLE;
  647. }
  648. return pNetInterface->DeleteDaily(stringType, stringDate);
  649. }
  650. int PhoneScanQR(NET_HANDLE handle, char* stringSence, const char* stringQRCode)
  651. {
  652. if(handle==NULL || stringSence==NULL || stringQRCode==NULL)
  653. {
  654. return COMMON_PARAMETER_NULL;
  655. }
  656. string stringUuid = handle;
  657. CExternalNetInterface* pNetInterface = NULL;
  658. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  659. if(pNetInterface == NULL)
  660. {
  661. //写日志
  662. return COMMON_INVALID_HANDLE;
  663. }
  664. string stringTempSence = stringSence;
  665. int nRet = pNetInterface->PhoneScanQR(stringTempSence, stringQRCode);
  666. if(stringTempSence.size() != 0)
  667. {
  668. strcpy(stringSence, stringTempSence.c_str());
  669. }
  670. return nRet;
  671. }
  672. int PhoneScanQRVerify(NET_HANDLE handle, const char* stringQRCode)
  673. {
  674. if(handle==NULL || stringQRCode==NULL)
  675. {
  676. return COMMON_PARAMETER_NULL;
  677. }
  678. string stringUuid = handle;
  679. CExternalNetInterface* pNetInterface = NULL;
  680. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  681. if(pNetInterface == NULL)
  682. {
  683. //写日志
  684. return COMMON_INVALID_HANDLE;
  685. }
  686. return pNetInterface->PhoneScanQRVerify(stringQRCode);
  687. }
  688. int RegisterBluetoothDevice(NET_HANDLE handle, const char* stringUniqueSN, const char* stringSerial, const char* stringBluetoothAddress, const char* stringBluetoothName, const char* stringDeviceType)
  689. {
  690. if(handle==NULL || stringUniqueSN==NULL || stringSerial==NULL || stringBluetoothAddress==NULL || stringBluetoothName==NULL || stringDeviceType==NULL)
  691. {
  692. return COMMON_PARAMETER_NULL;
  693. }
  694. string stringUuid = handle;
  695. CExternalNetInterface* pNetInterface = NULL;
  696. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  697. if(pNetInterface == NULL)
  698. {
  699. //写日志
  700. return COMMON_INVALID_HANDLE;
  701. }
  702. return pNetInterface->RegisterBluetoothDevice(stringUniqueSN, stringSerial, stringBluetoothAddress, stringBluetoothName, stringDeviceType);
  703. }
  704. int GetBluetoothInfoOfDevice(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringUniqueSN)
  705. {
  706. if(handle==NULL || stringUniqueSN==NULL || stringLocalFilePath==NULL)
  707. {
  708. return COMMON_PARAMETER_NULL;
  709. }
  710. string stringUuid = handle;
  711. CExternalNetInterface* pNetInterface = NULL;
  712. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  713. if(pNetInterface == NULL)
  714. {
  715. //写日志
  716. return COMMON_INVALID_HANDLE;
  717. }
  718. return pNetInterface->GetBluetoothInfoOfDevice(stringLocalFilePath, stringUniqueSN);
  719. }
  720. int ChangeDeviceType(NET_HANDLE handle, const char* stringUniqueSN, const char* stringDeviceType)
  721. {
  722. if(handle==NULL || stringUniqueSN==NULL || stringDeviceType==NULL)
  723. {
  724. return COMMON_PARAMETER_NULL;
  725. }
  726. string stringUuid = handle;
  727. CExternalNetInterface* pNetInterface = NULL;
  728. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  729. if(pNetInterface == NULL)
  730. {
  731. //写日志
  732. return COMMON_INVALID_HANDLE;
  733. }
  734. return pNetInterface->ChangeDeviceType(stringUniqueSN, stringDeviceType);
  735. }
  736. int UnregisterBluetoothDevice(NET_HANDLE handle, const char* stringUniqueSN)
  737. {
  738. if(handle==NULL || stringUniqueSN==NULL)
  739. {
  740. return COMMON_PARAMETER_NULL;
  741. }
  742. string stringUuid = handle;
  743. CExternalNetInterface* pNetInterface = NULL;
  744. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  745. if(pNetInterface == NULL)
  746. {
  747. //写日志
  748. return COMMON_INVALID_HANDLE;
  749. }
  750. return pNetInterface->UnregisterBluetoothDevice(stringUniqueSN);
  751. }
  752. int ValidatePay_XinJie(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringRrn, const char* stringLocalDate)
  753. {
  754. if(handle==NULL || stringRrn==NULL || stringLocalDate==NULL || stringLocalFilePath==NULL)
  755. {
  756. return COMMON_PARAMETER_NULL;
  757. }
  758. string stringUuid = handle;
  759. CExternalNetInterface* pNetInterface = NULL;
  760. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  761. if(pNetInterface == NULL)
  762. {
  763. //写日志
  764. return COMMON_INVALID_HANDLE;
  765. }
  766. return pNetInterface->ValidatePay_XinJie(stringLocalFilePath, stringRrn, stringLocalDate);
  767. }
  768. int NotifyCheck_XinJie(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringRrn, const char* stringLocalDate)
  769. {
  770. if(handle==NULL || stringRrn==NULL || stringLocalDate==NULL || stringLocalFilePath==NULL)
  771. {
  772. return COMMON_PARAMETER_NULL;
  773. }
  774. string stringUuid = handle;
  775. CExternalNetInterface* pNetInterface = NULL;
  776. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  777. if(pNetInterface == NULL)
  778. {
  779. //写日志
  780. return COMMON_INVALID_HANDLE;
  781. }
  782. return pNetInterface->NotifyCheck_XinJie(stringLocalFilePath, stringRrn, stringLocalDate);
  783. }
  784. int GetHospitalListOfArea(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringAreaId, const char* stringRank, const char* stringBeta)
  785. {
  786. if(handle==NULL || stringLocalFilePath==NULL || stringAreaId==NULL || stringRank==NULL || stringBeta==NULL)
  787. {
  788. return COMMON_PARAMETER_NULL;
  789. }
  790. string stringUuid = handle;
  791. CExternalNetInterface* pNetInterface = NULL;
  792. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  793. if(pNetInterface == NULL)
  794. {
  795. //写日志
  796. return COMMON_INVALID_HANDLE;
  797. }
  798. return pNetInterface->GetHospitalListOfArea(stringLocalFilePath, stringAreaId, stringRank, stringBeta);
  799. }
  800. int SearchSomebody(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringUserId)
  801. {
  802. if(handle==NULL || stringLocalFilePath==NULL || stringUserId==NULL)
  803. {
  804. return COMMON_PARAMETER_NULL;
  805. }
  806. string stringUuid = handle;
  807. CExternalNetInterface* pNetInterface = NULL;
  808. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  809. if(pNetInterface == NULL)
  810. {
  811. //写日志
  812. return COMMON_INVALID_HANDLE;
  813. }
  814. return pNetInterface->SearchSomebody(stringLocalFilePath, stringUserId);
  815. }
  816. int FollowSomebody(NET_HANDLE handle, const char* stringUserId, const char* stringUsername, const char* stringNickname, const char* stringVCode)
  817. {
  818. if(handle==NULL || stringUserId==NULL || stringUsername==NULL || stringNickname==NULL || stringVCode==NULL)
  819. {
  820. return COMMON_PARAMETER_NULL;
  821. }
  822. string stringUuid = handle;
  823. CExternalNetInterface* pNetInterface = NULL;
  824. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  825. if(pNetInterface == NULL)
  826. {
  827. //写日志
  828. return COMMON_INVALID_HANDLE;
  829. }
  830. return pNetInterface->FollowSomebody(stringUserId, stringUsername, stringNickname, stringVCode);
  831. }
  832. int MyFollowing(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringUserId, const char* stringNextId, const char* stringFType)
  833. {
  834. if(handle==NULL || stringLocalFilePath==NULL || stringUserId==NULL || stringNextId==NULL || stringFType==NULL)
  835. {
  836. return COMMON_PARAMETER_NULL;
  837. }
  838. string stringUuid = handle;
  839. CExternalNetInterface* pNetInterface = NULL;
  840. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  841. if(pNetInterface == NULL)
  842. {
  843. //写日志
  844. return COMMON_INVALID_HANDLE;
  845. }
  846. return pNetInterface->MyFollowing(stringLocalFilePath, stringUserId, stringNextId, stringFType);
  847. }
  848. int ChangeNicknameOfFollowed(NET_HANDLE handle, const char* stringUserId, const char* stringNickname)
  849. {
  850. if(handle==NULL || stringUserId==NULL || stringNickname==NULL)
  851. {
  852. return COMMON_PARAMETER_NULL;
  853. }
  854. string stringUuid = handle;
  855. CExternalNetInterface* pNetInterface = NULL;
  856. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  857. if(pNetInterface == NULL)
  858. {
  859. //写日志
  860. return COMMON_INVALID_HANDLE;
  861. }
  862. return pNetInterface->ChangeNicknameOfFollowed(stringUserId, stringNickname);
  863. }
  864. int CancelFollowing(NET_HANDLE handle, const char* stringUserId)
  865. {
  866. if(handle==NULL || stringUserId==NULL)
  867. {
  868. return COMMON_PARAMETER_NULL;
  869. }
  870. string stringUuid = handle;
  871. CExternalNetInterface* pNetInterface = NULL;
  872. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  873. if(pNetInterface == NULL)
  874. {
  875. //写日志
  876. return COMMON_INVALID_HANDLE;
  877. }
  878. return pNetInterface->CancelFollowing(stringUserId);
  879. }
  880. int GenerateOrDeletePngZlibReport(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringServerPath, const char* stringFlag)
  881. {
  882. if(handle==NULL || stringLocalFilePath==NULL || stringServerPath==NULL || stringFlag==NULL)
  883. {
  884. return COMMON_PARAMETER_NULL;
  885. }
  886. string stringUuid = handle;
  887. CExternalNetInterface* pNetInterface = NULL;
  888. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  889. if(pNetInterface == NULL)
  890. {
  891. //写日志
  892. return COMMON_INVALID_HANDLE;
  893. }
  894. return pNetInterface->GenerateOrDeletePngZlibReport(stringLocalFilePath, stringServerPath, stringFlag);
  895. }
  896. int GetDailyList(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringType, const char* stringStartDate, const char* stringEndDate, const char* stringOrderBy, const char* stringNextId, const char* stringPageSize)
  897. {
  898. if(handle==NULL || stringLocalFilePath==NULL || stringType==NULL || stringStartDate==NULL || stringEndDate==NULL || stringOrderBy==NULL || stringNextId==NULL || stringPageSize==NULL)
  899. {
  900. return COMMON_PARAMETER_NULL;
  901. }
  902. string stringUuid = handle;
  903. CExternalNetInterface* pNetInterface = NULL;
  904. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  905. if(pNetInterface == NULL)
  906. {
  907. //写日志
  908. return COMMON_INVALID_HANDLE;
  909. }
  910. return pNetInterface->GetDailyList(stringLocalFilePath, stringType, stringStartDate, stringEndDate, stringOrderBy, stringNextId, stringPageSize);
  911. }
  912. int ChangeViewLikeCollectCount(NET_HANDLE handle, const char* stringHealthTipId, const char* stringUri, const char* stringTitle, const char* stringLike, const char* stringRead, const char* stringCollect)
  913. {
  914. if(handle==NULL || stringHealthTipId==NULL || stringUri==NULL || stringTitle==NULL || stringLike==NULL || stringRead==NULL || stringCollect==NULL)
  915. {
  916. return COMMON_PARAMETER_NULL;
  917. }
  918. string stringUuid = handle;
  919. CExternalNetInterface* pNetInterface = NULL;
  920. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  921. if(pNetInterface == NULL)
  922. {
  923. //写日志
  924. return COMMON_INVALID_HANDLE;
  925. }
  926. return pNetInterface->ChangeViewLikeCollectCount(stringHealthTipId, stringUri, stringTitle, stringLike, stringRead, stringCollect);
  927. }
  928. int ChangeAdviceExecutiveState(NET_HANDLE handle, const char* stringSgId, const char* stringState)
  929. {
  930. if(handle==NULL || stringSgId==NULL || stringState==NULL)
  931. {
  932. return COMMON_PARAMETER_NULL;
  933. }
  934. string stringUuid = handle;
  935. CExternalNetInterface* pNetInterface = NULL;
  936. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  937. if(pNetInterface == NULL)
  938. {
  939. //写日志
  940. return COMMON_INVALID_HANDLE;
  941. }
  942. return pNetInterface->ChangeAdviceExecutiveState(stringSgId, stringState);
  943. }
  944. // int CreateSession_GuanXin(NET_HANDLE handle, const char* stringUsername, const char* stringPassword)
  945. // {
  946. // if(handle==NULL || stringUsername==NULL || stringPassword==NULL)
  947. // {
  948. // return COMMON_PARAMETER_NULL;
  949. // }
  950. // string stringUuid = handle;
  951. // CExternalNetInterface* pNetInterface = NULL;
  952. // pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  953. // if(pNetInterface == NULL)
  954. // {
  955. // //写日志
  956. // return COMMON_INVALID_HANDLE;
  957. // }
  958. // return pNetInterface->CreateSession_GuanXin(stringUsername, stringPassword);
  959. // }
  960. int GetAccessToken_GuanXin(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringUsername, const char* stringPassword)
  961. {
  962. if(handle==NULL || stringLocalFilePath==NULL || stringUsername==NULL || stringPassword==NULL)
  963. {
  964. return COMMON_PARAMETER_NULL;
  965. }
  966. string stringUuid = handle;
  967. CExternalNetInterface* pNetInterface = NULL;
  968. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  969. if(pNetInterface == NULL)
  970. {
  971. //写日志
  972. return COMMON_INVALID_HANDLE;
  973. }
  974. return pNetInterface->GetAccessToken_GuanXin(stringLocalFilePath, stringUsername, stringPassword);
  975. }
  976. int GetPersonInfo_GuanXin(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringAccessToken, const char* stringPersonName, const char* stringPersonGender, const char* stringPersonIdentity, const char* stringPersonBirthDate)
  977. {
  978. if(handle==NULL || stringLocalFilePath==NULL || stringAccessToken==NULL || stringPersonName==NULL || stringPersonGender==NULL || stringPersonIdentity==NULL || stringPersonBirthDate==NULL)
  979. {
  980. return COMMON_PARAMETER_NULL;
  981. }
  982. string stringUuid = handle;
  983. CExternalNetInterface* pNetInterface = NULL;
  984. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  985. if(pNetInterface == NULL)
  986. {
  987. //写日志
  988. return COMMON_INVALID_HANDLE;
  989. }
  990. return pNetInterface->GetPersonInfo_GuanXin(stringLocalFilePath, stringAccessToken, stringPersonName, stringPersonGender, stringPersonIdentity, stringPersonBirthDate);
  991. }
  992. int UploadECGData_GuanXin(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringECGXmlPath, const char* stringECGDataPath)
  993. {
  994. if(handle==NULL || stringLocalFilePath==NULL || stringECGXmlPath==NULL || stringECGDataPath==NULL)
  995. {
  996. return COMMON_PARAMETER_NULL;
  997. }
  998. string stringUuid = handle;
  999. CExternalNetInterface* pNetInterface = NULL;
  1000. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1001. if(pNetInterface == NULL)
  1002. {
  1003. //写日志
  1004. return COMMON_INVALID_HANDLE;
  1005. }
  1006. return pNetInterface->UploadECGData_GuanXin(stringLocalFilePath, stringECGXmlPath, stringECGDataPath);
  1007. }
  1008. int UploadOtherData_GuanXin(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringOtherXmlPath)
  1009. {
  1010. if(handle==NULL || stringLocalFilePath==NULL || stringOtherXmlPath==NULL)
  1011. {
  1012. return COMMON_PARAMETER_NULL;
  1013. }
  1014. string stringUuid = handle;
  1015. CExternalNetInterface* pNetInterface = NULL;
  1016. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1017. if(pNetInterface == NULL)
  1018. {
  1019. //写日志
  1020. return COMMON_INVALID_HANDLE;
  1021. }
  1022. return pNetInterface->UploadOtherData_GuanXin(stringLocalFilePath, stringOtherXmlPath);
  1023. }
  1024. int UploadCheckData_GuanXin(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringCheckXmlPath)
  1025. {
  1026. if(handle==NULL || stringLocalFilePath==NULL || stringCheckXmlPath==NULL)
  1027. {
  1028. return COMMON_PARAMETER_NULL;
  1029. }
  1030. string stringUuid = handle;
  1031. CExternalNetInterface* pNetInterface = NULL;
  1032. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1033. if(pNetInterface == NULL)
  1034. {
  1035. //写日志
  1036. return COMMON_INVALID_HANDLE;
  1037. }
  1038. return pNetInterface->UploadCheckData_GuanXin(stringLocalFilePath, stringCheckXmlPath);
  1039. }
  1040. int UploadPersonInfo_GuanXin(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringPersonInfoXmlPath)
  1041. {
  1042. if(handle==NULL || stringLocalFilePath==NULL || stringPersonInfoXmlPath==NULL)
  1043. {
  1044. return COMMON_PARAMETER_NULL;
  1045. }
  1046. string stringUuid = handle;
  1047. CExternalNetInterface* pNetInterface = NULL;
  1048. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1049. if(pNetInterface == NULL)
  1050. {
  1051. //写日志
  1052. return COMMON_INVALID_HANDLE;
  1053. }
  1054. return pNetInterface->UploadPersonInfo_GuanXin(stringLocalFilePath, stringPersonInfoXmlPath);
  1055. }
  1056. int Login_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringUsername, const char* stringPassword)
  1057. {
  1058. if(handle==NULL || stringLocalFilePath==NULL || stringUsername==NULL || stringPassword==NULL)
  1059. {
  1060. return COMMON_PARAMETER_NULL;
  1061. }
  1062. string stringUuid = handle;
  1063. CExternalNetInterface* pNetInterface = NULL;
  1064. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1065. if(pNetInterface == NULL)
  1066. {
  1067. //写日志
  1068. return COMMON_INVALID_HANDLE;
  1069. }
  1070. return pNetInterface->Login_XiKang(stringLocalFilePath, stringUsername, stringPassword);
  1071. }
  1072. int RegisterPatientId_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringName, const char* stringSex, const char* stringPhoneNum, const char* stringProofNum)
  1073. {
  1074. if(handle==NULL || stringLocalFilePath==NULL || stringName==NULL || stringSex==NULL || stringPhoneNum==NULL || stringProofNum==NULL)
  1075. {
  1076. return COMMON_PARAMETER_NULL;
  1077. }
  1078. string stringUuid = handle;
  1079. CExternalNetInterface* pNetInterface = NULL;
  1080. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1081. if(pNetInterface == NULL)
  1082. {
  1083. //写日志
  1084. return COMMON_INVALID_HANDLE;
  1085. }
  1086. return pNetInterface->RegisterPatientId_XiKang(stringLocalFilePath, stringName, stringSex, stringPhoneNum, stringProofNum);
  1087. }
  1088. int RegisterPatientInfo_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringPatientOpenId, const char* stringName, const char* stringSex, const char* stringPhoneNum, const char* stringProofNum, const char* stringPassword)
  1089. {
  1090. if(handle==NULL || stringLocalFilePath==NULL || stringPatientOpenId==NULL || stringName==NULL || stringSex==NULL || stringPhoneNum==NULL || stringProofNum==NULL || stringPassword==NULL)
  1091. {
  1092. return COMMON_PARAMETER_NULL;
  1093. }
  1094. string stringUuid = handle;
  1095. CExternalNetInterface* pNetInterface = NULL;
  1096. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1097. if(pNetInterface == NULL)
  1098. {
  1099. //写日志
  1100. return COMMON_INVALID_HANDLE;
  1101. }
  1102. return pNetInterface->RegisterPatientInfo_XiKang(stringLocalFilePath, stringPatientOpenId, stringName, stringSex, stringPhoneNum, stringProofNum, stringPassword);
  1103. }
  1104. int BindPatient_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringDoctorOpenId, const char* stringPatientOpenId)
  1105. {
  1106. if(handle==NULL || stringLocalFilePath==NULL || stringPatientOpenId==NULL || stringDoctorOpenId==NULL)
  1107. {
  1108. return COMMON_PARAMETER_NULL;
  1109. }
  1110. string stringUuid = handle;
  1111. CExternalNetInterface* pNetInterface = NULL;
  1112. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1113. if(pNetInterface == NULL)
  1114. {
  1115. //写日志
  1116. return COMMON_INVALID_HANDLE;
  1117. }
  1118. return pNetInterface->BindPatient_XiKang(stringLocalFilePath, stringDoctorOpenId, stringPatientOpenId);
  1119. }
  1120. int GetPatientIdList_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringDoctorOpenId)
  1121. {
  1122. if(handle==NULL || stringLocalFilePath==NULL || stringDoctorOpenId==NULL)
  1123. {
  1124. return COMMON_PARAMETER_NULL;
  1125. }
  1126. string stringUuid = handle;
  1127. CExternalNetInterface* pNetInterface = NULL;
  1128. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1129. if(pNetInterface == NULL)
  1130. {
  1131. //写日志
  1132. return COMMON_INVALID_HANDLE;
  1133. }
  1134. return pNetInterface->GetPatientIdList_XiKang(stringLocalFilePath, stringDoctorOpenId);
  1135. }
  1136. int SearchPatientId_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringKey, const char* stringValue)
  1137. {
  1138. if(handle==NULL || stringLocalFilePath==NULL || stringKey==NULL || stringValue==NULL)
  1139. {
  1140. return COMMON_PARAMETER_NULL;
  1141. }
  1142. string stringUuid = handle;
  1143. CExternalNetInterface* pNetInterface = NULL;
  1144. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1145. if(pNetInterface == NULL)
  1146. {
  1147. //写日志
  1148. return COMMON_INVALID_HANDLE;
  1149. }
  1150. return pNetInterface->SearchPatientId_XiKang(stringLocalFilePath, stringKey, stringValue);
  1151. }
  1152. int GetPatientInfo_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringPatientOpenId)
  1153. {
  1154. if(handle==NULL || stringLocalFilePath==NULL || stringPatientOpenId==NULL)
  1155. {
  1156. return COMMON_PARAMETER_NULL;
  1157. }
  1158. string stringUuid = handle;
  1159. CExternalNetInterface* pNetInterface = NULL;
  1160. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1161. if(pNetInterface == NULL)
  1162. {
  1163. //写日志
  1164. return COMMON_INVALID_HANDLE;
  1165. }
  1166. return pNetInterface->GetPatientInfo_XiKang(stringLocalFilePath, stringPatientOpenId);
  1167. }
  1168. int GetCaseList_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char** arrPatientOpenId, int nLength)
  1169. {
  1170. if(handle==NULL || stringLocalFilePath==NULL || arrPatientOpenId==NULL || nLength==0)
  1171. {
  1172. return COMMON_PARAMETER_NULL;
  1173. }
  1174. string stringUuid = handle;
  1175. CExternalNetInterface* pNetInterface = NULL;
  1176. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1177. if(pNetInterface == NULL)
  1178. {
  1179. //写日志
  1180. return COMMON_INVALID_HANDLE;
  1181. }
  1182. vector<string> vPatientOpenId;
  1183. for(int i=0; i<nLength; i++)
  1184. {
  1185. vPatientOpenId.push_back(arrPatientOpenId[i]);
  1186. }
  1187. return pNetInterface->GetCaseList_XiKang(stringLocalFilePath, vPatientOpenId);
  1188. }
  1189. int SubmitCase_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringPatientOpenId, const char* stringAdvice, const char* stringCaseType, const char* stringEcgXmlContent)
  1190. {
  1191. if(handle==NULL || stringLocalFilePath==NULL || stringPatientOpenId==NULL || stringAdvice==NULL || stringCaseType==NULL || stringEcgXmlContent==NULL)
  1192. {
  1193. return COMMON_PARAMETER_NULL;
  1194. }
  1195. string stringUuid = handle;
  1196. CExternalNetInterface* pNetInterface = NULL;
  1197. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1198. if(pNetInterface == NULL)
  1199. {
  1200. //写日志
  1201. return COMMON_INVALID_HANDLE;
  1202. }
  1203. return pNetInterface->SubmitCase_XiKang(stringLocalFilePath, stringPatientOpenId, stringAdvice, stringCaseType, stringEcgXmlContent);
  1204. }
  1205. int GetReportFile_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringCaseId)
  1206. {
  1207. if(handle==NULL || stringLocalFilePath==NULL || stringCaseId==NULL)
  1208. {
  1209. return COMMON_PARAMETER_NULL;
  1210. }
  1211. string stringUuid = handle;
  1212. CExternalNetInterface* pNetInterface = NULL;
  1213. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1214. if(pNetInterface == NULL)
  1215. {
  1216. //写日志
  1217. return COMMON_INVALID_HANDLE;
  1218. }
  1219. return pNetInterface->GetReportFile_XiKang(stringLocalFilePath, stringCaseId);
  1220. }
  1221. int UploadFile_XiKang(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringCaseId, const char* stringCaseFilePath)
  1222. {
  1223. if(handle==NULL || stringLocalFilePath==NULL || stringCaseId==NULL || stringCaseFilePath==NULL)
  1224. {
  1225. return COMMON_PARAMETER_NULL;
  1226. }
  1227. string stringUuid = handle;
  1228. CExternalNetInterface* pNetInterface = NULL;
  1229. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1230. if(pNetInterface == NULL)
  1231. {
  1232. //写日志
  1233. return COMMON_INVALID_HANDLE;
  1234. }
  1235. return pNetInterface->UploadFile_XiKang(stringLocalFilePath, stringCaseId, stringCaseFilePath);
  1236. }
  1237. int GetCardUserListOfCustomer(NET_HANDLE handle, const char* stringLocalFilePath, const char* stringThirdId, const char* stringName, const char* stringCaseType,
  1238. const char* stringStartDate, const char* stringEndDate, const char* stringNextId, unsigned int nPageSize)
  1239. {
  1240. if(handle==NULL || stringLocalFilePath==NULL || stringThirdId==NULL || stringName==NULL || stringCaseType==NULL || stringStartDate==NULL || stringEndDate==NULL ||
  1241. stringNextId==NULL)
  1242. {
  1243. return COMMON_PARAMETER_NULL;
  1244. }
  1245. string stringUuid = handle;
  1246. CExternalNetInterface* pNetInterface = NULL;
  1247. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1248. if(pNetInterface == NULL)
  1249. {
  1250. //写日志
  1251. return COMMON_INVALID_HANDLE;
  1252. }
  1253. return pNetInterface->GetCardUserListOfCustomer(stringLocalFilePath, stringThirdId, stringName, stringCaseType, stringStartDate, stringEndDate, stringNextId, nPageSize);
  1254. }
  1255. int RefundFee(NET_HANDLE handle, const char* stringType, const char* stringCaseId, const char* stringRefundFee)
  1256. {
  1257. if(handle==NULL || stringType==NULL || stringCaseId==NULL || stringRefundFee==NULL)
  1258. {
  1259. return COMMON_PARAMETER_NULL;
  1260. }
  1261. string stringUuid = handle;
  1262. CExternalNetInterface* pNetInterface = NULL;
  1263. pNetInterface = CNetThreadManager::GetNetThread(stringUuid);
  1264. if(pNetInterface == NULL)
  1265. {
  1266. //写日志
  1267. return COMMON_INVALID_HANDLE;
  1268. }
  1269. return pNetInterface->RefundFee(stringType, stringCaseId, stringRefundFee);
  1270. }