diff --git a/src/dialogs/GetWorkListDialog.cpp b/src/dialogs/GetWorkListDialog.cpp index 148d3a3..6615415 100644 --- a/src/dialogs/GetWorkListDialog.cpp +++ b/src/dialogs/GetWorkListDialog.cpp @@ -126,6 +126,7 @@ void GetWorkListDialog::initializeContentWidgets() //ErrorLabel contentLayout->addWidget(mErrorLabel); mErrorLabel->setObjectName("warn"); + mErrorLabel->setWordWrap(true); mErrorLabel->hide(); } @@ -155,6 +156,10 @@ bool GetWorkListDialog::updateReferenceData() if (accessionNum.isEmpty() && patientId.isEmpty()) { mErrorLabel->setText(tr("Accession Number and Patient Id is Empty.")); + QFont font = mErrorLabel->font(); + QFontMetrics metrics(font); + int width = metrics.width(mErrorLabel->text()); + mErrorLabel->setFixedHeight(metrics.lineSpacing() * (width / this->width()) + 40 ); mErrorLabel->show(); return false; } diff --git a/src/translations/en_US.ts b/src/translations/en_US.ts index 1151009..75e271f 100644 --- a/src/translations/en_US.ts +++ b/src/translations/en_US.ts @@ -322,6 +322,10 @@ progress:99% Recon error, can't start scan process + + Start CE Scan Failed. + + DicomCfgDialog @@ -594,7 +598,23 @@ progress:99% - WorkList Search Failed + No reference record find! + + + + Worklist network init error! + + + + Worklist connect error! + + + + Worklist response find failed! + + + + Worklist query context error! @@ -877,6 +897,40 @@ progress:99% + + MPPSAsyncAction + + MPPS fail by dcmdatadict error! + + + + MPPS initNetwork failed! + + + + MPPS connect failed! + + + + MPPS context error! + + + + MPPS fail by error: + + + + + MPPSManager + + Create MPPSUID error! + + + + Update MPPSUID success! + + + MainWindow diff --git a/src/translations/zh_CN.ts b/src/translations/zh_CN.ts index f6eb073..34b8f4c 100644 --- a/src/translations/zh_CN.ts +++ b/src/translations/zh_CN.ts @@ -97,22 +97,22 @@ AccountFormDialog - + Account 账户 - + User ID 用户ID - + Input User ID 输入用户ID - + Name 姓名 @@ -122,28 +122,28 @@ 重置为默认密码? - + Input User name 输入用户名 - + Do you want to logout the current user? 是否确定要退出当前用户? - + Password 密码 - + Change Password 修改密码 - - + + Input password 输入密码 @@ -156,13 +156,13 @@ 重置密码 - + Reset Password 密码重置 - - + + Logout 登出 @@ -175,60 +175,60 @@ 医生 - + Inner error, can't find reference user! 内部错误! - - + + Submit change to database fail! 修改提交至数据库失败! - + Comment 备注 - + Confirm Password 确认密码 - - - + + + User Name can't be empty! 用户名不能为空! - + User ID can't be empty! 用户ID不能为空! - + Password can't be empty! 密码不能为空! - + Password and confirm password do not match! 密码和确认密码不一致 - + Inner error ,unset data model! 内部错误! - + User Id exists! 用户ID已存在! - + Submit to data base fail! 提交至数据库失败! @@ -236,53 +236,53 @@ AccountTableForm - + ID - - + + Name 姓名 - - + + Role 角色 - - + + Comment 备注 - - + + Add 新增 - - + + Edit 编辑 - - + + Delete 删除 - + Can't delete current log in account! - 当前用户无法删除日志! + 无法删除当前用户! - + Delete account with ID:"%1"! 删除账户ID:"%1"! @@ -391,7 +391,7 @@ Your new password does not match! - 新密码不匹配! + 新密码与确认密码不一致 @@ -410,74 +410,80 @@ DeviceManager - + DMS connection error - - + + progress:%1% 进度:%1% - + Patient can leave. progress:%1% 检查对象可以离开检查仓 进度:%1% - + Data quality assessment in progress progress:99% 数据质量判断中 进度:99% - + + Initialize Failed. 初始化失败 - + + Start CE Scan Failed. + + + + Data is currently being transmitted, please shut down later. - + Shut down failed, please push emergency button to shutdown. - + Recon disconnected. - - + + Open pump failed. - + 排水阀打开失败 - + Recon error, can't start scan process 重建服务器错误,无法开始检查流程 - - + + Start auto locate failed 自动化定位启动失败 - + The data quality is low, please restart the data scan. 扫查数据质量较低,请重新开始检查流程 - + Dms connection error @@ -756,22 +762,22 @@ progress:99% 中文 - + Used: %1G - + Total: %1G - + Get disk used size fail! 磁盘使用空间获取失败! - + Get disk total size fail! 磁盘总空间获取失败! @@ -851,13 +857,33 @@ progress:99% GetWorkListAction - - Search Query Error + + No reference record find! + 无该检查对象信息 + + + + Worklist network init error! - - WorkList Search Failed + + Worklist connect error! + + + + + Worklist response find failed! + + + + + Worklist query context error! + + + + + Search Query Error @@ -880,17 +906,17 @@ progress:99% 检查单号 - + Accession Number and Patient Id is Empty. - + 检查单号或病人ID为空! - + Unknow Error. code:001001001 - + DB Error,Patient Write Failed @@ -906,37 +932,37 @@ progress:99% IpSettingsDialog - + Ip Address is not valid IP地址不符合格式规范 - + Subnet Mask is not valid 子网掩码不符合格式规范 - + Gateway is not valid 网关地址不符合格式规范 - + IP Settings 本机IP设置 - + IP Address IP地址 - + Subnet Mask 子网掩码 - + Gateway 网关 @@ -1190,22 +1216,22 @@ progress:99% 数据库连接失败,无法登录,请重启设备后再试 - + Login locked. Please retry after %1 minutes. 登录锁定,请在1分钟后重试 - + Login failed, username or password error! Remaining retries: %1 登录失败,用户名或密码错误,重试次数: %1 - + Anonymous Mode active! 匿名模式开启 - + System mode Notice @@ -1229,6 +1255,47 @@ progress:99% 登录 + + MPPSAsyncAction + + + MPPS fail by dcmdatadict error! + + + + + MPPS initNetwork failed! + + + + + MPPS connect failed! + + + + + MPPS context error! + + + + + MPPS fail by error: + + + + + MPPSManager + + + Create MPPSUID error! + + + + + Update MPPSUID success! + + + MainWindow @@ -1311,37 +1378,37 @@ progress:99% MppsSettingsDialog - + Mpps Settings Mpps通讯设置 - + AE can't be empty AE不能为空 - + Server AE can't be empty 服务器AE不能为空 - + Server Ip can't be empty 服务器地址不能为空 - + Server Port can't be empty 服务器端口不能为空 - + Ip Address is not valid 服务器地址不符合格式规范 - + Port is not valid 服务器端口格式必须为小于65535的数字 @@ -1478,37 +1545,37 @@ progress:99% PacsSettingsDialog - + PACS Settings PACS通讯设置 - + AE can't be empty AE不能为空 - + Server AE can't be empty 服务器AE不能为空 - + Server Ip can't be empty 服务器地址不能为空 - + Server Port can't be empty 服务器端口不能为空 - + Ip Address is not valid 服务器地址不符合格式规范 - + Port is not valid 服务器端口格式必须为小于65535的数字 @@ -1773,37 +1840,37 @@ progress:99% ReconSettingsDialog - + Recon Settings Recon通讯设置 - + AE can't be empty AE不能为空 - + Server AE can't be empty 服务器AE不能为空 - + Server Ip can't be empty 服务器地址不能为空 - + Server Port can't be empty 服务器端口不能为空 - + Ip Address is not valid 服务器地址不符合格式规范 - + Port is not valid 服务器端口格式必须为小于65535的数字 @@ -1896,93 +1963,93 @@ progress:99% 空扫 - - - - + + + + Drainage 排水 - - + + Account 账户 - - + + ShutDown 关机 - - + + Worklist 录入检查对象 - - - + + + Start Scan 开始检查流程 - + Make sure to open the drain valve ? - + 请确认是否打开排水阀? - + Confirm Drainage - + 排水确认 - - - + + + Drainaging 排水中 - + Shut down now ? 是否需要进行设备关机操作,请确认? - + Shut Down 关机 - - + + Please confirm checking patient information to start the process 请确定检查对象信息开始流程 - + Data scanning, please keep the current position and don't move. 数据扫查中,请检查对象保持当前姿势,不要移动 - + Data exporting, patient can leave the holder 数据导出中,检查对象可以离开检查仓 - + Left side scan initiated, auto positioning in progress. 左侧扫查启动,自动定位中 - + Right side scan initiated, auto positioning in progress. 右侧扫查启动,自动定位中 - + Stop Scan Process 退出检查流程 @@ -2104,13 +2171,13 @@ parameters - + Add 新增 - + Edit 编辑 @@ -2121,13 +2188,13 @@ parameters - + Delete 删除 - + Select 选择 @@ -2158,43 +2225,43 @@ parameters - + ID 检查对象ID - - + + AccessionNumber 检查单号 - - + + Name 姓名 - - + + Birth Date 出生日期 - - + + Gender 性别 - - + + Add Date 添加日期 - - + + Comment 备注 @@ -2531,29 +2598,29 @@ parameters WarningMessageWidget - + System is working properly. - + No message. - + System Status - + System Notifications - + Clear @@ -2561,37 +2628,37 @@ parameters WorklistSettingsDialog - + Worklist Settings Worklist通讯设置 - + AE can't be empty AE不能为空 - + Server AE can't be empty 服务器AE不能为空 - + Server Ip can't be empty 服务器地址不能为空 - + Server Port can't be empty 服务器端口不能为空 - + Ip Address is not valid 服务器地址不符合格式规范 - + Port is not valid 服务器端口格式必须为小于65535的数字