添加工单信息显示
This commit is contained in:
1 parent
532e37aa84
commit
8f704b85e9
4 files changed
+4510
-1
No files matched your search
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -348,6 +348,11 @@ void Work_Program_step_ui(char* str_data)
|
|||||||
parse_csv_to_table(guider_ui.screen_w_list, select_data_ui);
|
parse_csv_to_table(guider_ui.screen_w_list, select_data_ui);
|
||||||
lv_table_set_col_width(guider_ui.screen_w_list, 0, 50);
|
lv_table_set_col_width(guider_ui.screen_w_list, 0, 50);
|
||||||
lv_table_set_col_width(guider_ui.screen_w_list, 1, 250);
|
lv_table_set_col_width(guider_ui.screen_w_list, 1, 250);
|
||||||
|
|
||||||
|
rt_snprintf(sqlSELECT, sizeof(sqlSELECT),"%s WorkOrder = '%s' LIMIT 1;",select_Workorderinf_DATA,str_data);
|
||||||
|
db_send_select(DB_CMD_SELECT, sqlSELECT, 500,select_data_ui);
|
||||||
|
//信息显示
|
||||||
|
parse_csv_to_inf(guider_ui.screen_text_inf,select_data_ui,550,230);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -358,6 +363,8 @@ void Work_Program_step_ui(char* str_data)
|
|||||||
parse_csv_to_table(guider_ui.screen_w_list, select_data_ui);
|
parse_csv_to_table(guider_ui.screen_w_list, select_data_ui);
|
||||||
lv_table_set_col_width(guider_ui.screen_w_list, 0, 50);
|
lv_table_set_col_width(guider_ui.screen_w_list, 0, 50);
|
||||||
lv_table_set_col_width(guider_ui.screen_w_list, 1, 250);
|
lv_table_set_col_width(guider_ui.screen_w_list, 1, 250);
|
||||||
|
|
||||||
|
parse_csv_to_inf(guider_ui.screen_text_inf,"",550,230);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ P1 AS 参数1 ,P2 AS 参数2 ,P3 AS 参数3 ,P4 AS 参数4 ,P5 AS 参数5 ,StepN
|
|||||||
P3_S1 AS 参数1_3 ,P4_S1 AS 参数1_4 ,P5_S1 AS 参数1_5 ,StepName_S2 AS 副功能2 ,P1_S2 AS 参数2_1 ,P2_S2 AS 参数2_2, \
|
P3_S1 AS 参数1_3 ,P4_S1 AS 参数1_4 ,P5_S1 AS 参数1_5 ,StepName_S2 AS 副功能2 ,P1_S2 AS 参数2_1 ,P2_S2 AS 参数2_2, \
|
||||||
P3_S2 AS 参数2_3 ,P4_S2 AS 参数2_4 ,P5_S2 AS 参数2_5 FROM WorkorderSteps WHERE"
|
P3_S2 AS 参数2_3 ,P4_S2 AS 参数2_4 ,P5_S2 AS 参数2_5 FROM WorkorderSteps WHERE"
|
||||||
#define select_Workorderinf_DATA "SELECT WorkOrder AS 工单 ,Dyelot || '@' || ReDye AS 领料单,ColorNumber AS 代码,\
|
#define select_Workorderinf_DATA "SELECT WorkOrder AS 工单 ,Dyelot || '@' || ReDye AS 领料单,ColorNumber AS 代码,\
|
||||||
ColorName AS 颜色,Client ,ClothWeight ,ClothSpecies ,BathRatio ,Total ,Remark FROM WorkOrder WHERE"
|
ColorName AS 颜色,Client AS 客户,ClothWeight AS 布重,ClothSpecies AS 布种,BathRatio AS 浴比,Total AS 浴量,Remark AS 备注 FROM WorkOrder WHERE"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char WorkOrder[32];
|
char WorkOrder[32];
|
||||||
|
|||||||
Reference in new issue
Block a user