找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

初学者课程:T3自学|T6自学|U8自学软件下载课件下载工具下载资料:通资料|U8资料|NC|培训|年结积分规则 | 使用常见问题Q&A
知识库:U8 | | NC | U9 | OA | 政务U8|U9|NCC|NC65|NC65客开|NCC客开新手必读 | 任务 | 快速增金币用友QQ群[微信群]
查看: 6489|回复: 10

[政务] 用友R97能否套打银行日记账

[复制链接]
发表于 2008-8-3 10:10:14 | 显示全部楼层 |阅读模式
悬赏100金币已解决
用友R97能否套打银行日记账.我问过用友当地公司说不能,求求那位解决为感

最佳答案

查看完整内容

先做个备份 把下面得内容 在查询分析器里 选中好帐套 然后执行一下
发表于 2008-8-3 10:10:15 | 显示全部楼层
先做个备份 把下面得内容 在查询分析器里 选中好帐套 然后执行一下
回复

使用道具 举报

发表于 2008-8-4 08:15:27 | 显示全部楼层
可以的 具体方法是打开日记账 然后文件——打印预览,然后点页面设置 纸张设为a4 横向
再点打印设置 勾上套打前面的对勾 套打格式 选择[通用]用友表单A4激光日记账 基本就可以了 如果打出来有点偏再微调一下打印机走纸偏移量就行了。
回复

使用道具 举报

 楼主| 发表于 2008-8-4 09:26:05 | 显示全部楼层
不行
回复

使用道具 举报

发表于 2008-8-4 14:36:47 | 显示全部楼层
是没有 [通用]用友表单A4激光日记账套打格式 还是打出来太偏了 说具体一些
回复

使用道具 举报

发表于 2008-8-4 14:37:19 | 显示全部楼层
我给客户都是那么调的!
回复

使用道具 举报

 楼主| 发表于 2008-10-8 17:45:38 | 显示全部楼层

R97没有用友表单A4激光日记账套打格式,太烦了,只能用A4白纸打,

[ 本帖最后由 jh4617233 于 2008-10-13 14:33 编辑 ]
回复

使用道具 举报

发表于 2008-10-9 08:18:36 | 显示全部楼层
--UFGov Product Grid/Print Format Data InOut--
-------------Don't Edit the File-------------
-----------------Version 9.60-----------------


-- Inti GL_TDGSML Data --

