- 1、本文档共124页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
文本属性: 客户编号取值:Sle_1.text 客户名称取值:Sle_2.text 地址取值:Sle_3.text 信誉度取值:Sle_4.text 联系人取值:Sle_5.text 联系电话取值:Sle_6.text 各按钮代码: [确定]代码: string khbh,mc,dz,xyd,lxr,tel long flg_rows khbh=sle_1.text mc=sle_2.text dz=sle_3.text xyd=sle_4.text lxr=sle_5.text tel=sle_6.text if khbh= then messagebox(提示,客户编号不能为空) sle_1.setfocus() return end if dw_1.setfilter(khbh=++khbh+) dw_1.filter() flg_rows=dw_1.retrieve() if flg_rows0 then messagebox(警告,该客户已存在,请重新输入) sle_1.setfocus() return end if insert into t_khb values(:khbh,:mc,:dz,:xyd,:lxr,:tel); if sqlca.sqlcode0 then rollback; messagebox(提示,数据没有保存) else commit; messagebox(提示,数据已经保存) sle_1.text= sle_2.text= sle_3.text= sle_4.text= sle_5.text= sle_6.text= end if [取消]代码: sle_1.text= sle_2.text= sle_3.text= sle_4.text= sle_5.text= sle_6.text= [退出]代码: Close(parent) ddplb_1控件: [查询]代码: string condition,condition0,condition00,condition1,condition2 string oper if ddplb_3.text=与 then oper=and else if ddplb_3.text=或 then oper=or end if end if if ddplb_1.text=客户编号 then condition0=khbh else if ddplb_1.text=客户名称 then condition0=khmc else if ddplb_1.text=信誉度 then condition0=xyd else if ddplb_1.text=联系人 then condition0=lxr else if ddplb_1.text=联系电话 then condition0=tel else if ddplb_1.text=地址 then condition0=khdz end if end if end if end if end if end if if ddplb_4.text=客户编号 then condition00=khbh else if ddplb_4.text=客户名称 then condition00=khmc else if ddplb_4.text=信誉度 then condition00=xyd else if ddplb_4.text=联系人 then condition00=lxr else if ddplb_4.text=联系电话 then condition00=tel else if ddplb_4.text=地址 then condition00=khdz end if end if end if end if end if end if //单条件查询 if ddplb_4.text= or ddplb_5.text= then condition=condition0+ +ddplb_2.text+ ++sle_1.text+ if ddplb_2.text=like then condition=condition0+ +ddplb_2.text+ ++sle_1.text+% end if //messagebox(,condition) //多条件查询 else condition1=condition0+ +ddplb_2.text+ ++sle_1.text+ if ddplb_2.text=like then condition1=condition0+ +ddplb
文档评论(0)