旧参数表:zemr_sys_param
新参数表:zemr_system_param
新旧映射表:zemr_system_param_translate
打印预览的分页,是由一个分页符来控制的;
tnsnames.ora 配置plsql数据
//获取列表选择的信息
CReportControlExt m_rtpPatientList; //列表控件
CXTPReportSelectedRows* pRows = m_rtpPatientList.GetSelectedRows();
if(!pRows || pRows->GetCount() == 0)
{
AfxMessageBox(_T("请选择要查找的病人!"));
return;
}
CXTPReportRecord* pRec = pRows->GetAt(0)->GetRecord();
CXTPReportRecordItemText* pItem = NULL;
pItem = (CXTPReportRecordItemText*)pRec->GetItem(COL_NAME);
m_strSelectName = pItem->GetValue();
pItem = (CXTPReportRecordItemText*)pRec->GetItem(COL_PATIENT_ID);
m_strSelectID = pItem->GetValue();
pItem = (CXTPReportRecordItemText*)pRec->GetItem(COL_EVENT_NO);
m_strSelectEvent = pItem->GetValue();
SearchInfoDlg dlgSearchInfo(&CEMRClient::Instance(), m_strSelectID, m_strSelectEvent);
dlgSearchInfo.DoModal();
得到复选框状态的函数:CButton* pBtn = (CButton*)GetDlgItem(IDC_CHECK);
int state = pBtnNONE->GetCheck();
当state == 1时表示该复选框没有被选中;
当state == 0时表示该复选框被选中;
设置复选框状态的函数:CButton* pBtn = (CButton*)GetDlgItem(IDC_CHECK);
pBtnNONE->SetCheck(1);
SetCheck(1)表示设置复选框为“选中”状态;
SetCheck(0)表示设置复选框为“未选中”状态;
注:非0也为“选中”。
pt = ::GetMessagePos();//获取屏幕坐标
m_wndPrintTemplateTreeCtrl.ScreenToClient(&pt); //将屏幕坐标转换为客户区坐标
SetItemData:是将各项的序号和自己需要的内容相关联,这个内容是自己定义的任何类型的东西,如果是一个结构体或是一个类对像,则要将其转换为指针类型即可.
GetItemData:是将关联的内容取出来
例如:
this->GetView()->GetDHtmlDocument(&spDoc2);
CComPtr<IHTMLElement> spElemMainDiagId, spElemMainDiagName;
CComQIPtr<IHTMLDocument3>(spDoc2)->getElementById(CComBSTR(pdParam.GetValue(CXPath(L"/root/single_disease/main_diag", L"id")).c_str()), &spElemMainDiagId);
CComQIPtr<IHTMLDocument3>(spDoc2)->getElementById(CComBSTR(pdParam.GetValue(CXPath(L"/root/single_disease/main_diag", L"name")).c_str()), &spElemMainDiagName);
wstring strIcdCode = CElementHelper::GetInnerText(spElemMainDiagId);
wstring strIcdName = CElementHelper::GetInnerText(spElemMainDiagName);
HTREEITEM hRootItem = m_wndPrintTemplateTreeCtrl.GetRootItem();
HTREEITEM hChildItem = m_wndPrintTemplateTreeCtrl.GetChildItem(hRootItem);
HTREEITEM hItem = m_wndPrintTemplateTreeCtrl.GetChildItem(hChildItem);
while(hChildItem != NULL)
{
while(hItem != NULL)
{
if(m_wndPrintTemplateTreeCtrl.GetCheck(hItem) == TRUE)
{
DWORD dwIndex = static_cast<DWORD>(m_wndPrintTemplateTreeCtrl.GetItemData(hItem));
NODE_PRINT_DATA nodeData = m_mapCataInfo[dwIndex];
if(nodeData.strCataType == NT_TYPE_EMR)
{
vecPrintEmrID.push_back(nodeData.strEMRID);
}
}
hItem = m_wndPrintTemplateTreeCtrl.GetNextSiblingItem(hItem);
}
hChildItem = m_wndPrintTemplateTreeCtrl.GetNextSiblingItem(hChildItem);
if(NULL != hChildItem)
{
hItem = m_wndPrintTemplateTreeCtrl.GetChildItem(hChildItem);
}
}