if Not Exists (select 1 from gl_tdgsml where dynrbh='BZ' and dygsbh=101 and dygsmc='单位报账单' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('BZ',101,'单位报账单','','','','0','mm',3500,1400,1,5,675,240,395,110,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=10 and dygsmc='用友上海多栏账(三栏式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',10,'用友上海多栏账(三栏式)','','','','0','mm',5000,2800,1,32,50,290,480,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=205 and dygsmc='用友表单A4激光多栏明细账' and Printer='Canon LASER SHOT LBP-1210')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',205,'用友表单A4激光多栏明细账','','','','0','mm',2100,2970,1,32,2100,196,410,50,0,8,6,7,20,225,31,165,36,0,13,7,20,150,31,20,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LASER SHOT LBP-1210','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=255 and dygsmc='用友表单A4激光多栏明细账' and Printer='Canon LBP-2000 PCL6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',255,'用友表单A4激光多栏明细账','','','','0','mm',2100,2970,1,32,2100,194,402,50,0,8,6,7,20,225,30,165,35,0,13,7,20,150,30,20,35,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LBP-2000 PCL6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=305 and dygsmc='用友表单U8针打多栏明细账' and Printer='Epson LQ-1600KIII')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',305,'用友表单U8针打多栏明细账','','','','0','mm',3720,2540,1,30,2540,180,500,65,0,8,6,7,25,270,36,197,43,0,13,7,25,170,36,19,43,25,25,25,25,25,25,26,25,25,25,25,25,25,25,25,25,25,25,26,'Epson LQ-1600KIII','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=355 and dygsmc='用友表单A4激光多栏明细账' and Printer='HP LaserJet 1005')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',355,'用友表单A4激光多栏明细账','','','','0','mm',2100,2970,1,32,2100,190,420,50,0,8,6,7,20,225,32,165,37,0,13,7,20,150,32,21,37,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1005','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=405 and dygsmc='用友表单A4激光多栏明细账' and Printer='HP LaserJet 1010')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',405,'用友表单A4激光多栏明细账','','','','0','mm',2100,2970,1,32,2100,160,404,50,0,8,6,7,20,225,30,162,35,0,13,7,20,148,30,18,35,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1010','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=455 and dygsmc='用友表单A4激光多栏明细账' and Printer='HP LaserJet 1015')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',455,'用友表单A4激光多栏明细账','','','','0','mm',2100,2970,1,32,2100,168,404,50,0,8,6,7,20,225,30,162,35,0,13,7,20,148,30,18,35,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1015','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=505 and dygsmc='用友表单A4激光多栏明细账' and Printer='HP LaserJet 1300 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',505,'用友表单A4激光多栏明细账','','','','0','mm',2100,2970,1,32,2100,194,410,50,0,8,6,7,20,225,31,165,36,0,13,7,20,150,31,20,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1300 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=555 and dygsmc='用友表单A4激光多栏明细账' and Printer='HP LaserJet 5100 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',555,'用友表单A4激光多栏明细账','','','','0','mm',2100,2970,1,32,2100,215,402,50,0,8,6,7,20,230,30,170,35,0,13,7,20,150,30,22,35,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 5100 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=1005 and dygsmc='[通用]用友表单A4激光多栏明细账' and Printer='A4 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',1005,'[通用]用友表单A4激光多栏明细账','','','','0','mm',2100,2970,1,32,2100,168,404,50,0,8,6,7,20,225,30,162,35,0,13,7,20,148,30,18,35,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'A4 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='DL' and dygsbh=1055 and dygsmc='[通用]用友表单U8针打多栏明细账' and Printer='U8 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('DL',1055,'[通用]用友表单U8针打多栏明细账','','','','0','mm',3720,2540,1,30,2540,180,500,65,0,8,6,7,25,270,36,197,43,0,13,7,25,170,36,19,43,25,25,25,25,25,25,26,25,25,25,25,25,25,25,25,25,25,25,26,'U8 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=1 and dygsmc='用友上海科目明细账/日记账1(三栏式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',1,'用友上海科目明细账/日记账1(三栏式)','','','','0','mm',2850,2790,1,32,2,350,500,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=2 and dygsmc='用友上海科目明细账/日记账2(三栏式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',2,'用友上海科目明细账/日记账2(三栏式)','','','','0','mm',2850,2790,1,32,2,350,450,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=3 and dygsmc='用友上海科目明细账/日记账3(三栏式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',3,'用友上海科目明细账/日记账3(三栏式)','','','','0','mm',2850,2790,1,32,2,350,425,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=4 and dygsmc='用友上海科目明细账/日记账(数量金额式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',4,'用友上海科目明细账/日记账(数量金额式)','','','','0','mm',3820,2790,1,32,50,350,430,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=5 and dygsmc='用友上海科目明细账/日记账(复币式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',5,'用友上海科目明细账/日记账(复币式)','','','','0','mm',3820,2790,1,32,50,350,435,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=6 and dygsmc='用友上海科目明细账/日记账(数量外币式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',6,'用友上海科目明细账/日记账(数量外币式)','','','','0','mm',3810,2790,1,32,50,360,440,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=7 and dygsmc='用友政务科目明细账/日记账(三栏式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',7,'用友政务科目明细账/日记账(三栏式)','','','','0','mm',3600,2800,1,32,2,285,488,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=8 and dygsmc='用友政务科目明细账/日记账(数量金额式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',8,'用友政务科目明细账/日记账(数量金额式)','','','','0','mm',3820,2790,1,32,50,335,435,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=9 and dygsmc='用友政务科目明细账/日记账(复币式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',9,'用友政务科目明细账/日记账(复币式)','','','','0','mm',3810,2790,1,32,50,335,440,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=203 and dygsmc='用友表单A4激光明细账' and Printer='Canon LASER SHOT LBP-1210')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',203,'用友表单A4激光明细账','','','','0','mm',2100,2970,1,32,2100,194,410,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LASER SHOT LBP-1210','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=204 and dygsmc='用友表单A4激光日记账' and Printer='Canon LASER SHOT LBP-1210')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',204,'用友表单A4激光日记账','','','','0','mm',2100,2970,1,32,2100,198,410,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LASER SHOT LBP-1210','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=253 and dygsmc='用友表单A4激光明细账' and Printer='Canon LBP-2000 PCL6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',253,'用友表单A4激光明细账','','','','0','mm',2100,2970,1,32,2100,194,400,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LBP-2000 PCL6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=254 and dygsmc='用友表单A4激光日记账' and Printer='Canon LBP-2000 PCL6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',254,'用友表单A4激光日记账','','','','0','mm',2100,2970,1,32,2100,198,402,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LBP-2000 PCL6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=303 and dygsmc='用友表单U8针打明细账' and Printer='Epson LQ-1600KIII')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',303,'用友表单U8针打明细账','','','','0','mm',3120,2032,1,22,2032,190,500,65,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Epson LQ-1600KIII','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=304 and dygsmc='用友表单U8针打日记账' and Printer='Epson LQ-1600KIII')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',304,'用友表单U8针打日记账','','','','0','mm',3120,2032,1,22,2032,200,490,65,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Epson LQ-1600KIII','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=353 and dygsmc='用友表单A4激光明细账' and Printer='HP LaserJet 1005')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',353,'用友表单A4激光明细账','','','','0','mm',2100,2970,1,32,2100,195,420,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1005','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=354 and dygsmc='用友表单A4激光日记账' and Printer='HP LaserJet 1005')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',354,'用友表单A4激光日记账','','','','0','mm',2100,2970,1,32,2100,195,420,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1005','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=403 and dygsmc='用友表单A4激光明细账' and Printer='HP LaserJet 1010')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',403,'用友表单A4激光明细账','','','','0','mm',2100,2970,1,32,2100,160,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1010','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=404 and dygsmc='用友表单A4激光日记账' and Printer='HP LaserJet 1010')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',404,'用友表单A4激光日记账','','','','0','mm',2100,2970,1,32,2100,160,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1010','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=453 and dygsmc='用友表单A4激光明细账' and Printer='HP LaserJet 1015')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',453,'用友表单A4激光明细账','','','','0','mm',2100,2970,1,32,2100,162,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1015','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=454 and dygsmc='用友表单A4激光日记账' and Printer='HP LaserJet 1015')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',454,'用友表单A4激光日记账','','','','0','mm',2100,2970,1,32,2100,165,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1015','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=503 and dygsmc='用友表单A4激光明细账' and Printer='HP LaserJet 1300 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',503,'用友表单A4激光明细账','','','','0','mm',2100,2970,1,32,2100,194,410,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1300 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=504 and dygsmc='用友表单A4激光日记账' and Printer='HP LaserJet 1300 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',504,'用友表单A4激光日记账','','','','0','mm',2100,2970,1,32,2100,194,410,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1300 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=553 and dygsmc='用友表单A4激光明细账' and Printer='HP LaserJet 5100 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',553,'用友表单A4激光明细账','','','','0','mm',2100,2970,1,32,2100,210,402,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 5100 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=554 and dygsmc='用友表单A4激光日记账' and Printer='HP LaserJet 5100 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',554,'用友表单A4激光日记账','','','','0','mm',2100,2970,1,32,2100,215,402,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 5100 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=1003 and dygsmc='[通用]用友表单A4激光明细账' and Printer='A4 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',1003,'[通用]用友表单A4激光明细账','','','','0','mm',2100,2970,1,32,2100,162,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'A4 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=1004 and dygsmc='[通用]用友表单A4激光日记账' and Printer='A4 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',1004,'[通用]用友表单A4激光日记账','','','','0','mm',2100,2970,1,32,2100,165,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'A4 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=1053 and dygsmc='[通用]用友表单U8针打明细账' and Printer='U8 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',1053,'[通用]用友表单U8针打明细账','','','','0','mm',3120,2032,1,22,2032,190,500,65,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'U8 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='MX' and dygsbh=1054 and dygsmc='[通用]用友表单U8针打日记账' and Printer='U8 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('MX',1054,'[通用]用友表单U8针打日记账','','','','0','mm',3120,2032,1,22,2032,200,490,65,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'U8 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=21 and dygsmc='用友政务标准凭证套打纸' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',21,'用友政务标准凭证套打纸','','','','0','mm',3500,1400,1,5,675,240,395,110,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=22 and dygsmc='用友政务标准凭证(复币式)套打纸' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',22,'用友政务标准凭证(复币式)套打纸','','','','0','mm',3500,1400,1,5,675,230,380,110,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=23 and dygsmc='用友上海凭证(复币式)套打纸' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',23,'用友上海凭证(复币式)套打纸','','','','0','mm',2900,2790,2,7,1398,230,310,110,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=24 and dygsmc='用友上海凭证套打纸' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',24,'用友上海凭证套打纸','','','','0','mm',2500,2790,2,7,1400,240,320,110,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=200 and dygsmc='用友表单A4激光金额记账凭证' and Printer='Canon LASER SHOT LBP-1210')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',200,'用友表单A4激光金额记账凭证','','','','0','mm',2100,2970,2,5,1270,150,325,130,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LASER SHOT LBP-1210','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=250 and dygsmc='用友表单A4激光金额记账凭证' and Printer='Canon LBP-2000 PCL6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',250,'用友表单A4激光金额记账凭证','','','','0','mm',2100,2970,2,5,1270,145,325,130,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LBP-2000 PCL6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=300 and dygsmc='用友表单U8针打金额记账凭证' and Printer='Epson LQ-1600KIII')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',300,'用友表单U8针打金额记账凭证','','','','0','mm',2100,2970,2,5,1270,100,305,130,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Epson LQ-1600KIII','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=350 and dygsmc='用友表单A4激光金额记账凭证' and Printer='HP LaserJet 1005')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',350,'用友表单A4激光金额记账凭证','','','','0','mm',2100,2970,2,5,1270,160,315,130,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1005','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=400 and dygsmc='用友表单A4激光金额记账凭证' and Printer='HP LaserJet 1010')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',400,'用友表单A4激光金额记账凭证','','','','0','mm',2100,2970,2,5,1270,150,335,130,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1010','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=450 and dygsmc='用友表单A4激光金额记账凭证' and Printer='HP LaserJet 1015')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',450,'用友表单A4激光金额记账凭证','','','','0','mm',2100,2970,2,5,1270,150,335,130,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1015','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=500 and dygsmc='用友表单A4激光金额记账凭证' and Printer='HP LaserJet 1300 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',500,'用友表单A4激光金额记账凭证','','','','0','mm',2100,2970,2,5,1270,150,325,130,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1300 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=550 and dygsmc='用友表单A4激光金额记账凭证' and Printer='HP LaserJet 5100 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',550,'用友表单A4激光金额记账凭证','','','','0','mm',2100,2970,2,5,1270,145,320,130,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 5100 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=1000 and dygsmc='[通用]用友表单A4激光金额记账凭证' and Printer='A4 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',1000,'[通用]用友表单A4激光金额记账凭证','','','','0','mm',2100,2970,2,5,1270,150,335,130,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'A4 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='PZ' and dygsbh=1050 and dygsmc='[通用]用友表单U8针打金额记账凭证' and Printer='U8 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('PZ',1050,'[通用]用友表单U8针打金额记账凭证','','','','0','mm',2100,2970,2,5,1270,100,305,130,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'U8 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=11 and dygsmc='用友上海科目余额表(三栏式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',11,'用友上海科目余额表(三栏式)','','','','0','mm',3380,2790,1,32,50,340,380,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=12 and dygsmc='用友政务科目余额表(三栏式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',12,'用友政务科目余额表(三栏式)','','','','0','mm',3370,2790,1,32,50,350,440,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=201 and dygsmc='用友表单A4激光余额汇总表' and Printer='Canon LASER SHOT LBP-1210')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',201,'用友表单A4激光余额汇总表','','','','0','mm',2100,2970,1,32,2030,198,408,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LASER SHOT LBP-1210','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=251 and dygsmc='用友表单A4激光余额汇总表' and Printer='Canon LBP-2000 PCL6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',251,'用友表单A4激光余额汇总表','','','','0','mm',2100,2970,1,32,2030,198,408,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LBP-2000 PCL6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=301 and dygsmc='用友表单U8针打余额汇总表' and Printer='Epson LQ-1600KIII')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',301,'用友表单U8针打余额汇总表','','','','0','mm',3120,2032,1,22,2030,190,500,65,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Epson LQ-1600KIII','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=351 and dygsmc='用友表单A4激光余额汇总表' and Printer='HP LaserJet 1005')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',351,'用友表单A4激光余额汇总表','','','','0','mm',2100,2970,1,32,2030,194,420,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1005','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=401 and dygsmc='用友表单A4激光余额汇总表' and Printer='HP LaserJet 1010')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',401,'用友表单A4激光余额汇总表','','','','0','mm',2100,2970,1,32,2030,170,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1010','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=451 and dygsmc='用友表单A4激光余额汇总表' and Printer='HP LaserJet 1015')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',451,'用友表单A4激光余额汇总表','','','','0','mm',2100,2970,1,32,2030,170,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1015','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=501 and dygsmc='用友表单A4激光余额汇总表' and Printer='HP LaserJet 1300 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',501,'用友表单A4激光余额汇总表','','','','0','mm',2100,2970,1,32,2030,198,408,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1300 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=551 and dygsmc='用友表单A4激光余额汇总表' and Printer='HP LaserJet 5100 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',551,'用友表单A4激光余额汇总表','','','','0','mm',2100,2970,1,32,2030,210,402,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 5100 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=1001 and dygsmc='[通用]用友表单A4激光余额汇总表' and Printer='A4 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',1001,'[通用]用友表单A4激光余额汇总表','','','','0','mm',2100,2970,1,32,2030,170,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'A4 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='YE' and dygsbh=1051 and dygsmc='[通用]用友表单U8针打余额汇总表' and Printer='U8 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('YE',1051,'[通用]用友表单U8针打余额汇总表','','','','0','mm',3120,2032,1,22,2030,190,500,65,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'U8 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=13 and dygsmc='用友上海科目总账(三栏式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',13,'用友上海科目总账(三栏式)','','','','0','mm',2860,2790,1,32,50,350,500,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=14 and dygsmc='用友政务科目总账(三栏式)' and Printer='Old')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',14,'用友政务科目总账(三栏式)','','','','0','mm',2860,2790,1,32,50,350,440,66,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Old','0')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=202 and dygsmc='用友表单A4激光总分类账' and Printer='Canon LASER SHOT LBP-1210')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',202,'用友表单A4激光总分类账','','','','0','mm',2100,2970,1,32,2100,195,408,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LASER SHOT LBP-1210','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=252 and dygsmc='用友表单A4激光总分类账' and Printer='Canon LBP-2000 PCL6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',252,'用友表单A4激光总分类账','','','','0','mm',2100,2970,1,32,2100,195,400,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Canon LBP-2000 PCL6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=302 and dygsmc='用友表单U8针打总分类账' and Printer='Epson LQ-1600KIII')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',302,'用友表单U8针打总分类账','','','','0','mm',3120,2032,1,22,50,190,500,65,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'Epson LQ-1600KIII','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=352 and dygsmc='用友表单A4激光总分类账' and Printer='HP LaserJet 1005')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',352,'用友表单A4激光总分类账','','','','0','mm',2100,2970,1,32,2100,196,420,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1005','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=402 and dygsmc='用友表单A4激光总分类账' and Printer='HP LaserJet 1010')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',402,'用友表单A4激光总分类账','','','','0','mm',2100,2970,1,32,2100,160,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1010','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=452 and dygsmc='用友表单A4激光总分类账' and Printer='HP LaserJet 1015')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',452,'用友表单A4激光总分类账','','','','0','mm',2100,2970,1,32,2100,162,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1015','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=502 and dygsmc='用友表单A4激光总分类账' and Printer='HP LaserJet 1300 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',502,'用友表单A4激光总分类账','','','','0','mm',2100,2970,1,32,2100,195,408,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 1300 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=552 and dygsmc='用友表单A4激光总分类账' and Printer='HP LaserJet 5100 PCL 6')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',552,'用友表单A4激光总分类账','','','','0','mm',2100,2970,1,32,2100,210,402,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'HP LaserJet 5100 PCL 6','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=1002 and dygsmc='[通用]用友表单A4激光总分类账' and Printer='A4 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',1002,'[通用]用友表单A4激光总分类账','','','','0','mm',2100,2970,1,32,2100,162,405,50,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'A4 Default','1')
if Not Exists (select 1 from gl_tdgsml where dynrbh='ZZ' and dygsbh=1052 and dygsmc='[通用]用友表单U8针打总分类账' and Printer='U8 Default')  Insert into gl_tdgsml(dynrbh,dygsbh,dygsmc,sjr,sjrq,syrq,syzt,unit,pwidth,PHeight,PNum,PLines,PSpace,POffX,POffY,PLSpace,PLOffY,FixedColsNum1,UnFixedColsNum1,FixedOtheNum1,UnFixedColsWidth1, FixedLabelLeft1,FixedLabelTop1,UnFixedLabelLeft1,UnFixedLabelTop1,FixedColsNum2,UnFixedColsNum2,FixedOtheNum2,UnFixedColsWidth2,FixedLabelLeft2,FixedLabelTop2,UnFixedLabelLeft2,UnFixedLabelTop2, UnFixedColsWidth1_1,UnFixedColsWidth1_2,UnFixedColsWidth1_3,UnFixedColsWidth1_4,UnFixedColsWidth1_5,UnFixedColsWidth1_6,UnFixedColsWidth2_1,UnFixedColsWidth2_2,UnFixedColsWidth2_3,UnFixedColsWidth2_4, UnFixedColsWidth2_5,UnFixedColsWidth2_6,UnFixedColsWidth2_7,UnFixedColsWidth2_8,UnFixedColsWidth2_9,UnFixedColsWidth2_10,UnFixedColsWidth2_11,UnFixedColsWidth2_12,UnFixedColsWidth2_13,Printer,IsSystem)
Values('ZZ',1052,'[通用]用友表单U8针打总分类账','','','','0','mm',3120,2032,1,22,50,190,500,65,0,8,6,7,25,250,31,180,36,0,13,7,25,160,31,22,36,20,20,20,20,20,20,21,21,21,21,21,21,21,20,20,20,20,20,20,'U8 Default','1')
--GO--

