Environment
C++ in MFC using namespace Vieworks::vivix,
Instance : CVivixSDK vivixSDK; CDetector* detectorIns;
C# in Winform using Vieworks.vivix.net, using Vieworks.vivix.net.detector; using Vieworks.vivix.net.scu;
Instance: VivixNet netSDK; DETECTOR_INFO DetInfo;Detector detectorIns;
Discription
You can set web access information in the detector.(Patient list)
C++
void CSDKCplusExampleApp::SetWebAccessInfo(PATIENT_INFO_LIST* _ptInfo, PATIENT_LIST_SET_TYPE _setType) { if (detectorIns->DetectorTypeGet() == DETECTOR_TYPE::FXRD1417_W) { int match = 0; PATIENT_INFO_LIST* ptInfo = new PATIENT_INFO_LIST; CFXRDW* fxrdw = (CFXRDW*)detectorIns; ptInfo->nPatientCount = _ptInfo->nPatientCount; ptInfo->patientStepInfo = new PATIENTSTEP_INFO[ptInfo->nPatientCount]; for (int i = 0; i < ptInfo->nPatientCount; i++) { wcscpy_s(ptInfo->patientStepInfo[i].accNo , _ptInfo->patientStepInfo[i].accNo); wcscpy_s(ptInfo->patientStepInfo[i].birth , _ptInfo->patientStepInfo[i].birth); wcscpy_s(ptInfo->patientStepInfo[i].breedDescription , _ptInfo->patientStepInfo[i].breedDescription); ptInfo->patientStepInfo[i].enable , _ptInfo->patientStepInfo[i].enable); wcscpy_s(ptInfo->patientStepInfo[i].id , _ptInfo->patientStepInfo[i].id); wcscpy_s(ptInfo->patientStepInfo[i].name , _ptInfo->patientStepInfo[i].name); ptInfo->patientStepInfo[i].neutered = _ptInfo->patientStepInfo[i].neutered; wcscpy_s(ptInfo->patientStepInfo[i].responsiblePerson , _ptInfo->patientStepInfo[i].responsiblePerson); wcscpy_s(ptInfo->patientStepInfo[i].scheduledDateTime , _ptInfo->patientStepInfo[i].scheduledDateTime); wcscpy_s(ptInfo->patientStepInfo[i].speciesDescription , _ptInfo->patientStepInfo[i].speciesDescription); wcscpy_s(ptInfo->patientStepInfo[i].studyDate , _ptInfo->patientStepInfo[i].studyDate); wcscpy_s(ptInfo->patientStepInfo[i].studyTime , _ptInfo->patientStepInfo[i].studyTime); ptInfo->patientStepInfo[i].nStepInfoCount = _ptInfo->patientStepInfo[i].nStepInfoCount; ptInfo->patientStepInfo[i].aryStepInfo = new STEP_INFO[ptInfo->patientStepInfo[i].nStepInfoCount]; for (int j = 0; j < _ptInfo->patientStepInfo[i].nStepInfoCount; j++) { ptInfo->patientStepInfo[i].aryStepInfo[j].enable = ptInfo->patientStepInfo[i].aryStepInfo[j].enable; ptInfo->patientStepInfo[i].aryStepInfo[j].stepKey = ptInfo->patientStepInfo[i].aryStepInfo[j].stepKey; } } fxrdw->PatientInfoListSet(ptInfo, _setType); delete ptInfo; } else if (detectorIns->DetectorTypeGet() == DETECTOR_TYPE::FXRD1012_N || detectorIns->DetectorTypeGet() == DETECTOR_TYPE::FXRD1717_N || detectorIns->DetectorTypeGet() == DETECTOR_TYPE::FXRD1417_N) { PATIENT_INFO_LIST* ptInfo = new PATIENT_INFO_LIST; CFXRDN* fxrdn = (CFXRDN*)detectorIns; ptInfo->nPatientCount = _ptInfo->nPatientCount; ptInfo->patientStepInfo = new PATIENTSTEP_INFO[ptInfo->nPatientCount]; for (int i = 0; i < ptInfo->nPatientCount; i++) { wcscpy_s(ptInfo->patientStepInfo[i].accNo, _ptInfo->patientStepInfo[i].accNo); wcscpy_s(ptInfo->patientStepInfo[i].birth, _ptInfo->patientStepInfo[i].birth); wcscpy_s(ptInfo->patientStepInfo[i].breedDescription, _ptInfo->patientStepInfo[i].breedDescription); ptInfo->patientStepInfo[i].enable, _ptInfo->patientStepInfo[i].enable); wcscpy_s(ptInfo->patientStepInfo[i].id, _ptInfo->patientStepInfo[i].id); wcscpy_s(ptInfo->patientStepInfo[i].name, _ptInfo->patientStepInfo[i].name); ptInfo->patientStepInfo[i].neutered = _ptInfo->patientStepInfo[i].neutered; wcscpy_s(ptInfo->patientStepInfo[i].responsiblePerson, _ptInfo->patientStepInfo[i].responsiblePerson); wcscpy_s(ptInfo->patientStepInfo[i].scheduledDateTime, _ptInfo->patientStepInfo[i].scheduledDateTime); wcscpy_s(ptInfo->patientStepInfo[i].speciesDescription, _ptInfo->patientStepInfo[i].speciesDescription); wcscpy_s(ptInfo->patientStepInfo[i].studyDate, _ptInfo->patientStepInfo[i].studyDate); wcscpy_s(ptInfo->patientStepInfo[i].studyTime, _ptInfo->patientStepInfo[i].studyTime); ptInfo->patientStepInfo[i].nStepInfoCount = _ptInfo->patientStepInfo[i].nStepInfoCount; ptInfo->patientStepInfo[i].aryStepInfo = new STEP_INFO[ptInfo->patientStepInfo[i].nStepInfoCount]; for (int j = 0; j < _ptInfo->patientStepInfo[i].nStepInfoCount; j++) { ptInfo->patientStepInfo[i].aryStepInfo[j].enable = ptInfo->patientStepInfo[i].aryStepInfo[j].enable; ptInfo->patientStepInfo[i].aryStepInfo[j].stepKey = ptInfo->patientStepInfo[i].aryStepInfo[j].stepKey; } } fxrdn->PatientInfoListSet(ptInfo, _setType); delete ptInfo; } }
C#
public void SetWebAccessInfo(PATIENT_INFO_LIST _pInfo, PATIENT_LIST_SET_TYPE _setType) { if (detectorIns is FXRDW) { FXRDW fxrdw = detectorIns as FXRDW; PATIENT_INFO_LIST pInfo = new PATIENT_INFO_LIST(); pInfo.nPatientCount = _pInfo.nPatientCount; pInfo.patientStepInfo = new PATIENTSTEP_INFO[pInfo.nPatientCount]; for (int i = 0; i < pInfo.nPatientCount; i++) { pInfo.patientStepInfo = new PATIENTSTEP_INFO; pInfo.patientStepInfo[i].accNo = _pInfo.patientStepInfo[i].accNo; pInfo.patientStepInfo[i].birth = _pInfo.patientStepInfo[i].birth; pInfo.patientStepInfo[i].breedDescription = _pInfo.patientStepInfo[i].breedDescription; pInfo.patientStepInfo[i].enable = _pInfo.patientStepInfo[i].enable; pInfo.patientStepInfo[i].id = _pInfo.patientStepInfo[i].id; pInfo.patientStepInfo[i].name = _pInfo.patientStepInfo[i].name; pInfo.patientStepInfo[i].neutered = _pInfo.patientStepInfo[i].neutered; pInfo.patientStepInfo[i].responsiblePerson = _pInfo.patientStepInfo[i].responsiblePerson; pInfo.patientStepInfo[i].scheduledDateTime = _pInfo.patientStepInfo[i].scheduledDateTime; pInfo.patientStepInfo[i].speciesDescription = _pInfo.patientStepInfo[i].speciesDescription; pInfo.patientStepInfo[i].studyDate = _pInfo.patientStepInfo[i].studyDate; pInfo.patientStepInfo[i].studyTime = _pInfo.patientStepInfo[i].studyTime; pInfo.patientStepInfo[i].nStepInfoCount = _pInfo.patientStepInfo[i].nStepInfoCount; pInfo.patientStepInfo[i].aryStepInfo = new STEP_INFO[pInfo.patientStepInfo[i].nStepInfoCount]; for (int j = 0; j < _pInfo.patientStepInfo[i].nStepInfoCount; j++) { pInfo.patientStepInfo[i].aryStepInfo[j] = new STEP_INFO(); pInfo.patientStepInfo[i].aryStepInfo[j].enable = pInfo.patientStepInfo[i].aryStepInfo[j].enable; pInfo.patientStepInfo[i].aryStepInfo[j].stepKey = pInfo.patientStepInfo[i].aryStepInfo[j].stepKey; } fxrdw.PatientInfoListSet(pInfo, _setType); } } else if (detectorIns is FXRDN) { FXRDN fxrdn = detectorIns as FXRDN; PATIENT_INFO_LIST pInfo = new PATIENT_INFO_LIST(); pInfo.nPatientCount = _pInfo.nPatientCount; pInfo.patientStepInfo = new PATIENTSTEP_INFO[pInfo.nPatientCount]; for (int i = 0; i < pInfo.nPatientCount; i++) { pInfo.patientStepInfo = new PATIENTSTEP_INFO; pInfo.patientStepInfo[i].accNo = _pInfo.patientStepInfo[i].accNo; pInfo.patientStepInfo[i].birth = _pInfo.patientStepInfo[i].birth; pInfo.patientStepInfo[i].breedDescription = _pInfo.patientStepInfo[i].breedDescription; pInfo.patientStepInfo[i].enable = _pInfo.patientStepInfo[i].enable; pInfo.patientStepInfo[i].id = _pInfo.patientStepInfo[i].id; pInfo.patientStepInfo[i].name = _pInfo.patientStepInfo[i].name; pInfo.patientStepInfo[i].neutered = _pInfo.patientStepInfo[i].neutered; pInfo.patientStepInfo[i].responsiblePerson = _pInfo.patientStepInfo[i].responsiblePerson; pInfo.patientStepInfo[i].scheduledDateTime = _pInfo.patientStepInfo[i].scheduledDateTime; pInfo.patientStepInfo[i].speciesDescription = _pInfo.patientStepInfo[i].speciesDescription; pInfo.patientStepInfo[i].studyDate = _pInfo.patientStepInfo[i].studyDate; pInfo.patientStepInfo[i].studyTime = _pInfo.patientStepInfo[i].studyTime; pInfo.patientStepInfo[i].nStepInfoCount = _pInfo.patientStepInfo[i].nStepInfoCount; pInfo.patientStepInfo[i].aryStepInfo = new STEP_INFO[pInfo.patientStepInfo[i].nStepInfoCount]; for (int j = 0; j < _pInfo.patientStepInfo[i].nStepInfoCount; j++) { pInfo.patientStepInfo[i].aryStepInfo[j] = new STEP_INFO(); pInfo.patientStepInfo[i].aryStepInfo[j].enable = pInfo.patientStepInfo[i].aryStepInfo[j].enable; pInfo.patientStepInfo[i].aryStepInfo[j].stepKey = pInfo.patientStepInfo[i].aryStepInfo[j].stepKey; } fxrdn.PatientInfoListSet(pInfo, _setType); } } }