freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于mysql的醫(yī)院綜合信息管理系統(tǒng)設(shè)計(jì)報(bào)告doc-在線瀏覽

2024-08-28 01:17本頁面
  

【正文】 ce[20]記住數(shù)量和單價(jià),利用for循環(huán)計(jì)算總價(jià)的??傊@次實(shí)驗(yàn),讓我們學(xué)到了許多課本上學(xué)不到的知識(shí),也鍛煉了我們的思考問題,解決問題的能力。 ::CoInitialize(NULL)。 if(SUCCEEDED(hr)) { m_pDBConnectionConnectionTimeout=3。SERVER=。UID=root。PORT=3306。 } } catch(__error e)//捕捉異常 { CString temp。 ::MessageBox(NULL,temp,CString(提示信息),NULL)。 } return false。 m_pDBConnectionClose()。}// 獲取記錄集_RecordsetPtramp。 (__uuidof(Recordset))。 } catch(__error e) { CString temp。 ::MessageBox(NULL,temp,CString(提示信息),NULL)。}// 執(zhí)行SQL語句bool CADOConn::ExecuteSQL(_bstr_t bstrSQL){ _variant_t RecordsAffected。 m_pDBConnectionExecute(bstrSQL,NULL,adCmdText)。 } catch(__error e) { CString temp。 ::MessageBox(NULL,temp,CString(提示信息),NULL)。 }}// 返回記錄集對(duì)象指針的SQL執(zhí)行函數(shù)_RecordsetPtr CADOConn::ExcuteSQLObj(_bstr_t bstrSQL){ try { if(m_pDBConnection==NULL) OnInitADOConn()。 } catch(__error e) { CString temp。 (CString(執(zhí)行SQL語句錯(cuò)誤信息:%s),())。 } return m_pRecordset。 m_amount = _T()。 m_no = 0。 DDX_Control(pDX, IDC_LIST1, m_grid)。 DDX_Text(pDX, IDC_AMOUNT, m_amount)。 DDX_Control(pDX, IDC_DATETIMEPICKER1, m_time)。CPrescriptionDlg::OnBnClickedOk) ON_BN_CLICKED(IDC_CHANGE, amp。CPrescriptionDlg::OnNMClickList1) ON_BN_CLICKED(IDC_DELETE, amp。CPrescriptionDlg::OnBnClickedClear)END_MESSAGE_MAP()// CPrescriptionDlg 消息處理程序BOOL CPrescriptionDlg::OnInitDialog(){ CDialogEx::OnInitDialog()。 return TRUE。 ()。 (str)。 m_pRecordset = ((_bstr_t)sql)。 (0,0,(CString)(char*)(_bstr_t)m_pRecordsetGetCollect(prescriptionno))。 (0,2,(CString)(char*)(_bstr_t)m_pRecordsetGetCollect(name))。 (0,4,(CString)(char*)(_bstr_t)m_pRecordsetGetCollect(time))。 } ()。}void CPrescriptionDlg::OnBnClickedOk(){ // TODO: 在此添加控件通知處理程序代碼 //CDialogEx::OnOK()。 if(flag==0) { (LVS_EX_FLATSB |LVS_EX_FULLROWSELECT |LVS_EX_HEADERDRAGDROP |LVS_EX_ONECLICKACTIVATE |LVS_EX_GRIDLINES)。 (1,CString(病人編號(hào)),LVCFMT_LEFT,100,1)。 (3,CString(使用數(shù)量),LVCFMT_LEFT,100,3)。 flag= !flag。 ()。 sql = select prescriptionno from prescription。 m_pRecordset = ((_bstr_t)sql)。 m_pRecordsetMoveNext()。 m_no++。 GetDlgItem(IDC_PATIENTNO)GetWindowText(str1)。)+str1+CString(39。 AddToGrid(str)。 if(()) { MessageBox(CString(病人編號(hào)不能為空!))。 } if(()) { MessageBox(CString(名稱不能為空!))。 } CADOConn m_AdoConn。 _bstr_t sql。 _RecordsetPtr m_pRecordset。 //獲取工作時(shí)間 CTime time。 COleDateTime convert_time。 try { m_pRecordsetAddNew()。 m_pRecordsetPutCollect(name,(_bstr_t)m_name)。 m_pRecordsetPutCollect(time,(_variant_t)convert_time)。 m_pRecordsetUpdate()。//斷開數(shù)據(jù)庫連接 } catch(...) { MessageBox(CString(操作失敗))。 } MessageBox(CString(保存成功.))。//刪除grid中原來的數(shù)據(jù) CString str,str1。 str=CString(select* from prescription where patientno like )+CString(39。)。// 遍歷員工信息記錄}void CPrescriptionDlg::OnBnClickedChange(){ // TODO: 在此添加控件通知處理程序代碼 UpdateData(true)。 ()。 //刪除的字符類型為CString CString sextemp。 (time)。 ((),(),())。 (CString(update set name=39。,amount=39。,time=39。 where name = 39。),m_patientno,m_amount,timetemp,m_name)。 ()。 ()。 str=select * from prescription。//重新遍歷}void CPrescriptionDlg::OnNMClickList1(NMHDR *pNMHDR, LRESULT *pResult){ LPNMITEMACTIVATE pNMItemActivate = reinterpret_castLPNMITEMACTIVATE(pNMHDR)。 POSITION pos = ()。 else { while (pos) { nItem = (pos)。 } //讀取被選中行的數(shù)據(jù) m_patientno=(nItem,1)。 m_amount=(nItem,3)。 CString tempStr=(nItem,4)。 (VT_DATE)。 tempTime=tempTimeStr。 UpdateData(FALSE)。}void CPrescriptionDlg::OnBnClickedDelete(){ // TODO: 在此添加控件通知處理程序代碼 UpdateData(true)。 ()。 (CString(delete from prescription where name = 39。),m_name)。 (CString(是否確定要?jiǎng)h除%s記錄),m_name)。//執(zhí)行AQL語句,注意改成ADO的字符串 ()。 ()。 str=select* from prescription。//重新遍歷 }}void CPrescriptionDlg::OnBnClickedClear(){ // TODO: 在此添加控件通知處理程序代碼 m_amount = _T()。 UpdateData(false)。 m_allergy = _T()。 m_idcard = _T()。 m_nation = _T()。 m_phone = _T()。 m_sex = _T()。 DDX_Text(pDX, IDC_EDIT_AGE, m_age)。 DDX_Text(pDX, IDC_EDIT_CONTENT, m_content)。 DDX_Text(pDX, IDC_EDIT_NAME, m_name)。 DDX_Text(pDX, IDC_EDIT_NATIVE, m_native)。 DDX_Text(pDX, IDC_EDIT_NO, m_no)。 DDX_Control(pDX, IDC_LIST_PATIENT, m_grid)。}BEGIN_MESSAGE_MAP(CPatientDlg, CDialogEx) ON_BN_CLICKED(IDOK, amp。CPatientDlg::OnBnClickedChange) ON_BN_CLICKED(IDC_DELETE, amp。CPatientDlg::OnBnClickedClear) ON_BN_CLICKED(IDC_SELECT, amp。CPatientDlg::OnNMClickListPatient)END_MESSAGE_MAP()// CPatientDlg 消息處理程序BOOL CPatientDlg::OnInitDialog(){ CDialogEx::OnInitDialog()。 (0,CString(病人編號(hào)),LVCFMT_LEFT,100,0)。 (2,CString(性別),LVCFMT_LEFT,100,2)。 (4,CString(民族),LVCFMT_LEFT,100,4)。 (6,CString(身份證號(hào)碼),LVCFMT_LEFT,100,6)。 (8,CString(過敏史),LVCFMT_LEFT,100,8)。 (1,CString(姓名))。 (3,CString(全部信息))。 CString str。 AddToGrid(str)。 // return TRUE unless you set the focus to a control // 異常: OCX 屬性頁應(yīng)返回 FALSE}void CPatientDlg::AddToGrid(CString str){ CADOConn m_AdoConn。 CString sql。 _RecordsetPtr m_pRecordset。 while(adoEOF==0) { (0,CString())。 (0,1,(CString)(char*)(_bstr_t)m_pRecordsetGetCollect(name))。 (0,3,(CString)(char*)(_bstr_t)m_pRecordsetGetCollect(age))。 (0,5,(CString)(char*)(_bstr_t)m_pRecordsetGetCollect(nation))。 (0,7,(CString)(char*)(_bstr_t)m_pRecordsetGetCollect(idcard))。 m_pRecordsetMoveNext()。 UpdateData(true)。 UpdateData(true)。 return。 return。 return。 ()。 sql = select* from patient。 m_pRecordset=(sql)。//添加新行 m_pRecordsetPutCollect(patientno,(_bstr_t)m_no)。 m_pRecordsetPutCollect(sex,(_bstr_t)m_sex)。 m_pRecordsetPutCollect(native,(_bstr_t)m_native)。 m_pRecordsetPutCollect(allergy,(_bstr_t)m_allergy)。 m_p
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1