2020-09-23

报表
一、
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

二、

在这里插入图片描述
在这里插入图片描述

Long ll_rowcnt,ll_start,ll_row,ll_rowcnt_log,ll_rowcnt_hj
String ls_old_djlsh,ls_djlsh,ls_jbqd,ls_dw,ls_bm,ls_tjbh,ls_xm,ls_xb
DateTime ldt_csnyr
String ls_query_value,ls_sort_value,ls_ys_remark_value
String ls_dwmc[] ,ls_bmmc
Long ll_djcnt,ll_zjcnt,ll_jbcnt,ll_zccnt, ll_wjcnt
Int li_arrycnt,li_nl
string ls_sql, ls_sql_new
int	ll_i


//鼠标成漏斗形状
SetPointer (HourGlass!)
openwithparm(w_message,"正在检索数据,请等待。。。")

dw_main.SetRedraw(FALSE)
dw_main.Reset()
dw_main.settransobject(sqlca)


string ls_sql1

	ls_sql1 += "  TJ_TJDJB.DJRQ>='" + string(invo_qc.idt_tjrqf[1],'yyyy-mm-dd') + "'"
	ls_sql1 += " and TJ_TJDJB.DJRQ<'" + string(invo_qc.idt_tjrqt[1],'yyyy-mm-dd') + "'"
if len(invo_qc.is_dwbh[1]) > 0 and invo_qc.is_dwbh[1] <> '%' then
	ls_sql1 += " and TJ_TJDJB.DWBH like '" + invo_qc.is_dwbh[1] + "%'"
	ls_sql1 +=" and TJ_TJDJB.DWTJCS=" + string(invo_qc.ii_dwtjcs[1]) + " "

end if

if invo_qc.is_tjjl = '1' then
	ls_sql1 += " and TJ_TJDJB.DYCS > 0"
elseif invo_qc.is_tjjl = '0' then
	ls_sql1 += " and TJ_TJDJB.DYCS = 0"
end if

if invo_qc.is_SUMOVER = '0' then
	ls_sql1 += " and TJ_TJDJB.SUMOVER = 0 "
elseif invo_qc.is_SUMOVER = '1' then
	ls_sql1 += " and TJ_TJDJB.SUMOVER = 1 "
elseif invo_qc.is_SUMOVER = '2' then
	ls_sql1 += " and TJ_TJDJB.SUMOVER = 2 "
elseif invo_qc.is_SUMOVER = '3' then
	ls_sql1 += " and TJ_TJDJB.SUMOVER = 3 "
elseif invo_qc.is_SUMOVER = '4' then
	ls_sql1 += " and TJ_TJDJB.SUMOVER = 4 "
elseif invo_qc.is_SUMOVER = '5' then
	ls_sql1 += " and TJ_TJDJB.SUMOVER = 5 "
end if

string ls_oldsql,ls_newsql
long ll_pos
ls_oldsql = dw_main.getsqlselect()
ls_newsql = ls_oldsql
ls_newsql = gf_replace_string_new(ls_newsql,"1=1",ls_sql1)

dw_main.SetSQLSelect(ls_newsql)

ll_djcnt = dw_main.retrieve()

dw_main.setsqlselect(ls_oldsql)

//表头表尾
ll_jbcnt = dw_main.RowCount()
if ll_jbcnt > 0 then
	if len(ls_dwmc[1])> 0 then
		dw_main.Object.t_head.Text = ls_dwmc[1] +'单位体检信息'
	else
		dw_main.Object.t_head.Text = '单位体检信息'
	end if
end if

dw_main.Object.t_bw_query_value.Text = '从'+string(invo_qc.idt_tjrqf[1] ,'yyyy-mm-dd')&
   +'到'+string(invo_qc.idt_tjrqt[1],'yyyy-mm-dd')   

close(w_message)
if ll_djcnt = 0 then
	ll_i = messagebox('提示','没有检索到数据,是否重新检索?',information!, yesno!, 2)
	if ll_i = 1 then 
		this.postevent("ue_query")
	else
		return
	end if
end if
SetPointer (Arrow!)


dw_main.SetRedraw(true)


自动换行
position—autosize height

横向打印
print specifications—paper orientation

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值