Foxtable(狐表)用户栏目专家坐堂 → [求助] 按钮可以调用点击效果


  共有2657人关注过本帖树形打印复制链接

主题:[求助] 按钮可以调用点击效果

帅哥哟,离线,有人找我吗?
2900819580
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:六尾狐 帖子:1347 积分:9817 威望:0 精华:0 注册:2015/6/30 8:46:00
[求助] 按钮可以调用点击效果  发帖心情 Post By:2016/9/6 16:18:00 [只看该作者]

按钮可以调用点击效果,ComboBox 控件,怎么调用它的Click Doubleclick 和textchange命令

Dim btn As WinForm.Button = e.Form.Controls("But明细筛选")
Dim dd As WinForm.ComboBox = e.Form.Controls("订单编号")
btn.PerformClick



 回到顶部
帅哥哟,离线,有人找我吗?
狐狸爸爸
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2016/9/6 17:02:00 [只看该作者]

只有click事件可以直接调用,其他不可以。
你可以考虑做成自定义函数:
http://www.foxtable.com/webhelp/scr/1486.htm


 回到顶部
帅哥哟,离线,有人找我吗?
2900819580
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:六尾狐 帖子:1347 积分:9817 威望:0 精华:0 注册:2015/6/30 8:46:00
  发帖心情 Post By:2016/9/6 17:25:00 [只看该作者]

这样的代码怎么改自定义函数。。。。。。。

Dim dt As DataTable = DataTables("订单明细")
Dim dd As WinForm.ComboBox = e.Form.Controls("订单编号")
Dim bp As WinForm.ComboBox = e.Form.Controls("客户品牌")
Dim cb As WinForm.ComboBox = e.Form.Controls("产品型号")
Dim gg As WinForm.ComboBox = e.Form.Controls("产品规格")

Dim gb As WinForm.CheckBox = e.Form.Controls("ChK关闭")
Dim cs As WinForm.CheckBox = e.Form.Controls("ChK取消")
Dim wc As WinForm.CheckBox = e.Form.Controls("ChK完成")
Dim fi As String = "完成 = " & wc.Checked & " and 关闭 = " & gb.Checked & " and 取消 = " & cs.Checked
Dim tb As Table = Tables("排产汇总_Tab订单明细")

'If dd.Text > "" Then fi = fi & " and " & "订单编号 like '%" & dd.Text & "%'"
If bp.Text > "" Then fi = fi & " and " & "客户品牌 like '%" & bp.Text & "%'"
If cb.text > "" Then fi = fi & " and " & "产品名称 like '%" & cb.text & "%'"
If gg.Text > "" Then fi = fi & " and " & "产品规格 like '%" & gg.text & "%'"

dd.ComboList = dt.GetComboListString("订单编号",fi)

 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110574 积分:562760 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2016/9/6 17:43:00 [只看该作者]

dim e = Args(0)
Dim dt As DataTable = DataTables("订单明细")
Dim dd As WinForm.ComboBox = e.Form.Controls("订单编号")
Dim bp As WinForm.ComboBox = e.Form.Controls("客户品牌")
Dim cb As WinForm.ComboBox = e.Form.Controls("产品型号")
Dim gg As WinForm.ComboBox = e.Form.Controls("产品规格")

Dim gb As WinForm.CheckBox = e.Form.Controls("ChK关闭")
Dim cs As WinForm.CheckBox = e.Form.Controls("ChK取消")
Dim wc As WinForm.CheckBox = e.Form.Controls("ChK完成")
Dim fi As String = "完成 = " & wc.Checked & " and 关闭 = " & gb.Checked & " and 取消 = " & cs.Checked
Dim tb As Table = Tables("排产汇总_Tab订单明细")

'If dd.Text > "" Then fi = fi & " and " & "订单编号 like '%" & dd.Text & "%'"
If bp.Text > "" Then fi = fi & " and " & "客户品牌 like '%" & bp.Text & "%'"
If cb.text > "" Then fi = fi & " and " & "产品名称 like '%" & cb.text & "%'"
If gg.Text > "" Then fi = fi & " and " & "产品规格 like '%" & gg.text & "%'"

dd.ComboList = dt.GetComboListString("订单编号",fi)

调用
Functions.Execute("xx函数名",e)

 回到顶部