这个仓库的地址能不能,提取出来到,采购单的提货地点。
如果你的提货地点是 交付地点修改的名称 可以试试下面这段脚本 int func_before_save() { string eba_id,sql; eba_id=gui_get_val('ComboBox_Ext_Target_Edt_Id');//获取目标仓库仓库编号 msg(eba_id); sql='select edt_name from edt where edt_id="'+eba_id+'"';//根据仓库编号获取目标仓库名称 db_run(sql); if(db_row_count()>0) { msg(db_res(0)); gui_set_text("ComboBox_Ext_Aim_Address",db_res(0))//填写提货地点 } return 1; };
看错了,你要的是仓库地址 改了一下,把他放到 脚本定义里,保存时会自动填写好地址 int func_before_save() { string eba_id,sql,aeba_id; eba_id=gui_get_val('ComboBox_Ext_Target_Edt_Id'); sql='select address from edt where edt_id="'+eba_id+'"';// db_run(sql); if(db_row_count()>0) { gui_set_text("ComboBox_Ext_Aim_Address",db_res(0)) } return 1; };
非常感谢cjsjtzlhh 老师的解答,在您帮助下已经解决了。
登录后方可发贴