作者 |
|
XCDZ [个人空间]
注册  2010-04-20 发贴数 1284 精华贴 2 原创贴 1 来自 状态 正常
级别 会员 |
|
|
库存清单中的脚本如下,run_csp_line.menu_trigger_click没法触发,gui_trigger_click("SpeedButton_Search_Key")则可以正常触发,运行后,点击名称查询或编码查询等仍然以模糊查询模式进行查询。 int init_win() { gui_set_x("CheckBox_Show_Child_Edt",700); gui_set_x("CheckBox_Show_Zero",850); gui_set_x("Edit_Search_Key",60); //gui_set_x("Label_Search_Key",1000); //gui_set_x("SpeedButton_Search_Key",1050); //gui_set_x("SpeedButton_Search_Key_Style",1100); gui_hide("Label_search_Key"); gui_hide("SpeedButton_Search_Key"); gui_hide("SpeedButton_Search_Key_Style"); gui_create_button("Panel_List","模糊查询",200,6,60,20,"模糊查询",'run_csp_line.menu_trigger_click("N_Search_Style_Auto")+gui_trigger_click("SpeedButton_Search_Key")'); gui_create_button("Panel_List","名称查询",260,6,60,20,"名称查询",'run_csp_line.menu_trigger_click("N_Search_Style_Res_Name")+gui_trigger_click("SpeedButton_Search_Key")'); gui_create_button("Panel_List","编码查询",320,6,60,20,"编码查询",'run_csp_line.menu_trigger_click("N_Search_Style_Res_Id")+gui_trigger_click("SpeedButton_Search_Key")'); gui_create_button("Panel_List","仓库名称",380,6,60,20,"仓库名称",'run_csp_line.menu_trigger_click("N_Search_Style_Edt_Name")+gui_trigger_click("SpeedButton_Search_Key")'); gui_create_button("Panel_List","仓库编码",440,6,60,20,"仓库编码",'run_csp_line.menu_trigger_click("N_Search_Style_Edt_Id")+gui_trigger_click("SpeedButton_Search_Key")'); return 1; }; |
|
|
天道酬勤,勤能补拙!
|
|
XCDZ [个人空间]
注册  2010-04-20 发贴数 1284 精华贴 2 原创贴 1 来自 状态 正常
级别 会员 |
|
|
而在产品定义中,相同格式的脚本int init_win() { gui_set_x("Edit_Search_Key",100); gui_set_x("CheckBox_Show_Child_Res",450); gui_set_x("Label_Search_Key",850); gui_set_x("SpeedButton_Search_Key_Style",750); gui_set_x("SpeedButton_Search_Key",800); //gui_hide("Label_Search_Key"); //gui_hide("SpeedButton_Search_Key"); //gui_hide("SpeedButton_Search_Key_Style"); gui_create_button("Panel_List","模糊查询",250,6,60,20,"模糊查询",'run_csp_line.menu_trigger_click("N_Search_Style_Auto")+gui_trigger_click("SpeedButton_Search_Key")'); gui_create_button("Panel_List","名称查询",310,6,60,20,"名称查询",'run_csp_line.menu_trigger_click("N_Search_Style_Name")+gui_trigger_click("SpeedButton_Search_Key")'); gui_create_button("Panel_List","编码查询",370,6,60,20,"编码查询",'run_csp_line.menu_trigger_click("N_Search_Style_No")+gui_trigger_click("SpeedButton_Search_Key")'); return 1; }; 则运行一切正常,点击名称查询或编码查询后都可以正常的按照查询模式进行查询。 |
|
|
天道酬勤,勤能补拙!
|
|
XCDZ [个人空间]
注册  2010-04-20 发贴数 1284 精华贴 2 原创贴 1 来自 状态 正常
级别 会员 |
|
|
请问是库存清单中所写脚本有问题,还是库存清单中的脚本系统有问题呢?如果是所写脚本有问题,请帮忙改正。 |
|
|
天道酬勤,勤能补拙!
|
|
|