欢迎光临兰州百强信息技术有限公司​​,服务热线:0931-4530200   13109493788
13109493788
兰州百强信息技术有限公司
Lanzhou Baiqiang Information Technology Co., Ltd.
专业信息智能化系统解决方案服务商
当前位置:
技术文章
technical service
赢通A5、A6、I7计算列的使用方法
来源: | 作者:pmtbfbde3 | 发布时间: 2254天前 | 11199 次浏览 | 分享到:

请注意:请在在条码打印、标签打印、前台小票、业务单据中使用,A3、A5、A6名称超长,要拆成多行打印的,要用  gf_str_split_sect(每节长度,第几节) 这个函数,不要用left,left会把汉字拆成乱码。A8、I7、I8、T6的可以用left,不会有问题。 

 

四、其它函数的使用方法(只是一部分,更多函数可以参见软件计算列中有说明或者咨询客服):

取时间:
string(today(),'yyyy-mm-dd') 
String(Now(), 'hh:mm:ss')

取固定长度行号:
right("00000000"+getrow(),8)

取打印次数:
'共打印' + db_data1('select prn_times from sys_t_sheet_change where sheet_no=?',sheet_no) + '次'
'公司' + db_data1('select branch_name from bi_t_branch_info where branch_no=?',branch_no) + '公司'

取数据不要小数点:
string(truncate(item_sale_price,0))
mid( string(item_sale_price), 0, 4 )
string(item_sale_price)

销售明细取会员名称:
db_data1('select vip_name from t_vip_info where card_id=?',vip_no)

前台取收银员名称:
db_data1('select oper_name From t_operator_i where oper_id=?',db_data1('select oper_id from  t_sale_master where sheet_no=?',sheet_no))

取仓库名:
db_data1("select branch_name from t_branch_info where branch_no=?",db_data1("select branch_no from t_inout_store_master where sheet_no=?",sheet_no))