-- Inti GL_TDGSNR Data --

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'BT','标题',0,1350,190,'S',0,0,0,'L','楷体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'KM','科目',1,450,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'NIAN','年',2,1340,335,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'YH','页号',3,2450,335,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'DWMC','单位名称',4,1000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'PRINTMAN','打印人',5,2000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'PRINTTIME','打印时间',6,2500,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'ZY','摘要',2,0,0,'S',0,0,765,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'YSPZH','原始凭证号',3,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'JFJE','借方',4,0,0,'C',0,2,440,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'DFJE','贷方',5,0,0,'C',0,2,440,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'YEFX','方向',6,0,0,'S',0,0,100,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1,'YEJE','余额',7,0,0,'C',0,2,440,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'BT','标题',0,1350,68,'S',0,0,0,'L','楷体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'KM','科目',1,450,240,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'NIAN','年',2,1550,200,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'YH','页号',3,2500,250,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'DWMC','单位名称',4,1000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'PRINTMAN','打印人',5,2000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'PRINTTIME','打印时间',6,2500,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'PZH','凭证号',2,0,0,'S',0,0,165,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'ZY','摘要',3,0,0,'S',0,0,610,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'JFJE','借方',5,0,0,'C',0,2,485,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'DFJE','贷方',6,0,0,'C',0,2,485,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'YEFX','方向',7,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=2 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(2,'YEJE','余额',8,0,0,'C',0,2,380,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'BT','标题',0,1300,60,'S',0,0,0,'L','楷体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'KM','科目',1,450,235,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'NIAN','年',2,1420,200,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'YH','页号',3,2500,235,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'DWMC','单位名称',4,1000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'PRINTMAN','打印人',5,2000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'PRINTTIME','打印时间',6,2500,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'PZH','凭证号',2,0,0,'S',0,0,160,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'ZY','摘要',3,0,0,'S',0,0,605,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'JFJE','借方',6,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'DFJE','贷方',7,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'YEFX','方向',8,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=3 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(3,'YEJE','余额',9,0,0,'C',0,2,360,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'BT','标题',0,1900,90,'S',0,0,0,'L','楷体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'KM','科目',1,450,240,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'NIAN','年',2,1900,210,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'YH','页号',3,3380,240,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'DWMC','单位名称',4,1000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'PRINTMAN','打印人',5,2000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'PRINTTIME','打印时间',6,2500,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'PZH','凭证号',2,0,0,'S',0,0,160,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'ZY','摘要',3,0,0,'S',0,0,550,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='JFSL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'JFSL','借方数量',5,0,0,'D',0,6,220,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='JFDJ') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'JFDJ','借方单价',6,0,0,'D',0,6,250,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'JFJE','借方金额',7,0,0,'C',0,2,330,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='DFSL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'DFSL','贷方数量',8,0,0,'D',0,6,220,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='DFDJ') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'DFDJ','贷方单价',9,0,0,'D',0,6,250,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'DFJE','贷方金额',10,0,0,'C',0,2,330,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='YESL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'YESL','余额数量',11,0,0,'D',0,6,220,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='YEDJ') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'YEDJ','余额单价',12,0,0,'D',0,6,250,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=4 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(4,'YEJE','余额金额',13,0,0,'C',0,2,330,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'BT','标题',0,1400,20,'S',0,0,0,'L','楷体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'KM','科目',1,450,240,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'NIAN','年',2,1620,140,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'YH','页号',3,3300,240,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'DWMC','单位名称',4,1000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'PRINTMAN','打印人',5,2000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'PRINTTIME','打印时间',6,2500,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'PZH','凭证号',2,0,0,'S',0,0,140,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'ZY','摘要',3,0,0,'S',0,0,550,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'DFKM','对方科目',5,0,0,'S',0,0,380,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='HL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'HL','汇率',6,0,0,'C',0,2,150,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='JFWBJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'JFWBJE','借方外币金额',7,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'JFJE','借方金额',8,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='DFWBJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'DFWBJE','贷方外币金额',9,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'DFJE','贷方金额',10,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'YEFX','方向',11,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='YEWBJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'YEWBJE','余额外币金额',12,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=5 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(5,'YEJE','余额金额',13,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'BT','标题',0,1800,100,'S',0,0,0,'L','楷体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'KM','科目',1,450,250,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'NIAN','年',2,1860,195,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'YH','页号',3,3380,250,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='JSL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'JSL','借方数量',4,1250,375,'S',0,0,380,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='JDJ') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'JDJ','借方单价',5,1510,375,'C',0,2,155,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='JWBJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'JWBJE','借方外币金额',6,1740,375,'C',0,2,305,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='JJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'JJE','借方金额',7,2030,375,'C',0,2,305,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='DSL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'DSL','贷方数量',8,2290,375,'C',0,2,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='DDJ') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'DDJ','贷方单价',9,2550,375,'C',0,2,155,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='DWBJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'DWBJE','贷方外币金额',10,2780,375,'C',0,2,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='DJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'DJE','贷方金额',11,3070,375,'C',0,2,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'DWMC','单位名称',12,1000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'PRINTMAN','打印人',13,2000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'PRINTTIME','打印时间',14,2500,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'PZH','凭证号',2,0,0,'S',0,0,160,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'ZY','摘要',3,0,0,'S',0,0,560,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='JFSL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'JFSL','借方数量',5,0,0,'S',0,0,260,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='JFDJ') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'JFDJ','借方单价',6,0,0,'C',0,2,260,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='JFWBJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'JFWBJE','借方外币金额',7,0,0,'C',0,2,260,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'JFJE','借方金额',8,0,0,'C',0,2,260,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='DFSL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'DFSL','贷方数量',9,0,0,'C',0,2,260,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='DFDJ') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'DFDJ','贷方单价',10,0,0,'C',0,2,260,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='DFWBJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'DFWBJE','贷方外币金额',11,0,0,'C',0,2,260,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'DFJE','贷方金额',12,0,0,'C',0,2,260,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'YEFX','方向',13,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=6 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(6,'YEJE','余额金额',14,0,0,'C',0,2,260,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'BT','标题',0,1300,90,'S',0,0,0,'L','楷体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'KM','科目',1,450,240,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'NIAN','年',2,1400,195,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'YH','页号',3,2380,270,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'DWMC','单位名称',4,1000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'PRINTMAN','打印人',5,2000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'PRINTTIME','打印时间',6,2500,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'PZH','凭证号',2,0,0,'S',0,0,160,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'ZY','摘要',3,0,0,'S',0,0,710,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'DFKM','对方科目',5,0,0,'S',0,0,360,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'JFJE','借方',6,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'DFJE','贷方',7,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'YEFX','方向',8,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=7 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(7,'YEJE','余额',9,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'BT','标题',0,1800,40,'S',0,0,0,'L','楷体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'KM','科目',1,450,230,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'NIAN','年',2,1930,183,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'YH','页号',3,3370,235,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'DWMC','单位名称',4,1000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'PRINTMAN','打印人',5,2000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'PRINTTIME','打印时间',6,2500,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'PZH','凭证号',2,0,0,'S',0,0,160,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'ZY','摘要',3,0,0,'S',0,0,550,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='JFSL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'JFSL','借方数量',5,0,0,'D',0,6,230,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='JFDJ') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'JFDJ','借方单价',6,0,0,'D',0,6,250,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'JFJE','借方金额',7,0,0,'C',0,2,330,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='DFSL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'DFSL','贷方数量',8,0,0,'D',0,6,220,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='DFDJ') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'DFDJ','贷方单价',9,0,0,'D',0,6,250,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'DFJE','贷方金额',10,0,0,'C',0,2,330,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='YESL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'YESL','余额数量',11,0,0,'D',0,6,220,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='YEDJ') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'YEDJ','余额单价',12,0,0,'D',0,6,250,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=8 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(8,'YEJE','余额金额',13,0,0,'C',0,2,330,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'BT','标题',0,1780,40,'S',0,0,0,'L','楷体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'KM','科目',1,450,240,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'NIAN','年',2,1830,180,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'YH','页号',3,3300,240,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'DWMC','单位名称',4,1000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'PRINTMAN','打印人',5,2000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'PRINTTIME','打印时间',6,2500,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'PZH','凭证号',2,0,0,'S',0,0,140,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'ZY','摘要',3,0,0,'S',0,0,550,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'DFKM','对方科目',5,0,0,'S',0,0,380,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='HL') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'HL','汇率',6,0,0,'C',0,2,155,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='JFWBJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'JFWBJE','借方外币金额',7,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'JFJE','借方金额',8,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='DFWBJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'DFWBJE','贷方外币金额',9,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'DFJE','贷方金额',10,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'YEFX','方向',11,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='YEWBJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'YEWBJE','余额外币金额',12,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=9 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(9,'YEJE','余额金额',13,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'BT','标题',0,1750,70,'S',0,0,0,'L','楷体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'KM','科目',1,450,220,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'NIAN','年',2,1710,195,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'YH','页号',3,3260,270,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'DWMC','单位名称',4,1000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'PRINTMAN','打印人',5,2000,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'PRINTTIME','打印时间',6,2500,330,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'MONTH','月',0,0,0,'S',0,0,50,'C','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'DAY','日',1,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'PZH','凭证号',2,0,0,'S',0,0,160,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'ZY','摘要',3,0,0,'S',0,0,490,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'JFJE','借方',4,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'DFJE','贷方',5,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=10 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(10,'YEJE','余额',7,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'bt','标题',0,1630,100,'S',0,0,0,'L','宋体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'nian','年',1,1750,212,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'Oyue','月',2,1860,212,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'yh','页号',3,2860,220,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'dwmc','单位名称',4,100,220,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'printman','打印人',5,1300,220,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'printtime','打印时间',6,2000,220,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'km','科目',0,0,0,'S',0,0,530,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'qcjf','期初借方余额',1,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'qcdf','期初贷方余额',2,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'bqjf','本期借方发生',3,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'bqdf','本期贷方发生',4,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'qmjf','期末借方余额',5,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=11 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(11,'qmdf','期末贷方余额',6,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'bt','标题',0,1580,50,'S',0,0,0,'L','宋体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'nian','年',1,1720,180,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'Oyue','月',2,1840,180,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'yh','页号',3,2970,235,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'dwmc','单位名称',4,100,220,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'printman','打印人',5,1300,220,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'printtime','打印时间',6,2000,220,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'km','科目',0,0,0,'S',0,0,540,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'qcjf','期初借方余额',1,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'qcdf','期初贷方余额',2,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'bqjf','本期借方发生',3,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'bqdf','本期贷方发生',4,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'qmjf','期末借方余额',5,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=12 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(12,'qmdf','期末贷方余额',6,0,0,'C',0,2,385,'R','宋体',9,0,0,'1','1','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'bt','标题',0,1300,200,'S',0,0,0,'L','宋体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'nian','年',1,1330,345,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'yh','页号',2,2400,345,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'fz','附注',3,450,340,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'dwmc','单位名称',4,300,345,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'PrintMan','打印人',5,1300,345,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'PrintTime','打印时间',6,1600,345,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'yue','月',0,0,0,'S',0,0,110,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'zy','摘要',1,0,0,'S',0,0,770,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'jfje','借方',2,0,0,'C',0,2,440,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'dfje','贷方',3,0,0,'C',0,2,440,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'fx','余额方向',4,0,0,'S',0,0,100,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=13 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(13,'ye','余额',5,0,0,'C',0,2,430,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'bt','标题',0,1340,50,'S',0,0,0,'L','宋体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'nian','年',1,1480,185,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'yh','页号',2,2420,245,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'fz','附注',3,450,250,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'dwmc','单位名称',4,300,345,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'PrintMan','打印人',5,1300,345,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'PrintTime','打印时间',6,1600,345,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'yue','月',0,0,0,'S',0,0,270,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'zy','摘要',1,0,0,'S',0,0,1090,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'jfje','借方',2,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'dfje','贷方',3,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'fx','余额方向',4,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=14 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(14,'ye','余额',5,0,0,'C',0,2,290,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'bt','标题',0,950,40,'S',0,0,300,'L','宋体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'nian','年',1,1040,145,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'yue','月',2,1190,145,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'ri','日',3,1300,145,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'bh','编号',4,1760,195,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'fjs','附件张数',5,2162,540,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'kjzg','会计主管',6,526,985,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'fh','复核',7,890,985,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'zd','制单',8,1250,985,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'jfhjje','借方合计金额',9,1550,915,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'dfhjje','贷方合计金额',10,1850,915,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'jsr','经手人',11,1650,988,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'cn','出纳',12,1922,988,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'dwmc','单位名称',13,250,1048,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'dxhjje','合计金额的大写金额',14,500,915,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'jzr','记账人',15,650,985,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'zy','摘要',0,0,0,'S',0,0,535,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'yjkm','一级科目',1,0,0,'S',0,0,375,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'mxkm','明细科目',2,0,0,'S',0,0,370,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'jfje','借方',3,0,0,'S',0,0,300,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=21 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(21,'dfje','贷方',4,0,0,'S',0,0,300,'R','宋体',9,0,1,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'bt','标题',0,1100,35,'S',0,0,0,'L','宋体',22,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'nian','年',1,1180,125,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'yue','月',2,1320,125,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'ri','日',3,1420,125,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'bh','编号',4,2100,175,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'fjs','附件张数',5,2535,535,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'kjzg','会计主管',6,520,965,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'fh','复核',7,950,965,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'zd','制单',8,1450,965,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'jfhjje','借方合计金额',9,1920,915,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'dfhjje','贷方合计金额',10,2220,915,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'jsr','经手人',11,1750,965,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'cn','出纳',12,2050,965,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'dwmc','单位名称',13,250,970,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'dxhjje','合计金额的大写金额',14,500,915,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'jzr','记账人',15,650,965,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'zy','摘要',0,0,0,'S',0,0,535,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'yjkm','一级科目',1,0,0,'S',0,0,255,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'mxkm','明细科目',2,0,0,'S',0,0,405,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='wbje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'wbje','外币金额',3,0,0,'S',0,6,295,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='hl') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'hl','汇率',4,0,0,'S',0,6,150,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'jfje','借方',5,0,0,'2',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=22 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(22,'dfje','贷方',6,0,0,'S',0,2,286,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'bt','标题',0,1100,15,'S',0,0,0,'L','宋体',22,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'nian','年',1,1030,145,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'yue','月',2,1180,145,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'ri','日',3,1320,145,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'bh','编号',4,2100,145,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'fjs','附件张数',5,2530,500,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'kjzg','会计主管',6,720,950,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'fh','复核',7,1230,950,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'zd','制单',8,1910,950,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'jfhjje','借方合计金额',9,1920,870,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'dfhjje','贷方合计金额',10,2220,870,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'jsr','经手人',11,1750,950,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'cn','出纳',12,2050,950,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'dwmc','单位名称',13,250,970,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'dxhjje','合计金额的大写金额',14,500,915,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'jzr','记账人',15,850,950,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'zy','摘要',0,0,0,'S',0,0,530,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'yjkm','一级科目',1,0,0,'S',0,0,248,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'mxkm','明细科目',2,0,0,'S',0,0,405,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='wbje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'wbje','外币金额',3,0,0,'S',0,0,295,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='hl') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'hl','汇率',4,0,0,'S',0,0,150,'R','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'jfje','借方',5,0,0,'2',0,2,296,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=23 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(23,'dfje','贷方',6,0,0,'S',0,2,294,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'bt','标题',0,980,20,'S',0,0,0,'L','宋体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'nian','年',1,1113,140,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'yue','月',2,1215,140,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'ri','日',3,1285,140,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'bh','编号',4,1660,140,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'fjs','附件张数',5,2155,500,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'kjzg','会计主管',6,525,940,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'fh','复核',7,952,940,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'zd','制单',8,1350,940,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'jfhjje','借方合计金额',9,1550,860,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'dfhjje','贷方合计金额',10,1850,860,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'jsr','经手人',11,1750,940,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'cn','出纳',12,2050,940,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'dwmc','单位名称',13,250,970,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'dxhjje','合计金额的大写金额',14,500,900,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'jzr','记账人',15,650,940,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'zy','摘要',0,0,0,'S',0,0,535,'L','宋体',9,0,1,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'yjkm','一级科目',1,0,0,'S',0,0,325,'L','宋体',9,0,0,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'mxkm','明细科目',2,0,0,'S',0,0,415,'L','宋体',9,0,1,'1','1','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'jfje','借方',3,0,0,'S',0,0,297,'R','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=24 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(24,'dfje','贷方',4,0,0,'S',0,0,305,'R','宋体',9,0,1,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'bt','标题',0,1800,40,'S',0,0,0,'L','宋体',24,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'dwmc','单位名称',1,200,200,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='djbh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'djbh','单据编号',2,1200,200,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='ywrq') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'ywrq','业务日期',3,800,200,'S',0,0,0,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='zdr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'zdr','制单人',4,200,1000,'S',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'fjs','附件数',5,200,900,'D',0,0,0,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='hjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'hjje','合计金额',6,1300,900,'C',0,0,0,'R','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'zy','摘要',0,0,0,'S',0,0,535,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'km','科目',1,0,0,'S',0,0,370,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='jdfx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'jdfx','借贷方向',2,0,0,'S',0,2,100,'L','宋体',9,0,0,'1','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=101 and ltrim(rtrim(FldName))='je') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(101,'je','金额',3,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','0',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'bt','标题',0,660,0,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'nian','年',1,1570,0,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'yue','月',2,1690,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'ri','日',3,1770,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'bh','编号',4,1540,80,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'fjs','附件张数',5,1920,380,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'kjzg','财务主管',6,450,1055,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'fh','审核',7,980,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'zd','制单',8,1570,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'jfhjje','借方合计金额',9,1330,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'dfhjje','贷方合计金额',10,1600,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'jsr','经手人',11,1910,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'cn','出纳',12,1310,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'dwmc','单位',13,360,120,'S',0,0,250,'L','黑体',9,0,1,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'dxhjje','合计金额',14,350,990,'S',0,0,350,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'jzr','记账',15,400,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'zy','摘要',100,0,0,'S',0,0,370,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'yjkm','总账科目',101,0,0,'S',0,0,300,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'mxkm','明细科目',102,0,0,'S',0,0,520,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'jfje','借方',103,0,0,'S',0,0,270,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=200 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(200,'dfje','贷方',104,0,0,'S',0,0,270,'R','宋体',9,0,1,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'nian','年',1,2600,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'Oyue','月',2,2740,130,'S',0,0,80,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'yh','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'dwmc','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'printman','制单',5,420,1995,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'printtime','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'km','科目',100,0,0,'S',0,0,600,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'qcjf','期初借方余额',101,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'qcdf','期初贷方余额',102,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'bqjf','本期借方发生',103,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'bqdf','本期贷方发生',104,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'qmjf','期末借方余额',105,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=201 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(201,'qmdf','期末贷方余额',106,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'nian','年',1,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'yh','页号:',2,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'fz','附注',3,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'dwmc','单位名称',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'PrintMan','制表',5,420,1995,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'PrintTime','打印时间:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'yue','月',100,0,0,'S',0,0,316,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'zy','摘要',101,0,0,'S',0,0,870,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'jfje','借方',102,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'dfje','贷方',103,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'fx','余额方向',104,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=202 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(202,'ye','余额',105,0,0,'C',0,2,465,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'DWMC','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'PRINTMAN','制单',5,420,1995,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'ZY','摘要',3,0,0,'S',0,0,880,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'JFJE','借方',6,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'DFJE','贷方',7,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'YEFX','方向',8,0,0,'S',0,0,65,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=203 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(203,'YEJE','余额',9,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'DWMC','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'PRINTMAN','制单',5,420,1995,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'PRINTTIME','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'ZY','摘要',3,0,0,'S',0,0,760,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'JFJE','借方',6,0,0,'C',0,2,360,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'DFJE','贷方',7,0,0,'C',0,2,360,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'YEFX','方向',8,0,0,'S',0,0,70,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=204 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(204,'YEJE','余额',9,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='HSDW') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'HSDW','核算单位',4,420,1935,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='ZDR') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'ZDR','制单',5,420,1980,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'PRINTMAN','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'MONTH','月',0,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'DAY','日',1,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'PZH','凭证号',2,0,0,'S',0,0,155,'L','宋体',8,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'ZY','摘要',3,0,0,'S',0,0,520,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'JFJE','借方',4,0,0,'C',0,2,200,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'DFJE','贷方',5,0,0,'C',0,2,200,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=205 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(205,'YEJE','余额',7,0,0,'C',0,2,210,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'bt','标题',0,660,0,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'nian','年',1,1570,0,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'yue','月',2,1690,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'ri','日',3,1770,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'bh','编号',4,1540,80,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'fjs','附件张数',5,1920,380,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'kjzg','财务主管',6,450,1055,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'fh','审核',7,980,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'zd','制单',8,1570,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'jfhjje','借方合计金额',9,1330,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'dfhjje','贷方合计金额',10,1600,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'jsr','经手人',11,1910,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'cn','出纳',12,1310,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'dwmc','单位',13,360,120,'S',0,0,250,'L','黑体',9,0,1,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'dxhjje','合计金额',14,350,990,'S',0,0,350,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'jzr','记账',15,400,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'zy','摘要',0,0,0,'S',0,0,370,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'yjkm','总账科目',1,0,0,'S',0,0,300,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'mxkm','明细科目',2,0,0,'S',0,0,520,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'jfje','借方',3,0,0,'S',0,0,270,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=250 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(250,'dfje','贷方',4,0,0,'S',0,0,270,'R','宋体',9,0,1,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'nian','年',1,2600,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'Oyue','月',2,2740,130,'S',0,0,80,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'yh','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'dwmc','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'printman','制单',5,420,1995,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'printtime','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'km','科目',100,0,0,'S',0,0,600,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'qcjf','期初借方余额',101,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'qcdf','期初贷方余额',102,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'bqjf','本期借方发生',103,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'bqdf','本期贷方发生',104,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'qmjf','期末借方余额',105,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=251 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(251,'qmdf','期末贷方余额',106,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'nian','年',1,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'yh','页号:',2,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'fz','附注',3,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'dwmc','单位名称',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'PrintMan','制表',5,420,1995,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'PrintTime','打印时间:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'yue','月',0,0,0,'S',0,0,316,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'zy','摘要',1,0,0,'S',0,0,870,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'jfje','借方',2,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'dfje','贷方',3,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'fx','余额方向',4,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=252 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(252,'ye','余额',5,0,0,'C',0,2,465,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'DWMC','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'PRINTMAN','制单',5,420,1995,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'ZY','摘要',3,0,0,'S',0,0,880,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'JFJE','借方',6,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'DFJE','贷方',7,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'YEFX','方向',8,0,0,'S',0,0,65,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=253 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(253,'YEJE','余额',9,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'DWMC','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'PRINTMAN','制单',5,420,1995,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'PRINTTIME','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'ZY','摘要',3,0,0,'S',0,0,760,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'JFJE','借方',6,0,0,'C',0,2,360,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'DFJE','贷方',7,0,0,'C',0,2,360,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'YEFX','方向',8,0,0,'S',0,0,70,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=254 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(254,'YEJE','余额',9,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='HSDW') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'HSDW','核算单位',4,420,1935,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='ZDR') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'ZDR','制单',5,420,1980,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'PRINTMAN','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'MONTH','月',0,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'DAY','日',1,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'PZH','凭证号',2,0,0,'S',0,0,150,'L','宋体',8,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'ZY','摘要',3,0,0,'S',0,0,520,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'JFJE','借方',4,0,0,'C',0,2,200,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'DFJE','贷方',5,0,0,'C',0,2,200,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=255 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(255,'YEJE','余额',7,0,0,'C',0,2,210,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'bt','标题',0,660,40,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'nian','年',1,1570,60,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'yue','月',2,1690,60,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'ri','日',3,1770,60,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'bh','编号',4,1540,115,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'fjs','附件张数',5,1870,380,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'kjzg','财务主管',6,450,1055,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'fh','审核',7,980,1080,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'zd','制单',8,1570,1080,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'jfhjje','借方合计金额',9,1300,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'dfhjje','贷方合计金额',10,1570,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'jsr','经手人',11,1910,1080,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'cn','出纳',12,1310,1080,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'dwmc','单位',13,300,105,'S',0,0,250,'L','黑体',9,0,1,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'dxhjje','合计金额',14,310,990,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'jzr','记账',15,400,1080,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'zy','摘要',0,0,0,'S',0,0,380,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'yjkm','总账科目',1,0,0,'S',0,0,310,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'mxkm','明细科目',2,0,0,'S',0,0,510,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'jfje','借方',3,0,0,'S',0,0,270,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=300 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(300,'dfje','贷方',4,0,0,'S',0,0,270,'R','宋体',9,0,1,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'bt','标题',0,1300,100,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'nian','年',1,2600,150,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'Oyue','月',2,2740,150,'S',0,0,80,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'yh','页号:',3,2650,250,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'dwmc','核算单位',4,420,1825,'S',0,0,800,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'printman','制单',5,420,1870,'S',0,0,500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'printtime','打印日期:',6,2580,1820,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'km','科目',0,0,0,'S',0,0,855,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'qcjf','期初借方余额',1,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'qcdf','期初贷方余额',2,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'bqjf','本期借方发生',3,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'bqdf','本期贷方发生',4,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'qmjf','期末借方余额',5,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=301 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(301,'qmdf','期末贷方余额',6,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'nian','年',1,2650,150,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'yh','页号:',2,2650,250,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'fz','附注',3,210,250,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'dwmc','单位名称',4,420,1825,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'PrintMan','制表',5,420,1870,'S',0,0,500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'PrintTime','打印时间:',6,2580,1820,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'yue','月',0,0,0,'S',0,0,355,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'zy','摘要',1,0,0,'S',0,0,1350,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'jfje','借方',2,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'dfje','贷方',3,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'fx','余额方向',4,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=302 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(302,'ye','余额',5,0,0,'C',0,2,290,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'KM','科目:',1,210,250,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'NIAN','年',2,2650,150,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'YH','页号:',3,2650,250,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'DWMC','核算单位',4,420,1825,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'PRINTMAN','制单',5,420,1870,'S',0,0,500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'PRINTTIME','打印日期:',6,2580,1820,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'PZH','凭证号',2,0,0,'S',0,0,240,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'ZY','摘要',3,0,0,'S',0,0,1030,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'DFKM','对方科目',5,0,0,'S',0,0,315,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'JFJE','借方',6,0,0,'C',0,2,310,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'DFJE','贷方',7,0,0,'C',0,2,285,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'YEFX','方向',8,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=303 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(303,'YEJE','余额',9,0,0,'C',0,2,310,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'KM','科目:',1,210,250,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'NIAN','年',2,2650,150,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'YH','页号:',3,2650,250,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'DWMC','核算单位',4,420,1825,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'PRINTMAN','制单',5,420,1870,'S',0,0,500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'PRINTTIME','打印日期:',6,2580,1820,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'MONTH','月',100,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'DAY','日',101,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'PZH','凭证号',102,0,0,'S',0,0,260,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'ZY','摘要',103,0,0,'S',0,0,1030,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'YSPZH','原始凭证号',104,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'DFKM','对方科目',105,0,0,'S',0,0,315,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'JFJE','借方',106,0,0,'C',0,2,310,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'DFJE','贷方',107,0,0,'C',0,2,285,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'YEFX','方向',108,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=304 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(304,'YEJE','余额',109,0,0,'C',0,2,310,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'BT','标题',0,1500,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'KM','科目:',1,210,250,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'NIAN','年',2,3230,150,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'YH','页号:',3,3230,250,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='HSDW') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'HSDW','核算单位',4,420,2330,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='ZDR') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'ZDR','制单',5,420,2380,'S',0,0,500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'PRINTMAN','打印日期:',6,3150,2330,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'MONTH','月',0,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'DAY','日',1,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'PZH','凭证号',2,0,0,'S',0,0,250,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'ZY','摘要',3,0,0,'S',0,0,560,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'JFJE','借方',4,0,0,'C',0,2,260,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'DFJE','贷方',5,0,0,'C',0,2,262,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=305 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(305,'YEJE','余额',7,0,0,'C',0,2,262,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'bt','标题',0,660,0,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'nian','年',1,1570,0,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'yue','月',2,1690,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'ri','日',3,1770,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'bh','编号',4,1540,80,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'fjs','附件张数',5,1940,380,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'kjzg','财务主管',6,450,1055,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'fh','审核',7,980,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'zd','制单',8,1570,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'jfhjje','借方合计金额',9,1300,990,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'dfhjje','贷方合计金额',10,1570,990,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'jsr','经手人',11,1910,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'cn','出纳',12,1310,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'dwmc','单位',13,360,115,'S',0,0,250,'L','黑体',9,0,1,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'dxhjje','合计金额',14,350,990,'S',0,0,350,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'jzr','记账',15,400,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'zy','摘要',0,0,0,'S',0,0,380,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'yjkm','总账科目',1,0,0,'S',0,0,300,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'mxkm','明细科目',2,0,0,'S',0,0,520,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'jfje','借方',3,0,0,'S',0,0,270,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=350 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(350,'dfje','贷方',4,0,0,'S',0,0,270,'R','宋体',9,0,1,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'nian','年',1,2600,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'Oyue','月',2,2740,130,'S',0,0,80,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'yh','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'dwmc','核算单位',4,420,1960,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'printman','制单',5,420,2000,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'printtime','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'km','科目',0,0,0,'S',0,0,600,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'qcjf','期初借方余额',1,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'qcdf','期初贷方余额',2,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'bqjf','本期借方发生',3,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'bqdf','本期贷方发生',4,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'qmjf','期末借方余额',5,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=351 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(351,'qmdf','期末贷方余额',6,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'nian','年',1,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'yh','页号:',2,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'fz','附注',3,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'dwmc','单位名称',4,420,1960,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'PrintMan','制表',5,420,2000,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'PrintTime','打印时间:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'yue','月',0,0,0,'S',0,0,310,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'zy','摘要',1,0,0,'S',0,0,870,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'jfje','借方',2,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'dfje','贷方',3,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'fx','余额方向',4,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=352 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(352,'ye','余额',5,0,0,'C',0,2,465,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'DWMC','核算单位',4,420,1960,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'PRINTMAN','制单',5,420,2000,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'ZY','摘要',3,0,0,'S',0,0,870,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'JFJE','借方',6,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'DFJE','贷方',7,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'YEFX','方向',8,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=353 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(353,'YEJE','余额',9,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'DWMC','核算单位',4,420,1960,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'PRINTMAN','制单',5,420,2000,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'ZY','摘要',3,0,0,'S',0,0,750,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'DFKM','对方科目',5,0,0,'S',0,0,410,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'JFJE','借方',6,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'DFJE','贷方',7,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'YEFX','方向',8,0,0,'S',0,0,70,'C','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=354 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(354,'YEJE','余额',9,0,0,'C',0,2,360,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='HSDW') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'HSDW','核算单位',4,420,1950,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='ZDR') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'ZDR','制单',5,420,1995,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'PRINTMAN','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'MONTH','月',0,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'DAY','日',1,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'PZH','凭证号',2,0,0,'S',0,0,155,'L','宋体',8,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'ZY','摘要',3,0,0,'S',0,0,520,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'JFJE','借方',4,0,0,'C',0,2,195,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'DFJE','贷方',5,0,0,'C',0,2,195,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=355 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(355,'YEJE','余额',7,0,0,'C',0,2,205,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'bt','标题',0,660,0,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'nian','年',1,1570,0,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'yue','月',2,1690,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'ri','日',3,1770,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'bh','编号',4,1540,80,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'fjs','附件张数',5,1925,380,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'kjzg','财务主管',6,450,1055,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'fh','审核',7,980,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'zd','制单',8,1570,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'jfhjje','借方合计金额',9,1300,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'dfhjje','贷方合计金额',10,1570,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'jsr','经手人',11,1910,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'cn','出纳',12,1310,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'dwmc','单位',13,360,120,'S',0,0,250,'L','黑体',9,0,1,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'dxhjje','合计金额',14,350,1000,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'jzr','记账',15,400,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'zy','摘要',0,0,0,'S',0,0,358,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'yjkm','总账科目',1,0,0,'S',0,0,300,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'mxkm','明细科目',2,0,0,'S',0,0,520,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'jfje','借方',3,0,0,'S',0,0,270,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=400 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(400,'dfje','贷方',4,0,0,'S',0,0,270,'R','宋体',9,0,1,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'nian','年',1,2600,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'Oyue','月',2,2740,130,'S',0,0,80,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'yh','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'dwmc','核算单位',4,420,1950,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'printman','制单',5,420,1990,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'printtime','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'km','科目',0,0,0,'S',0,0,596,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'qcjf','期初借方余额',1,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'qcdf','期初贷方余额',2,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'bqjf','本期借方发生',3,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'bqdf','本期贷方发生',4,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'qmjf','期末借方余额',5,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=401 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(401,'qmdf','期末贷方余额',6,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'nian','年',1,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'yh','页号:',2,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'fz','附注',3,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'dwmc','单位名称',4,420,1940,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'PrintMan','制表',5,420,1986,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'PrintTime','打印时间:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'yue','月',0,0,0,'S',0,0,310,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'zy','摘要',1,0,0,'S',0,0,880,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'jfje','借方',2,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'dfje','贷方',3,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'fx','余额方向',4,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=402 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(402,'ye','余额',5,0,0,'C',0,2,470,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'DWMC','核算单位',4,420,1940,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'PRINTMAN','制单',5,420,1985,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'ZY','摘要',3,0,0,'S',0,0,880,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'JFJE','借方',6,0,0,'C',0,2,455,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'DFJE','贷方',7,0,0,'C',0,2,458,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'YEFX','方向',8,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=403 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(403,'YEJE','余额',9,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'DWMC','核算单位',4,420,1940,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'PRINTMAN','制单',5,420,1985,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'ZY','摘要',3,0,0,'S',0,0,750,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'DFKM','对方科目',5,0,0,'S',0,0,410,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'JFJE','借方',6,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'DFJE','贷方',7,0,0,'C',0,2,368,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'YEFX','方向',8,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=404 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(404,'YEJE','余额',9,0,0,'C',0,2,370,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='HSDW') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'HSDW','核算单位',4,420,1935,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='ZDR') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'ZDR','制单',5,420,1980,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'PRINTMAN','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'MONTH','月',0,0,0,'S',0,0,56,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'DAY','日',1,0,0,'S',0,0,56,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'PZH','凭证号',2,0,0,'S',0,0,150,'L','宋体',8,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'ZY','摘要',3,0,0,'S',0,0,524,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'JFJE','借方',4,0,0,'C',0,2,198,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'DFJE','贷方',5,0,0,'C',0,2,198,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=405 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(405,'YEJE','余额',7,0,0,'C',0,2,208,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'bt','标题',0,660,0,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'nian','年',1,1570,0,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'yue','月',2,1690,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'ri','日',3,1770,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'bh','编号',4,1540,80,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'fjs','附件张数',5,1925,380,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'kjzg','财务主管',6,450,1055,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'fh','审核',7,980,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'zd','制单',8,1570,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'jfhjje','借方合计金额',9,1420,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'dfhjje','贷方合计金额',10,1570,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'jsr','经手人',11,1910,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'cn','出纳',12,1310,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'dwmc','单位',13,360,120,'S',0,0,250,'L','黑体',9,0,1,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'dxhjje','合计金额',14,350,1000,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'jzr','记账',15,400,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'zy','摘要',0,0,0,'S',0,0,358,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'yjkm','总账科目',1,0,0,'S',0,0,300,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'mxkm','明细科目',2,0,0,'S',0,0,520,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'jfje','借方',3,0,0,'S',0,0,270,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=450 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(450,'dfje','贷方',4,0,0,'S',0,0,270,'R','宋体',9,0,1,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'nian','年',1,2600,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'Oyue','月',2,2740,130,'S',0,0,80,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'yh','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'dwmc','核算单位',4,420,1950,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'printman','制单',5,420,1990,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'printtime','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'km','科目',100,0,0,'S',0,0,596,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'qcjf','期初借方余额',101,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'qcdf','期初贷方余额',102,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'bqjf','本期借方发生',103,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'bqdf','本期贷方发生',104,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'qmjf','期末借方余额',105,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=451 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(451,'qmdf','期末贷方余额',106,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'nian','年',1,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'yh','页号:',2,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'fz','附注',3,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'dwmc','单位名称',4,420,1940,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'PrintMan','制表',5,420,1986,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'PrintTime','打印时间:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'yue','月',0,0,0,'S',0,0,310,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'zy','摘要',1,0,0,'S',0,0,880,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'jfje','借方',2,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'dfje','贷方',3,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'fx','余额方向',4,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=452 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(452,'ye','余额',5,0,0,'C',0,2,470,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'DWMC','核算单位',4,420,1940,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'PRINTMAN','制单',5,420,1985,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'ZY','摘要',3,0,0,'S',0,0,880,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'JFJE','借方',6,0,0,'C',0,2,455,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'DFJE','贷方',7,0,0,'C',0,2,458,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'YEFX','方向',8,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=453 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(453,'YEJE','余额',9,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'DWMC','核算单位',4,420,1940,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'PRINTMAN','制单',5,420,1985,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'ZY','摘要',3,0,0,'S',0,0,750,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'DFKM','对方科目',5,0,0,'S',0,0,410,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'JFJE','借方',6,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'DFJE','贷方',7,0,0,'C',0,2,368,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'YEFX','方向',8,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=454 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(454,'YEJE','余额',9,0,0,'C',0,2,370,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='HSDW') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'HSDW','核算单位',4,420,1935,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='ZDR') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'ZDR','制单',5,420,1980,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'PRINTMAN','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'MONTH','月',0,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'DAY','日',1,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'PZH','凭证号',2,0,0,'S',0,0,150,'L','宋体',8,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'ZY','摘要',3,0,0,'S',0,0,524,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'JFJE','借方',4,0,0,'C',0,2,198,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'DFJE','贷方',5,0,0,'C',0,2,198,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=455 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(455,'YEJE','余额',7,0,0,'C',0,2,208,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'bt','标题',0,660,0,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'nian','年',1,1570,0,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'yue','月',2,1690,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'ri','日',3,1770,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'bh','编号',4,1540,80,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'fjs','附件张数',5,1940,380,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'kjzg','财务主管',6,450,1055,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'fh','审核',7,980,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'zd','制单',8,1570,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'jfhjje','借方合计金额',9,1420,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'dfhjje','贷方合计金额',10,1690,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'jsr','经手人',11,1910,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'cn','出纳',12,1310,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'dwmc','单位',13,360,120,'S',0,0,250,'L','黑体',9,0,1,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'dxhjje','合计金额',14,350,990,'S',0,0,350,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'jzr','记账',15,400,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'zy','摘要',0,0,0,'S',0,0,378,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'yjkm','总账科目',1,0,0,'S',0,0,300,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'mxkm','明细科目',2,0,0,'S',0,0,520,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'jfje','借方',3,0,0,'S',0,0,270,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=500 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(500,'dfje','贷方',4,0,0,'S',0,0,270,'R','宋体',9,0,1,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'nian','年',1,2600,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'Oyue','月',2,2740,130,'S',0,0,80,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'yh','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'dwmc','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'printman','制单',5,420,1995,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'printtime','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'km','科目',0,0,0,'S',0,0,600,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'qcjf','期初借方余额',1,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'qcdf','期初贷方余额',2,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'bqjf','本期借方发生',3,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'bqdf','本期贷方发生',4,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'qmjf','期末借方余额',5,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=501 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(501,'qmdf','期末贷方余额',6,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'nian','年',1,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'yh','页号:',2,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'fz','附注',3,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'dwmc','单位名称',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'PrintMan','制表',5,420,1995,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'PrintTime','打印时间:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'yue','月',0,0,0,'S',0,0,316,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'zy','摘要',1,0,0,'S',0,0,870,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'jfje','借方',2,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'dfje','贷方',3,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'fx','余额方向',4,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=502 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(502,'ye','余额',5,0,0,'C',0,2,465,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'DWMC','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'PRINTMAN','制单',5,420,1995,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'ZY','摘要',3,0,0,'S',0,0,870,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'JFJE','借方',6,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'DFJE','贷方',7,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'YEFX','方向',8,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=503 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(503,'YEJE','余额',9,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'DWMC','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'PRINTMAN','制单',5,420,1995,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'PRINTTIME','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'ZY','摘要',3,0,0,'S',0,0,750,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'JFJE','借方',6,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'DFJE','贷方',7,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'YEFX','方向',8,0,0,'S',0,0,70,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=504 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(504,'YEJE','余额',9,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='HSDW') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'HSDW','核算单位',4,420,1935,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='ZDR') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'ZDR','制单',5,420,1980,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'PRINTMAN','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'MONTH','月',0,0,0,'S',0,0,52,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'DAY','日',1,0,0,'S',0,0,52,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'PZH','凭证号',2,0,0,'S',0,0,150,'L','宋体',8,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'ZY','摘要',3,0,0,'S',0,0,525,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'JFJE','借方',4,0,0,'C',0,2,200,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'DFJE','贷方',5,0,0,'C',0,2,200,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=505 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(505,'YEJE','余额',7,0,0,'C',0,2,210,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'bt','标题',0,660,0,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'nian','年',1,1570,0,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'yue','月',2,1690,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'ri','日',3,1770,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'bh','编号',4,1540,80,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'fjs','附件张数',5,1920,380,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'kjzg','财务主管',6,450,1055,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'fh','审核',7,980,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'zd','制单',8,1570,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'jfhjje','借方合计金额',9,1420,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'dfhjje','贷方合计金额',10,1690,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'jsr','经手人',11,1910,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'cn','出纳',12,1310,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'dwmc','单位',13,360,120,'S',0,0,250,'L','黑体',9,0,1,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'dxhjje','合计金额',14,350,990,'S',0,0,350,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'jzr','记账',15,400,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'zy','摘要',0,0,0,'S',0,0,370,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'yjkm','总账科目',1,0,0,'S',0,0,300,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'mxkm','明细科目',2,0,0,'S',0,0,520,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'jfje','借方',3,0,0,'S',0,0,270,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=550 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(550,'dfje','贷方',4,0,0,'S',0,0,270,'R','宋体',9,0,1,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'nian','年',1,2600,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'Oyue','月',2,2740,130,'S',0,0,80,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'yh','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'dwmc','核算单位',4,420,1935,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'printman','制单',5,420,1990,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'printtime','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'km','科目',0,0,0,'S',0,0,600,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'qcjf','期初借方余额',1,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'qcdf','期初贷方余额',2,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'bqjf','本期借方发生',3,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'bqdf','本期贷方发生',4,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'qmjf','期末借方余额',5,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=551 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(551,'qmdf','期末贷方余额',6,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'nian','年',1,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'yh','页号:',2,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'fz','附注',3,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'dwmc','单位名称',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'PrintMan','制表',5,420,1995,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'PrintTime','打印时间:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'yue','月',0,0,0,'S',0,0,316,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'zy','摘要',1,0,0,'S',0,0,870,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'jfje','借方',2,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'dfje','贷方',3,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'fx','余额方向',4,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=552 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(552,'ye','余额',5,0,0,'C',0,2,465,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'DWMC','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'PRINTMAN','制单',5,420,1995,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'ZY','摘要',3,0,0,'S',0,0,880,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'JFJE','借方',6,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'DFJE','贷方',7,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'YEFX','方向',8,0,0,'S',0,0,65,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=553 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(553,'YEJE','余额',9,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'DWMC','核算单位',4,420,1955,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'PRINTMAN','制单',5,420,1995,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'PRINTTIME','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'ZY','摘要',3,0,0,'S',0,0,760,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'JFJE','借方',6,0,0,'C',0,2,360,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'DFJE','贷方',7,0,0,'C',0,2,360,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'YEFX','方向',8,0,0,'S',0,0,70,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=554 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(554,'YEJE','余额',9,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='HSDW') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'HSDW','核算单位',4,420,1935,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='ZDR') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'ZDR','制单',5,420,1980,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'PRINTMAN','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'MONTH','月',0,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'DAY','日',1,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'PZH','凭证号',2,0,0,'S',0,0,150,'L','宋体',8,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'ZY','摘要',3,0,0,'S',0,0,516,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'JFJE','借方',4,0,0,'C',0,2,200,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'DFJE','贷方',5,0,0,'C',0,2,200,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=555 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(555,'YEJE','余额',7,0,0,'C',0,2,210,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'bt','标题',0,660,0,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'nian','年',1,1570,0,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'yue','月',2,1690,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'ri','日',3,1770,0,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'bh','编号',4,1540,80,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'fjs','附件张数',5,1925,380,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'kjzg','财务主管',6,450,1055,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'fh','审核',7,980,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'zd','制单',8,1570,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'jfhjje','借方合计金额',9,1400,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'dfhjje','贷方合计金额',10,1670,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'jsr','经手人',11,1910,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'cn','出纳',12,1310,1085,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'dwmc','单位',13,360,120,'S',0,0,250,'L','黑体',9,0,1,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'dxhjje','合计金额',14,350,1000,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'jzr','记账',15,400,1090,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'zy','摘要',0,0,0,'S',0,0,358,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'yjkm','总账科目',1,0,0,'S',0,0,300,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'mxkm','明细科目',2,0,0,'S',0,0,520,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'jfje','借方',3,0,0,'S',0,0,270,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1000 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1000,'dfje','贷方',4,0,0,'S',0,0,270,'R','宋体',9,0,1,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'nian','年',1,2600,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'Oyue','月',2,2740,130,'S',0,0,80,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'yh','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'dwmc','核算单位',4,420,1950,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'printman','制单',5,420,1990,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'printtime','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'km','科目',100,0,0,'S',0,0,596,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'qcjf','期初借方余额',101,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'qcdf','期初贷方余额',102,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'bqjf','本期借方发生',103,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'bqdf','本期贷方发生',104,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'qmjf','期末借方余额',105,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1001 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1001,'qmdf','期末贷方余额',106,0,0,'C',0,2,340,'R','宋体',9,0,0,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'nian','年',1,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'yh','页号:',2,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'fz','附注',3,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'dwmc','单位名称',4,420,1940,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'PrintMan','制表',5,420,1986,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'PrintTime','打印时间:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'yue','月',0,0,0,'S',0,0,310,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'zy','摘要',1,0,0,'S',0,0,880,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'jfje','借方',2,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'dfje','贷方',3,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'fx','余额方向',4,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1002 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1002,'ye','余额',5,0,0,'C',0,2,470,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'DWMC','核算单位',4,420,1940,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'PRINTMAN','制单',5,420,1985,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'ZY','摘要',3,0,0,'S',0,0,880,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'DFKM','对方科目',5,0,0,'S',0,0,420,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'JFJE','借方',6,0,0,'C',0,2,455,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'DFJE','贷方',7,0,0,'C',0,2,458,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'YEFX','方向',8,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1003 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1003,'YEJE','余额',9,0,0,'C',0,2,460,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'DWMC','核算单位',4,420,1940,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'PRINTMAN','制单',5,420,1985,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'PRINTTIME','打印日期:',6,2550,1940,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'MONTH','月',0,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'DAY','日',1,0,0,'S',0,0,60,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'PZH','凭证号',2,0,0,'S',0,0,196,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'ZY','摘要',3,0,0,'S',0,0,750,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'DFKM','对方科目',5,0,0,'S',0,0,410,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'JFJE','借方',6,0,0,'C',0,2,365,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'DFJE','贷方',7,0,0,'C',0,2,368,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'YEFX','方向',8,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1004 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1004,'YEJE','余额',9,0,0,'C',0,2,370,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'KM','科目:',1,210,210,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'NIAN','年',2,2650,130,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'YH','页号:',3,2650,200,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='HSDW') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'HSDW','核算单位',4,420,1935,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='ZDR') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'ZDR','制单',5,420,1980,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'PRINTMAN','打印日期:',6,2550,1935,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'MONTH','月',0,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'DAY','日',1,0,0,'S',0,0,60,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'PZH','凭证号',2,0,0,'S',0,0,150,'L','宋体',8,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'ZY','摘要',3,0,0,'S',0,0,524,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'JFJE','借方',4,0,0,'C',0,2,198,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'DFJE','贷方',5,0,0,'C',0,2,198,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1005 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1005,'YEJE','余额',7,0,0,'C',0,2,208,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'bt','标题',0,660,40,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'nian','年',1,1570,60,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'yue','月',2,1690,60,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='ri') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'ri','日',3,1770,60,'S',0,0,50,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='bh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'bh','编号',4,1540,115,'S',0,0,300,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='fjs') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'fjs','附件张数',5,1870,380,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='kjzg') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'kjzg','财务主管',6,450,1055,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='fh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'fh','审核',7,980,1080,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='zd') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'zd','制单',8,1570,1080,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='jfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'jfhjje','借方合计金额',9,1300,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='dfhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'dfhjje','贷方合计金额',10,1570,990,'S',0,0,270,'R','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='jsr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'jsr','经手人',11,1910,1080,'S',0,0,300,'L','宋体',9,0,0,'0','0','0','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='cn') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'cn','出纳',12,1310,1080,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'dwmc','单位',13,300,105,'S',0,0,250,'L','黑体',9,0,1,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='dxhjje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'dxhjje','合计金额',14,310,990,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='jzr') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'jzr','记账',15,400,1080,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'zy','摘要',0,0,0,'S',0,0,380,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='yjkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'yjkm','总账科目',1,0,0,'S',0,0,310,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='mxkm') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'mxkm','明细科目',2,0,0,'S',0,0,515,'L','宋体',9,0,1,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'jfje','借方',3,0,0,'S',0,0,270,'R','宋体',9,0,0,'1','0','1','0','C',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1050 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1050,'dfje','贷方',4,0,0,'S',0,0,270,'R','宋体',9,0,1,'1','0','1','0','C',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'bt','标题',0,1300,100,'S',0,0,300,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'nian','年',1,2600,150,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='Oyue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'Oyue','月',2,2740,150,'S',0,0,80,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'yh','页号:',3,2650,250,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'dwmc','核算单位',4,420,1825,'S',0,0,800,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='printman') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'printman','制单',5,420,1870,'S',0,0,500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='printtime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'printtime','打印日期:',6,2580,1820,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='km') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'km','科目',0,0,0,'S',0,0,855,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='qcjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'qcjf','期初借方余额',1,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='qcdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'qcdf','期初贷方余额',2,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='bqjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'bqjf','本期借方发生',3,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='bqdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'bqdf','本期贷方发生',4,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='qmjf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'qmjf','期末借方余额',5,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1051 and ltrim(rtrim(FldName))='qmdf') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1051,'qmdf','期末贷方余额',6,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','1','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='bt') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'bt','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='nian') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'nian','年',1,2650,150,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='yh') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'yh','页号:',2,2650,250,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='fz') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'fz','附注',3,210,250,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='dwmc') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'dwmc','单位名称',4,420,1825,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='PrintMan') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'PrintMan','制表',5,420,1870,'S',0,0,500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='PrintTime') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'PrintTime','打印时间:',6,2580,1820,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='yue') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'yue','月',0,0,0,'S',0,0,355,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='zy') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'zy','摘要',1,0,0,'S',0,0,1350,'L','宋体',9,0,0,'1','1','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='jfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'jfje','借方',2,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='dfje') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'dfje','贷方',3,0,0,'C',0,2,300,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='fx') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'fx','余额方向',4,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1052 and ltrim(rtrim(FldName))='ye') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1052,'ye','余额',5,0,0,'C',0,2,290,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'KM','科目:',1,210,250,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'NIAN','年',2,2650,150,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'YH','页号:',3,2650,250,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'DWMC','核算单位',4,420,1825,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'PRINTMAN','制单',5,420,1870,'S',0,0,500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'PRINTTIME','打印日期:',6,2580,1820,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'MONTH','月',0,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'DAY','日',1,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'PZH','凭证号',2,0,0,'S',0,0,240,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'ZY','摘要',3,0,0,'S',0,0,1030,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'YSPZH','原始凭证号',4,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'DFKM','对方科目',5,0,0,'S',0,0,315,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'JFJE','借方',6,0,0,'C',0,2,310,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'DFJE','贷方',7,0,0,'C',0,2,285,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'YEFX','方向',8,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1053 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1053,'YEJE','余额',9,0,0,'C',0,2,310,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'BT','标题',0,1300,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'KM','科目:',1,210,250,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'NIAN','年',2,2650,150,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'YH','页号:',3,2650,250,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='DWMC') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'DWMC','核算单位',4,420,1825,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'PRINTMAN','制单',5,420,1870,'S',0,0,500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='PRINTTIME') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'PRINTTIME','打印日期:',6,2580,1820,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'MONTH','月',100,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'DAY','日',101,0,0,'S',0,0,55,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'PZH','凭证号',102,0,0,'S',0,0,260,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'ZY','摘要',103,0,0,'S',0,0,1030,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='YSPZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'YSPZH','原始凭证号',104,0,0,'S',0,0,100,'L','宋体',9,0,0,'1','0','0','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='DFKM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'DFKM','对方科目',105,0,0,'S',0,0,315,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'JFJE','借方',106,0,0,'C',0,2,310,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'DFJE','贷方',107,0,0,'C',0,2,285,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'YEFX','方向',108,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1054 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1054,'YEJE','余额',109,0,0,'C',0,2,310,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--

if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='BT') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'BT','标题',0,1500,100,'S',0,0,1500,'L','黑体',24,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='KM') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'KM','科目:',1,210,250,'S',0,0,1500,'L','黑体',11,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='NIAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'NIAN','年',2,3230,150,'S',0,0,100,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='YH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'YH','页号:',3,3230,250,'S',0,0,300,'L','宋体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='HSDW') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'HSDW','核算单位',4,420,2330,'S',0,0,1500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='ZDR') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'ZDR','制单',5,420,2380,'S',0,0,500,'L','黑体',9,0,0,'0','0','1','0','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='PRINTMAN') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'PRINTMAN','打印日期:',6,3150,2330,'S',0,0,300,'L','黑体',9,0,0,'0','0','1','1','0',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='MONTH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'MONTH','月',0,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='DAY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'DAY','日',1,0,0,'S',0,0,55,'C','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='PZH') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'PZH','凭证号',2,0,0,'S',0,0,250,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='ZY') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'ZY','摘要',3,0,0,'S',0,0,560,'L','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='JFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'JFJE','借方',4,0,0,'C',0,2,260,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='DFJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'DFJE','贷方',5,0,0,'C',0,2,262,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='YEFX') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'YEFX','方向',6,0,0,'S',0,0,55,'R','宋体',9,0,0,'1','0','1','0','T',80)
if Not Exists (select 1 from gl_tdgsnr where dygsbh=1055 and ltrim(rtrim(FldName))='YEJE') Insert into gl_tdgsnr(Dygsbh,FldName,FName,XH,OffX,OffY,Type,Length,Dec,Width,Alignment,FontStyle,FontScale,FontAttr,FontColor,InGrid,AutoNext,Visible,CaptionVisible,LayOut,Height) Values(1055,'YEJE','余额',7,0,0,'C',0,2,262,'R','宋体',9,0,0,'1','0','1','0','T',80)
--GO--
回复

使用道具 举报

发表于 2009-4-3 16:42:01 | 显示全部楼层
你太强悍了- -
回复

使用道具 举报

发表于 2009-4-8 15:50:16 | 显示全部楼层
7楼的,太强悍了,100个金币真是非你莫属了
回复

使用道具 举报

发表于 2012-5-8 09:43:01 | 显示全部楼层
我的个仙人!!,这么长的代码执行!!佩服
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

QQ|站长微信|Archiver|手机版|小黑屋|用友之家 ( 蜀ICP备07505338号|51072502110008 )

GMT+8, 2024-5-16 00:07 , Processed in 0.055134 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表