Initialize project
This commit is contained in:
parent
b87d94cebd
commit
18daacf1d5
@ -54,6 +54,9 @@ class IncomingInspectionPage(BaseInspectionPage):
|
||||
self.table.setFocusPolicy(Qt.NoFocus)
|
||||
self.content_layout.addWidget(self.table)
|
||||
self.render_form()
|
||||
# 默认光标定位到工程号
|
||||
if "batch_no" in self.inputs:
|
||||
self.inputs["batch_no"].setFocus()
|
||||
|
||||
def render_form(self):
|
||||
# 1. 第一行 - 工程号
|
||||
@ -273,6 +276,9 @@ class IncomingInspectionPage(BaseInspectionPage):
|
||||
for inp in self.inputs.values():
|
||||
inp.clear()
|
||||
self.last_gch = ""
|
||||
# 清空后光标重新定位到工程号
|
||||
if "batch_no" in self.inputs:
|
||||
self.inputs["batch_no"].setFocus()
|
||||
|
||||
def validate_elements(self, elements):
|
||||
"""比对元素值与标准范围,不符合的写入检验信息框"""
|
||||
|
||||
@ -51,6 +51,9 @@ class ManualInspectionPage(BaseInspectionPage):
|
||||
self.content_layout.addWidget(self.table)
|
||||
|
||||
self.render_form()
|
||||
# 默认光标定位到工程号
|
||||
if "batch_no" in self.inputs:
|
||||
self.inputs["batch_no"].setFocus()
|
||||
|
||||
def render_form(self):
|
||||
# 1. 第一行 - 工程号
|
||||
@ -169,6 +172,9 @@ class ManualInspectionPage(BaseInspectionPage):
|
||||
"""清空所有输入框数据"""
|
||||
for inp in self.inputs.values():
|
||||
inp.clear()
|
||||
# 清空后光标重新定位到工程号
|
||||
if "batch_no" in self.inputs:
|
||||
self.inputs["batch_no"].setFocus()
|
||||
|
||||
def update_ui_with_data(self, data):
|
||||
"""根据数据库数据动态更新UI"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user